@props(['annonce'])
@if($annonce->photoPrincipale()) {{ $annonce->titre }} @else
Pas de photo
@endif
{{ $annonce->estALaUne() ? 'Sponsorisée' : '' }}

{{ $annonce->titre }}

- {{ $annonce->categorie->nom ?? 'Produit' }}
@if($annonce->nombre_avis > 0) @php $rating = $annonce->note_moyenne; $fullStars = floor($rating); $halfStar = ($rating - $fullStars) >= 0.5; $emptyStars = 5 - $fullStars - ($halfStar ? 1 : 0); @endphp @for($i = 0; $i < $fullStars; $i++) @endfor @if($halfStar) @endif @for($i = 0; $i < $emptyStars; $i++) @endfor @else @for($i = 0; $i < 5; $i++) @endfor @endif
{{ $annonce->nombre_avis }} avis
{{ number_format($annonce->prix, 0, ',', ' ') }} FCFA . Neuf
Par {{ $annonce->vendeur->user->prenom ?? 'Vendeur' }} {{ $annonce->vendeur->user->nom ?? 'PRO' }} PRO
Voir le produit
@once @push('styles') @endpush @endonce