add datatables on orders
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user