@extends('layouts.app') @section('title', $property->title . ' - CayorCity') @section('content')
@if($property->images->count() > 0) @if($property->images->count() > 1)
@foreach($property->images->take(6) as $index => $image)
@endforeach
@endif @else

Aucune image disponible

@endif

{{ $property->title }}

{{ number_format($property->price, 0, ',', ' ') }} FCFA

{{ $property->transaction_type === 'sale' ? 'Vente' : 'Location' }}

{{ $property->propertyType->name }}

{{ $property->city }} @if($property->district), {{ $property->district }} @endif

{{ $property->agency->name }}

{{ $property->surface }}m²
Surface
{{ $property->bedrooms }}
Chambres
{{ $property->bathrooms }}
Salles de bain
@if($property->floor)
{{ $property->floor }}
Étage
@endif
Équipements
@if($property->furnished)
Meublé
@endif @if($property->parking)
Parking
@endif @if($property->garden)
Jardin
@endif @if($property->balcony)
Balcon
@endif
@if($property->description)
Description

{{ $property->description }}

@endif @if($property->address)
Adresse

{{ $property->address }}

@endif
{{ $property->agency->name }}
@if($property->agency->logo) {{ $property->agency->name }} @endif

{{ $property->agency->description }}

@if($property->agency->phone)

{{ $property->agency->phone }}

@endif @if($property->agency->email)

{{ $property->agency->email }}

@endif Voir l'agence
Contacter l'agence
@csrf
@auth
@php $isFavorite = auth()->user()->favorites()->where('property_id', $property->id)->exists(); @endphp
@csrf @if($isFavorite) @else @endif
@endauth
Statistiques

{{ $property->views }} vues

Publié le {{ $property->published_at ? $property->published_at->format('d/m/Y') : 'N/A' }}

@if($property->is_featured) À la une @endif
@if($similarProperties->count() > 0)

Propriétés similaires

@foreach($similarProperties as $similarProperty)
@include('properties.partials.property-card', ['property' => $similarProperty])
@endforeach
@endif
@push('styles') @endpush @push('scripts') @endpush @endsection