@php use App\Filament\Admin\Widgets\TableauDeBord\MarchesEnCoursWidget; $affiches = array_slice($d['marches'], 0, MarchesEnCoursWidget::LIMITE); $reste = $d['nombre'] - count($affiches); @endphp @if ($d['marches'] === [])

Aucun marché en cours.

@else @if ($reste > 0)

Et {{ $reste }} autre{{ $reste > 1 ? 's' : '' }} — voir tout.

@endif @endif