Feat: Updating routes and controllers to use the updated Services coming from boboko/core

This commit is contained in:
2026-08-29 00:17:34 +03:00
parent defe1dab12
commit c7cd1138fe
9 changed files with 48 additions and 22 deletions
+4 -4
View File
@@ -1,17 +1,17 @@
@extends('layouts.app')
@section('title', $collection->translateAttribute('name') . ' — ' . config('app.name'))
@section('description', strip_tags($collection->translateAttribute('description') ?? ''))
@section('title', $collection['name'] . ' — ' . config('app.name'))
@section('description', strip_tags($collection['description'] ?? ''))
@section('content')
<div class="max-w-7xl mx-auto px-4 sm:px-8 py-12">
<div class="flex items-end justify-between gap-6 flex-wrap mb-10">
<h1 class="font-display font-extrabold text-h1">{{ $collection->translateAttribute('name') }}</h1>
<h1 class="font-display font-extrabold text-h1">{{ $collection['name'] }}</h1>
<x-breadcrumb :items="[
['label' => __('storefront.nav.home'), 'href' => route('home')],
['label' => $collection->translateAttribute('name')],
['label' => $collection['name']],
]" />
</div>
+4 -4
View File
@@ -18,11 +18,11 @@
</svg>
</a>
<div class="nav-dropdown">
{{-- @foreach($categories as $category)
<a href="/category/{{ $category->id }}">
{{ $category->translateAttribute('name') }}
@foreach($categories ?? [] as $category)
<a href="{{ route('category.show', ['id' => $category['id']]) }}">
{{ $category['name'] }}
</a>
@endforeach --}}
@endforeach
</div>
</div>
+1 -1
View File
@@ -8,7 +8,7 @@
<x-breadcrumb class="mb-14 justify-end" :items="[
$collection
? ['label' => $collection->translateAttribute('name'), 'href' => route('category.show', ['collection' => $collection])]
? ['label' => $collection['name'], 'href' => route('category.show', ['id' => $collection['id']])]
: ['label' => __('storefront.nav.products'), 'href' => '/products'],
['label' => $product['name']],
]" />