add datatbles for invoices, add pdf icon, refactor icons components, add autocomplete on search, adapt searching to meilisearch
This commit is contained in:
@@ -2,22 +2,25 @@
|
||||
|
||||
namespace App\Http\Controllers\Shop;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Controllers\Shop\Controller;
|
||||
use App\Datatables\Shop\CustomerInvoicesDataTable;
|
||||
use App\Repositories\Shop\InvoicePDF;
|
||||
use App\Repositories\Shop\Invoices;
|
||||
|
||||
class InvoiceController extends Controller
|
||||
{
|
||||
public function index()
|
||||
public function index(CustomerInvoicesDataTable $dataTable)
|
||||
{
|
||||
//
|
||||
return $dataTable->render('Shop.Invoices.partials.list');
|
||||
}
|
||||
|
||||
public function show($uuid)
|
||||
public function view($uuid)
|
||||
{
|
||||
$data = Invoices::getByUUID($uuid);
|
||||
$data = [
|
||||
'invoice' => Invoices::view($uuid),
|
||||
];
|
||||
|
||||
return view('Shop.Invoices.show', $data);
|
||||
return view('Shop.Invoices.view', $data);
|
||||
}
|
||||
|
||||
public function pdf($uuid)
|
||||
|
||||
Reference in New Issue
Block a user