add datatables on orders

This commit is contained in:
Ludovic CANDELLIER
2023-02-28 08:42:53 +01:00
parent 3745abc90b
commit 4e69399309
10 changed files with 62 additions and 4 deletions

View File

@@ -12,9 +12,20 @@ use App\Repositories\Shop\Orders;
use App\Repositories\Shop\Paybox;
use App\Repositories\Shop\Baskets;
use App\Repositories\Shop\SaleChannels;
use App\Datatables\Shop\OrdersDataTable;
class OrderController extends Controller
{
public function index(OrdersDataTable $dataTable)
{
return $dataTable->render('Shop.Orders.partials.list', $data ?? []);
}
public function view($uuid)
{
$data = Orders::getByUUID($uuid);
}
public function order()
{
$customer = Customers::getWithAddresses();