@extends('a1.layout', ['cur' => $key])
@section('content')
@php use App\Support\Rub; $ext = Rub::external($key); $base = Rub::url($key); @endphp
@ic($r['icon'])
{{ $r['label'] }}
{{ $r['desc'] }}
{{ $items->total() }} annonce{{ $items->total() > 1 ? 's' : '' }}
@if ($ext)
@ic('ext')
Les annonces de cette rubrique sont déposées sur {{ $ext['label'] }} et affichées ici automatiquement.
@endif
@if ($pills)
@php $qs = fn ($cat) => $base . '?' . http_build_query(array_filter(['q' => $filters['q'], 'city' => $filters['city'], 'sort' => $filters['sort'] !== 'new' ? $filters['sort'] : null, 'cat' => $cat])); @endphp
@endif
@if ($items->isEmpty())
Aucune annonce ne correspond
Essayez une autre ville ou retirez un filtre.
@else
@foreach ($items as $i => $c)
@include('a1.partials.card', ['c' => $c])
@if (($i + 1) % 6 === 0 && $i + 1 < $items->count())
@include('a1.partials.adrow', ['idx' => intdiv($i + 1, 6)])
@endif
@endforeach
{{ $items->links('a1.partials.pagination') }}
@endif