@extends('layouts.base') @section('content') @section('breadcrumb') @endsection @if(session('success')) @endif

Fiche client

{{ $client->fullName() ?: $client->email }}

{{-- Modifier --}} Retour
Informations client
{{ $client->lastname ?? '-' }}
{{ $client->firstname ?? '-' }}
{{ $client->civility?->label() ?? '-' }}
{{ $client->phone ?? '-' }}
{{ $client->city ?? '-' }}
{{ $client->address ?? '-' }}
{{ $client->zip ?? '-' }}
{{ $client->birthdate?->format('d/m/Y') ?? '-' }}
{{ $client->profession ?? '-' }}

{{ $client->created_at->format('d/m/Y H:i') }}
{{ $client->id }}
{{ $client->note_promoteur ?? 'Aucune note' }}
Dossiers actifs
@if($dossiersActifs->isEmpty())

Aucun dossier actif

@else
@foreach($dossiersActifs as $option) @php $product = $option->product; $program = $product?->program; $fiscalite = $product?->fiscalites->first(); $prix = $option->prices->where('type', 'prix_ttc')->first() ?? $product?->prices->where('type', 'prix_ttc')->first(); $currentState = $option->state; $dateReservation = $option->states()->whereIn('type', [ \App\Enums\OptionState::CONFIRMED->value, \App\Enums\OptionState::PROMESSE_VENTE_SIGNEE->value, ])->first()?->created_at; @endphp @endforeach
Programme Lot Fiscalité associée Typologie Statut du dossier Date pose d'option Date de réservation Prix
{{ $program?->name ?? '-' }} {{ $product?->name ?? 'Lot ' . ($product?->number ?? '-') }} @if($fiscalite) {{ $fiscalite->type?->label() ?? '-' }} @else - @endif {{ $product?->type?->label() ?? '-' }} {{ $currentState?->label() ?? '-' }} {{ $option->created_at->format('d/m/Y') }} {{ $dateReservation?->format('d/m/Y') ?? '-' }} @if($prix) {{ number_format($prix->value, 0, ',', ' ') }} € @else - @endif
@endif
Historique des ventes
@if($historiqueVentes->isEmpty())

Aucune vente dans l'historique

@else
@foreach($historiqueVentes as $option) @php $product = $option->product; $program = $product?->program; $prix = $option->prices->where('type', 'prix_ttc')->first() ?? $product?->prices->where('type', 'prix_ttc')->first(); $currentState = $option->state; $dateArchivage = $option->states()->whereIn('type', [ \App\Enums\OptionState::CANCELED->value, \App\Enums\OptionState::ACTE_DEFINITIF_SIGNE->value, ])->first()?->created_at ?? $option->updated_at; @endphp @endforeach
Date d'archivage Programme Lot Statut Prix
{{ $dateArchivage->format('d/m/Y') }} {{ $program?->name ?? '-' }} {{ $product?->name ?? 'Lot ' . ($product?->number ?? '-') }} {{ $currentState?->label() ?? '-' }} @if($prix) {{ number_format($prix->value, 0, ',', ' ') }} € @else - @endif
@endif
Documents
@if($documents->isEmpty())

Aucun document

@else
@foreach($documents as $document)
{{ $document->name }}

{{ number_format($document->size / 1024, 2) }} Ko

Télécharger
@endforeach
@endif
@endsection