@extends('model') @section('title') {{$post['title']}} @endsection @section('og_title') {{ \Illuminate\Support\Str::limit(strip_tags($post['title'] ?? ''), 80) }} @endsection @section('og_description') {{ \Illuminate\Support\Str::limit(strip_tags($post['description'] ?? ''), 180) }} @endsection @php $raw = data_get($post, 'images.0.url') ?: data_get($post, 'images.0.secondary_url', asset_with_mtime('/img/default-post.png')); // Transforme en URL absolue https si besoin $ogImage = \Illuminate\Support\Str::startsWith($raw, ['http://', 'https://']) ? $raw : url($raw); $boostStarter = \App\Models\Package::find(2); $boostPro = \App\Models\Package::find(3); $starterPrice = (int) ($boostStarter->price ?? 2000); $proPrice = (int) ($boostPro->price ?? 3500); @endphp @section('og_image') {{ $ogImage }} @endsection {{-- @section('og_image') {{ data_get($post, 'images.0.url', asset_with_mtime('/img/default-post.png')) }} @endsection --}} {{-- Swiper doit être chargé avant les scripts inline qui l'utilisent (new Swiper) --}} {{-- Style pour les infos utilisateur en haut --}} @include('components.modals.modifComment') @section('content') @guest
Connnectez-vous pour accéder plus rapidement aux meilleurs offres. Cliquez ici si vous n'avez pas encore un compte Dealtoo. ×
@endguest
@if($post['post_type_id'] && $post['post_type_id'] == 6 && (($post['user']['abonnement_actuel']['package_id'] ?? 6) == 6))
Cet abonné utilise la version gratuite de notre plateforme, par conséquent, les options de contact direct par SMS, WhatsApp ou appel téléphonique ne sont pas disponibles. Veuillez utiliser notre messagerie interne pour toute prise de contact. ×
@endif @php if ($post['post_type_id'] && $post['post_type_id'] == 6) { $post['images'] = array_slice($post['images'], 0, 1); $post['videos'] = []; } @endphp

{{ $post['title'] }}

{{ $post['created_at_formatted'] }}   @if (!empty($main_category['name']) || !empty($category['name'])) {{ $main_category['name'] ?? $category['name'] }}   @endif {{ $post['city']['name'] ?? '' }} Flag   @auth @if ($post['user']['id'] == Auth::user()->id) {{ $post['visits'] }} {{ __('global.views') }} @else {{ $post['visits'] }} {{ __('global.views') }} @endif @else {{ $post['visits'] }} {{ __('global.views') }} @endauth {{ __('global.reference') }}: {{ $post['id'] }}

@for ($i = 1; $i <= 5; $i++) @if ($i <= $post['rating_cache']) @else @endif @endfor {{ number_format($post['rating_cache'], 1) }} étoiles

{{--

{{ __('global.location') }}: {{ $post['city']['name'] ?? '' }} Flag

{{ __('global.price') }}: {{ $post['price_formatted'] }} @if ($post['negotiable']) Négociable @endif

--}}

{{ __('global.location') }}: {{ $post['city']['name'] ?? '' }} Flag

{{ __('global.price') }}: {{ $post['price_formatted'] }}

@if($post['is_certif'] == 1) Certifiée @endif @if($post['negotiable'] == 1) Négociable @endif @if($post['livraison_free'] == 1) Livraison gratuite @endif

{!! $post['description'] !!}

@if (count($post['custumFields']) > 0)

{{ __('global.Additional Details') }}

@foreach ($post['custumFields'] as $cf)
{{ $cf['name'] }}
{{-- {{ $cf['value'][0] }} --}} {{ str_replace(',', ', ', $cf['value'][0]) }}
@endforeach
@endif

Tags:

@foreach ($post['tags'] as $tag) {{-- {{ $tag }} --}} {{$tag}} @endforeach
{{-- --}}
@guest
Note: Vous devez être connecté pour poster un avis.
@csrf
@else
@csrf
{{-- --}} @endguest
@guest
Note: Vous devez être connecté pour booster cette annonce.
@csrf
@else
Choisissez votre promotion

Starter

{{ number_format($starterPrice, 0, ',', ' ') }} FCFA

{{ $boostStarter->promotion_time ?? 14 }} jours de visibilité
  • En vedette à la page d'accueil
  • En vedette dans la catégorie

Pro

{{ number_format($proPrice, 0, ',', ' ') }} FCFA

{{ $boostPro->promotion_time ?? 30 }} jours de visibilité
  • En vedette à la page d'accueil
  • En vedette dans la catégorie

Confirmer le boost Starter

@csrf

Confirmer le boost Pro

@csrf
@endguest
{{-- jQuery fourni par model.blade.php (defer) — pas de doublon ici --}} {{-- axios fourni par model.blade.php — pas de doublon ici --}} @include('components.modals.subscriptionRequired') @endsection