{{-- resources/views/customer/agency/sections/categories.blade.php --}}
@if($section->title || $section->subtitle)
@if($section->subtitle)

{{ $section->subtitle }}

@endif @if($section->title)

{{ $section->title }}

@endif
@endif @php $categories = \App\Models\Product\ProductCategory::where('agency_id', $agency->id) ->active() ->public() ->whereNull('parent_id') ->withCount('products') ->orderBy('sort_order') ->limit($section->getConfig('category_limit', 8)) ->get(); @endphp
@foreach($categories as $category) @if($category->image) {{ $category->name }} @else
@endif
@if($category->icon) @endif

{{ $category->name }}

{{ $category->short_description ?? Str::limit($category->description, 60) }}

{{ $category->products_count }} Ürün Keşfet
@endforeach