29 lines
614 B
PHP
29 lines
614 B
PHP
<?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);
|
|
}
|
|
}
|