@php $enAttente = Route::is('user.posts.pending-approval'); $dansArchives = Route::is('user.posts.archived'); $dansFavoris = Route::is('user.posts.favorite'); $dansBoost = Route::is('user.posts.listForPromote'); @endphp
| Photo | Détails de l'annonce | Prix | @if ($dansBoost)Statut | @elseif (!$dansFavoris && !$dansBoost)Option | Badge | @endif|
|---|---|---|---|---|---|---|
|
|
{{-- {{ $postTitle }} --}} @if ($post['reviewed_at'] !== null) {{ $postTitle }} @else {{ $postTitle }} @endif {{ \Carbon\Carbon::parse($post['created_at'])->diffForHumans() }}
{{ $post['visits'] ?? 0 }}
{{ $post['city']['name'] ?? '-' }}
|
{{ number_format((float) ($post['price'] ?? 0), 0, ',', ' ') }} FCFA | @if ($dansBoost)@if ($post['featured']) Déjà boostée @else @endif | @elseif (!$dansFavoris && !$dansBoost)
@if ($dansArchives)
@else
Éditer
@endif
@if ($enAttente)
@elseif ($dansArchives)
@if (Auth::user()->posts()->count() < json_decode(Auth::user()->abonnement_actuel->package)->listings_limit)
@else
@endif
@else
@endif
|
@if ($post['is_certif'] || $post['badges_status'] == "En attente")
@else
@endif
@if ($post['featured'])
@else
@endif
@if ($post['post_type_id'] && $post['post_type_id'] != 6)
@else
@endif
|
@endif