fix orders datatables on profile, fix deliveries for profile (public & active)

This commit is contained in:
Ludovic CANDELLIER
2023-08-29 22:15:37 +02:00
parent 043b7d7215
commit 01f9c9ae7c
10 changed files with 60 additions and 91 deletions

View File

@@ -31,14 +31,18 @@ class BasketController extends Controller
public function modalBasket($offerId, $quantity)
{
$data['offer'] = Offers::getFull($offerId)->toArray();
$data['basket'] = Baskets::addBasket($offerId, $quantity);
$data = [
'offer' => Offers::getFull($offerId)->toArray(),
'basket' => Baskets::addBasket($offerId, $quantity),
];
return view('Shop.Baskets.partials.modalBasket', $data);
}
public function basket()
{
$data['basket'] = Baskets::getBasket();
$data = [
'basket' => Baskets::getBasket(),
];
return view('Shop.Baskets.basket', $data);
}