@if($annonce->photoPrincipale())
->url }})
@else
@endif
{{ $annonce->titre }}
Réf: #{{ $annonce->id }}
|
{{ $annonce->vendeur->user->prenom }} {{ $annonce->vendeur->user->nom }}
{{ ucfirst($annonce->vendeur->type) }}
|
{{ number_format($annonce->prix, 0, ',', ' ') }} FCFA
|
@php
$statusLabel = 'Inconnu';
$statusColor = '#555';
$statusBg = 'transparent';
switch($annonce->statut) {
case 'publiee':
$statusLabel = 'Publiée';
$statusColor = '#569b00';
$statusBg = '#f7fff0';
break;
case 'en_attente':
$statusLabel = 'En attente';
$statusColor = '#f68b1e';
$statusBg = '#fff8f3';
break;
case 'rejetee':
$statusLabel = 'Rejetée';
$statusColor = '#c40000';
$statusBg = '#fff5f5';
break;
default:
$statusLabel = ucfirst($annonce->statut);
$statusBg = '#f6f6f6';
}
@endphp
{{ $statusLabel }}
|
@if($annonce->statut === 'en_attente')
|
@elseif($annonce->statut === 'publiee')
Voir
|
@endif
@if($annonce->statut !== 'rejetee')
@endif
|
@empty