{{-- Welcome Hero Section --}}
@if(!$clientCompletedSent && $this->contactUser) Envoyer mon dossier à mon courtier @endif Mon profil
{{-- File Sent Confirmation --}} @if($clientCompletedSent)
Dossier envoyé avec succès !

Votre dossier a été transmis à {{ $this->contactUser?->name_and_surname }} le {{ $this->client->meta('file_completed_sent_at') ? \Carbon\Carbon::parse($this->client->meta('file_completed_sent_at'))->format('d/m/Y à H:i') : 'récemment' }}. Votre courtier prendra contact avec vous dans les plus brefs délais.

@endif {{-- Dashboard Overview Cards --}}
@php $totalSteps = count($this->timelineSteps ?: []); $completedSteps = collect($this->timelineSteps ?: [])->where('status', 'completed')->count(); $progressPercent = $totalSteps > 0 ? round(($completedSteps / $totalSteps) * 100) : 0; @endphp
{{-- Documents Section --}} @php $documentsToFill = collect(); $documentsToSign = collect(); foreach ($this->files as $file) { foreach (range(1, 2) as $index) { if ($file->meta("docaposte_fill_url_$index")) { $documentsToFill->push([ 'file' => $file, 'index' => $index, ]); } } if ($file->is_ready_to_sign) { $documentsToSign->push($file); } } @endphp @if($documentsToFill->count() || $documentsToSign->count())
@if($documentsToFill->count() && $documentsToSign->count()) {{-- Both sections side by side --}}
Documents à remplir

Complétez les informations requises pour chaque document

@foreach($documentsToFill as $item)
@endforeach
Documents à signer

Signez vos documents en attente

@foreach($documentsToSign as $file)
@endforeach
@elseif($documentsToFill->count()) {{-- Only documents to fill --}}
Documents à remplir

Complétez les informations requises pour chaque document

@foreach($documentsToFill as $item)
@endforeach
@else {{-- Only documents to sign - full width --}}
Documents à signer

Signez vos documents en attente

@foreach($documentsToSign as $file)
@endforeach
@endif
@endif @if($documentsToFill->isEmpty() && $documentsToSign->isEmpty())
Aucun document à traiter

Vos documents apparaîtront ici dès qu'ils seront prêts à être consultés ou signés.

@endif {{-- Client Components Manager Section --}}
Services disponibles

Accédez rapidement à tous vos services et informations

@can('clients.update_details')

Mon Dossier

@endcan

Transmettre Mes Documents

@can('simulator.view')

Simulateurs

@endcan

Mon Contact

Tchat

Mon profil

@if($selectedComponent)
@switch($selectedComponent) @case('project') @can('clients.update_details') @livewire('projects.project-data-form', [ 'clientId' => $this->client->hashId ]) @endcan @break @case('documents')
@livewire('documents.documents-manager', [ 'modelType' => $this->client->getMorphClass(), 'modelId' => $this->client->getKey(), 'showFullManager' => false ])
@break @case('simulator') @livewire('simulations.loan-simulator', [ 'clientId' => $this->client->hashId, ]) @break @case('contact')
Contact
Pour plus d'informations

N'hésitez pas à contacter

{{ $this->contactUser?->name_and_surname }}
{{ $this->contactUser?->email }}
{{ $this->contactUser?->any_phone }}
@break @case('chat') @livewire('chats.chats-manager', [ 'modelClass' => $this->client->getMorphClass(), 'modelId' => $this->client->getKey(), 'isSingleConversation' => true, ] ) @break @case('account') @livewire('user.user-profile') @break @default @endswitch
Chargement...
@endif
{{-- Project Timeline --}} @if($this->timelineSteps)
@php $isRefusal = isset($this->timelineSteps[0]['is_refusal']) && $this->timelineSteps[0]['is_refusal']; @endphp
@if($isRefusal) {{ $this->timelineSteps[0]['title'] }} @else Suivi de votre dossier @endif

@if($isRefusal) Statut de votre demande @else Progression de votre demande de crédit @endif

@if(!$isRefusal)
@php $totalSteps = count($this->timelineSteps); $completedSteps = collect($this->timelineSteps)->where('status', 'completed')->count(); $progressPercent = $totalSteps > 0 ? round(($completedSteps / $totalSteps) * 100) : 0; @endphp
Progression globale {{ $completedSteps }}/{{ $totalSteps }} étapes
@endif
@foreach($this->timelineSteps as $step)
@if($step['status'] === 'completed') @elseif($step['status'] === 'refused') @elseif($step['status'] === 'active') @else @endif
{{ $step['title'] }}
{{ $step['description'] }}
{{ $step['date'] }}
@endforeach
@endif {{-- Promotional Banner --}}
Offres promotionnelles exclusives

Découvrez nos offres spéciales et profitez de conditions avantageuses pour vos prochains projets financiers.

{{-- Découvrir les offres --}}
{{-- --}}
@push('styles') @endpush