adjust deliveries by customer

This commit is contained in:
ludo
2023-12-11 21:07:49 +01:00
parent 25b78f3380
commit df65516b36
8 changed files with 108 additions and 80 deletions

View File

@@ -4,7 +4,7 @@ namespace App\Http\Controllers\Shop;
use App\Http\Controllers\Controller;
use App\Repositories\Shop\Articles;
use App\Repositories\Shop\Homepages;
use App\Repositories\Shop\Contents;
use App\Repositories\Shop\TagGroups;
use Illuminate\Http\Request;
@@ -15,7 +15,7 @@ class HomeController extends Controller
$data = [
'display_by_rows' => $request->input('by_rows') ?? false,
'shelves' => Articles::getArticlesByHomepage(),
'text' => Homepages::getHomepage(),
'text' => Contents::getHomepage(),
'tags' => TagGroups::getWithTagsAndCountOffers(),
'no_filter' => true,
];

View File

@@ -44,7 +44,8 @@ class OrderController extends Controller
$data = [
'customer' => $customer ? $customer->toArray() : false,
'basket' => Baskets::getBasketTotal(),
'deliveries' => Deliveries::getAllWithSaleChannel()->toArray(),
// 'deliveries' => Deliveries::getAllWithSaleChannel()->toArray(),
'deliveries' => Deliveries::getByCustomer()->toArray(),
'delivery_types' => DeliveryTypes::getWithPrice(Baskets::getWeight()),
];