fixes
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Admin\Shop;
|
||||
|
||||
use App\Datatables\Admin\Shop\CustomerInvoicesDataTable;
|
||||
use App\Repositories\Shop\Invoices;
|
||||
|
||||
class CustomerInvoiceController extends Controller
|
||||
{
|
||||
public function index(CustomerInvoicesDataTable $dataTable)
|
||||
{
|
||||
return $dataTable->render('Admin.Shop.CustomerInvoices.list');
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$data = [
|
||||
'invoice' => Invoices::get($id),
|
||||
];
|
||||
|
||||
return view('Admin.Shop.CustomerInvoices.view', $data);
|
||||
}
|
||||
|
||||
public function destroy($id)
|
||||
{
|
||||
return Invoices::destroy($id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user