@php $dde = $item->client_dde; $client_id = $item->client_id; $name = $item->client_name; $birth = $item->client_birth; $birth_place = $item->client_birth_adresse; $civility = $item->client_civility; $nationality = $item->client_nationality; $phone = $item->client_phone; $address = $item->client_adresse; $code = $item->usr_nb_court; $profession= $item->client_profession; $doc = $item->client_doc_name; $doc_id = $item->client_doc_id; $code = $item->client_no; $password = $item->password; $status = $item->client_status; $intitule = $item->intitule->int_name ?? null; $admin = $item->admin->ad_name ?? null; $date_reg = $item->client_date; $affairs = $item->affairs ?? []; $birth_format = DateTime::createFromFormat('d-m-Y', $birth); if ($birth_format !== false) { $birth_format = $birth_format->format('Y-m-d'); } else { $birth_format = now()->format('Y-m-d'); } //dd($birth); $solde_all = 0; $cur = 0; @endphp @extends('master.master_back') @section('title') Details des informations de {{ $name }} @endsection @section("style-up") @endsection @section('content')

{{ $civility.' '.$name }}

Details des Informations

Nom Complet :
{{ $name }}
N° Téléphone :
{{ $phone }}
Date de Naiss... :
{{ $birth }}
Lieu de Naiss... :
{{ $birth_place }}
Adresse :
{{ $address }}
Profession :
{{ $profession }}
Statut :
@if ($status == 1) Active @elseif($status == 0) Inactive @elseif($status == 2) Rejete @endif
Nationalité :
{{ $nationality }}
Document :
{{ $doc }}
N° Document:
{{ $doc_id }}
@if ($status == 1) @else @endif

Modification des Informations

Affaires

@if (isset($affairs) && COUNT($affairs) > 0) @foreach ($affairs as $key => $value) @php $value_id = $value->ca_id; $name= $value->customer->client_name ?? null; $phone= $value->customer->client_phone ?? null; $description = $value->ca_desc; $status = $value->ca_status; $nature = $value->nature->na_name ?? null; $date_reg = $value->ca_date; $details = $value->details ?? []; @endphp {{-- --}} @endforeach @endif
Nom Complet Nature. Description Status Date Enreg Actions
{{ $key + 1 }}
{{ $name }}
{{ $phone }}
{{ isset($value->admin) ? $value->admin->ad_name : "" }}{{ $nature }} {{ $description }} @if($status == 0) {{ "NON" }} @else {{ "OUI" }} @endif {{ $date_reg }}
@endsection @section('script-down') @endsection