@extends('layouts.dashboard') @section('pageTitle') Détail demande d'estimation #{{ $estimation->id }} @endsection @section('sectionTitle') Détail demande d'estimation @endsection @section('content') @if (session('success'))
{{ session('success') }} @if (session('whatsapp_link'))
Envoyer le résumé par WhatsApp au client @endif
@endif @if (session('error'))
{{ session('error') }}
@endif
Retour
@csrf @method('DELETE')
Propriétaire
Nom : {{ $estimation->nom ?? '—' }}
Tél. principal : {{ $estimation->tel1 ?? '—' }}
Tél. secondaire : {{ $estimation->tel2 ?? '—' }}
Email : {{ $estimation->email ?? '—' }}
Préférence contact : {{ $estimation->contact_pref ?? '—' }}
Adresse postale : {{ $estimation->adresse ?? '—' }}
Objectif
Type de demande : {{ $estimation->type_demande ?? '—' }}
Délai : {{ $estimation->delai ?? '—' }}
Raison : {{ $estimation->raison ?? '—' }}
Localisation du bien
Ville / Gouvernorat : {{ $estimation->ville ?? '—' }}
Région / Quartier : {{ $estimation->quartier ?? '—' }}
Adresse complète : {{ $estimation->adresse_bien ?? '—' }}
Type d'emplacement : {{ $estimation->zone ?? '—' }}
@if($estimation->latitude && $estimation->longitude)
Localisation sur la carte
@endif
Bien
Type de bien : {{ $estimation->type_bien ?? '—' }}
Superficie terrain (m²) : {{ $estimation->superficie_terrain ?? '—' }}
Superficie couverte (m²) : {{ $estimation->superficie_couverte ?? '—' }}
Pièces : {{ $estimation->pieces ?? '—' }}
Chambres : {{ $estimation->chambres ?? '—' }}
Salles de bain : {{ $estimation->sdb ?? '—' }}
Nombre de cuisines : {{ $estimation->cuisine ?? '—' }}
Nombre d'étages : {{ $estimation->nombre_etages ?? '—' }}
État : {{ $estimation->etat ?? '—' }}
Année construction : {{ $estimation->annee ?? '—' }}
Équipements : {{ $estimation->equipements ?? '—' }}
Situation juridique et finances
Titre : {{ $estimation->titre ?? '—' }}
Prix souhaité (DT) : {{ $estimation->prix ?? '—' }}
Loyer souhaité (DT/mois) : {{ $estimation->loyer ?? '—' }}
Disponibilité : {{ $estimation->disponibilite ? (preg_match('/^\d{4}-\d{2}-\d{2}$/', $estimation->disponibilite) ? \Carbon\Carbon::parse($estimation->disponibilite)->format('d/m/Y') : $estimation->disponibilite) : '—' }}
Contact pour visite
Nom : {{ $estimation->contact_visite ?? '—' }}
Téléphone : {{ $estimation->tel_visite ?? '—' }}
@if($estimation->photos || $estimation->documents || $estimation->pdf_path)
Fichiers
@if($estimation->photos)

Photos :

@foreach(array_filter(explode(',', $estimation->photos)) as $path) @endforeach
@endif @if($estimation->documents)

Documents :

@endif @if($estimation->pdf_path)

PDF : Voir le PDF

@endif
@endif @if($estimation->commentaires)
Commentaires

{{ $estimation->commentaires }}

@endif
Demande enregistrée le {{ $estimation->created_at ? $estimation->created_at->format('d/m/Y à H:i') : '—' }} @if($estimation->response_sent_at)
Réponse envoyée le {{ $estimation->response_sent_at->format('d/m/Y à H:i') }} — Estimation : {{ $estimation->response_price ?? '—' }} DT
@endif
{{-- Modal Répondre --}} @push('stylesheets') @endpush @push('scripts') @endpush @if($estimation->latitude && $estimation->longitude) @push('stylesheets') @endpush @push('scripts') @endpush @endif @endsection