Separated Checkout and Payment controllers, updates to checkout and payments
This commit is contained in:
@@ -4,10 +4,11 @@ namespace App\Http\Controllers;
|
||||
|
||||
use Clarkeash\Doorman\Exceptions\{ExpiredInviteCode,InvalidInviteCode,NotYourInviteCode};
|
||||
use Clarkeash\Doorman\Facades\Doorman;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\View\View;
|
||||
use Barryvdh\Snappy\Facades\SnappyPdf as PDF;
|
||||
|
||||
use App\Models\Invoice;
|
||||
use App\Models\{Account,Invoice};
|
||||
|
||||
/**
|
||||
* Class InvoiceController
|
||||
@@ -19,6 +20,21 @@ use App\Models\Invoice;
|
||||
*/
|
||||
class InvoiceController extends Controller
|
||||
{
|
||||
/**
|
||||
* Show a list of invoices to apply payments to
|
||||
*
|
||||
* @param Request $request
|
||||
* @return \Illuminate\Contracts\View\View
|
||||
*/
|
||||
public function api_account_invoices(Request $request): \Illuminate\Contracts\View\View
|
||||
{
|
||||
session()->flashInput($request->post('old',[]));
|
||||
|
||||
return view('theme.backend.adminlte.payment.widget.invoices')
|
||||
->with('pid',$request->post('pid'))
|
||||
->with('o',Account::findOrFail($request->post('aid')));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the invoice in PDF format, ready to download
|
||||
*
|
||||
|
Reference in New Issue
Block a user