@extends($site->themeView('layout')) @php($ads = app(\App\Services\AdManager::class)) {{-- Recipe list (all or one category) with filters; filters work without JavaScript (GET form). --}} @section('content')
@include($site->themeView('partials.breadcrumbs'))

{{ $category?->name ?? __('recipes.all_recipes') }}

@if ($category?->description)

{{ $category->description }}

@endif

{{ trans_choice('recipes.results', $recipes->total(), ['count' => $recipes->total()]) }}

@if ($recipes->isEmpty())

{{ __('recipes.no_results') }}

@else
@foreach ($recipes as $recipe) @include($site->themeView('recipes.partials.card'), ['recipe' => $recipe]) {{-- One in-feed unit after the 6th card, away from the filters. --}} @if ($loop->iteration === 6 && $recipes->count() > 9)
{{ $ads->slot('in_content') }}
@endif @endforeach
{{ $recipes->links() }}
@endif
@endsection