update
This commit is contained in:
@@ -38,8 +38,11 @@ class InvoiceController extends Controller
|
||||
{
|
||||
$data = Invoices::init();
|
||||
$data['invoice'] = Invoices::getFull($id)->toArray();
|
||||
/*
|
||||
$model = new InvoicePaymentsDataTable();
|
||||
$data['invoice_payments'] = $model->html();
|
||||
*/
|
||||
// dump($data);
|
||||
|
||||
return view('Admin.Shop.Invoices.edit', $data);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ class InvoicePaymentController extends Controller
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$data['invoice_payment'] = InvoicePayments::getFull($id)->toArray();
|
||||
$data['invoice_payment'] = InvoicePayments::getArray($id);
|
||||
|
||||
return view('Admin.Shop.InvoicePayments.view', $data);
|
||||
}
|
||||
@@ -38,13 +38,13 @@ class InvoicePaymentController extends Controller
|
||||
public function edit($id)
|
||||
{
|
||||
$data = InvoicePayments::init();
|
||||
$data['invoice_payment'] = InvoicePayments::getFull($id)->toArray();
|
||||
$data['invoice_payment'] = InvoicePayments::getArray($id);
|
||||
|
||||
return view('Admin.Shop.InvoicePayments.edit', $data);
|
||||
}
|
||||
|
||||
public function destroy($id)
|
||||
{
|
||||
return InvoicePayments::delete($id);
|
||||
return InvoicePayments::destroy($id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user