@extends('layouts.public') @section('titre', $annonce->titre.' — InnerHayti') @section('content')
← Retour
{{-- Galerie --}} {{-- Infos --}}
{{ $annonce->type->getLabel() }}

{{ $annonce->titre }}

@if($annonce->auteur_nom)Par {{ $annonce->auteur_nom }}@endif {{ $annonce->localisation ?? 'Haïti' }} 👁 {{ $annonce->vues }} vues @if($annonce->publiee_le){{ $annonce->publiee_le->format('d/m/Y') }}@endif
{{-- Prix (marketplace) --}} @if($annonce->type === \App\Enums\TypeAnnonce::Marketplace && $annonce->marketplaceDetail?->prix)
{{ number_format($annonce->marketplaceDetail->prix, 0, ',', ' ') }} HTG
@endif {{-- Détails événement --}} @if($annonce->type === \App\Enums\TypeAnnonce::Evenement && $annonce->evenementDetail?->date_debut)
Date{{ $annonce->evenementDetail->date_debut->format('d/m/Y') }}
@endif {{-- Détails livre --}} @if($annonce->type === \App\Enums\TypeAnnonce::Livre && $annonce->livreDetail) @if($annonce->livreDetail->prix)
{{ number_format($annonce->livreDetail->prix, 0, ',', ' ') }} HTG
@endif
@if($annonce->livreDetail->auteur)
Auteur{{ $annonce->livreDetail->auteur }}
@endif @if($annonce->livreDetail->genre)
Genre{{ $annonce->livreDetail->genre }}
@endif @if($annonce->livreDetail->editeur)
Éditeur{{ $annonce->livreDetail->editeur }}
@endif @if($annonce->livreDetail->annee_publication)
Année{{ $annonce->livreDetail->annee_publication }}
@endif @if($annonce->livreDetail->etat)
État{{ ucfirst($annonce->livreDetail->etat) }}
@endif
@endif {{-- Description --}}
{{ $annonce->description }}
{{-- POUR PLUS TARD : pour les types Emploi, Annuaire (et Livre à venir), ajoute ici un bloc
sur le même modèle que l'événement, en affichant les champs de leur table de détails. --}} {{-- Contact --}}

Contacter

@if($annonce->contact_nom)
{{ $annonce->contact_nom }}
@endif @if($annonce->contact_telephone)
Tél : {{ $annonce->contact_telephone }}
@endif @if($annonce->contact_email)
Courriel : {{ $annonce->contact_email }}
@endif @if($annonce->contact_telephone) Contacter via WhatsApp @endif
@if($pertinentes->isNotEmpty())

Annonces similaires

@foreach($pertinentes as $a) @include('public.partials.carte-annonce', ['a' => $a]) @endforeach
@endif @endsection