@php use App\Support\Tarif; $libelles = ['online' => 'En ligne', 'pending' => 'En attente', 'sold' => 'Vendue', 'expired' => 'Expirée', 'refused' => 'Refusée', 'draft' => 'Brouillon']; @endphp
@foreach($annonces as $ad) @php $aRegler = Tarif::attendPaiement($ad); @endphp @endforeach
AnnoncePrixStatutVuesPubliée
{{ $ad->title }} {{ $ad->category['name'] }} {{ $ad->price_label }} {{ $aRegler ? 'Paiement en attente' : ($libelles[$ad->status] ?? $ad->status) }} @if($aRegler) Régler {{ \App\Support\Dates::euros(config('billing.particulier.amount'), true) }} et publier @endif {{ number_format($ad->views, 0, ',', ' ') }} {{ $ad->published_at ? $ad->published : '—' }}
@if($aRegler) @elseif($ad->status === 'online')
@csrf
@else
@csrf
@endif
@csrf @method('delete')