@extends('layouts.dashboard.inface', ['section' => 'clients']) @section('content')
Clientes chevron_right Detalle del Cliente
{{ $client['initials'] }}

{{ $client['fullName'] }}

{{ $client['documentSummary']['statusLabel'] }} @if ($client['status']) {{ $client['status'] }} @endif

{{ $client['clientCode'] }} @if ($client['agent']['name']) ยท Asignado a {{ $client['agent']['name'] }} @endif

arrow_back Volver a clientes

Informacion general

Correo
mail {{ $client['email'] ?: 'Sin correo registrado' }}
Telefono
phone {{ $client['phone'] ?: 'Sin telefono registrado' }}
Fuente
{{ $client['sourceIcon'] }} {{ $client['source'] ?: 'Sin fuente registrada' }}
Beneficiario
person_heart {{ $client['beneficiary'] ?: 'Sin beneficiario registrado' }}
Direccion
location_on {{ $client['address'] ?: 'Sin direccion registrada' }}

Notas

{{ $client['notes'] ?: 'Este cliente aun no tiene notas registradas.' }}

@if (session('success'))
{{ session('success') }}
@endif

Resumen documental

Progreso
{{ $client['documentSummary']['progressPercent'] }}% completado
Documentos cargados
{{ $client['documentSummary']['completedDocuments'] }}/{{ $client['documentSummary']['requiredDocuments'] }}
Ventas asociadas
{{ $client['salesCount'] }}
Avance de expediente {{ $client['documentSummary']['completedDocuments'] }} de {{ $client['documentSummary']['requiredDocuments'] }}
Documentos faltantes @if ($client['documentSummary']['missingDocuments'] !== [])
@foreach ($client['documentSummary']['missingDocuments'] as $missingDocument) {{ $missingDocument }} @endforeach
@else

El expediente del cliente esta completo.

@endif

Documentos cargados

@csrf

Agregar archivo

Sube un documento al expediente del cliente. Formatos permitidos: PDF, JPG, PNG y WEBP.

Max. 10 MB
@if ($errors->has('document') || $errors->has('document_type') || $errors->has('custom_document_type'))
Corrige los campos del formulario para poder agregar el archivo.
@endif
@error('document_type') {{ $message }} @enderror
@error('custom_document_type') {{ $message }} @enderror
@error('document') {{ $message }} @enderror
@forelse ($client['documents'] as $document)
{{ $document['icon'] }}

{{ $document['title'] }}

{{ $document['fileName'] }}

{{ $document['mimeType'] }} {{ $document['sizeLabel'] }} {{ $document['uploadedAtFormatted'] }}
@empty
Este cliente aun no tiene documentos cargados.
@endforelse
@endsection