@if(! $projectData)
@else
@if(request()->routeIs('projects.data_form'))

GRILLE D'ETUDE: {{ $client_names }} - {{ $ref }}

@endif
@if(isset($clients[1])) @endif @if($infants['count']) @endif
AGE EMPRUNTEUR:
SITUATION FAM:
AGE CO-EMPRUNTEUR:
ENFANTS À CHARGE: AGE DES ENFANTS:
@foreach(range(0, $infants['count']-1) as $i)
@endforeach

@php($hasCoClient = count($clients) > 1)
@foreach($clients as $i => $client)
{!! $hasCoClient ? '

' . strip_tags($clients[$i]['fullname']) . '

' : '' !!}
{{ __('Profession') }}
{{ __('Contract Type') }}
{{ __('Professional seniority') }}
@endforeach
{{ __('Income') }}
@foreach($clients as $i => $client)
{!! $hasCoClient ? '

' . strip_tags($clients[$i]['fullname']) . '

' : '' !!} @if( !auth()->user()->is_client) @else @endif @if( !auth()->user()->is_client) @endif @if( !auth()->user()->is_client) @endif @if($i === 0 || data_get($this, "projectData.clients.$i.income.family_allowance")) @if( !auth()->user()->is_client) @endif @endif @for($inc = 1; $inc <= 5; $inc++) @php($index = $inc == 1? '' : $inc) @php($model = "projectData.clients.$i.income.other_income{$index}_id") @if(data_get($this, $model)) @if( !auth()->user()->is_client) @endif @endif @endfor
{{ __('Type') }}BS Annuel ImposableMontant{{ __('Actions') }}
{{ __('Salary/Pension') }}
{{ __('Rentals Revenue') }}
{{ __('Family Allowance') }}
Total {{ $client['total_income'] }}
{{--
@if($i === 0)
@endif
@lang('Additional Income')
@for($inc = 1; $inc <= 5; $inc++) @php($index = $inc == 1? '' : $inc) @php($model = "projectData.clients.$i.income.other_income{$index}_id") @if(data_get($this, $model)) @endif @endfor
--}}
@endforeach
{{ __('Claims') }}
@foreach($claims as $i => $claim) @endforeach @if(count($claims)) @endif
{{ __('Claim Type') }} {{ __('Creditor') }} {{ __('Monthly') }} Actions
Total {{ $total_claims }}

{{ __('Debts') }}
@if(! $this->clientId) @endif @foreach($debts as $i => $debt) @if(! $this->clientId) @endif @if(($debts[$i + 1] ?? null) && boolval($debt['recovery']) !== boolval($debts[$i + 1]['recovery'])) @endif @if(($debts[$i + 1] ?? null) && boolval($debt['recovery']) !== boolval($debts[$i + 1]['recovery'])) @endif @if(! ($debts[$i + 1] ?? null) && $debt['recovery']) @endif @endforeach @foreach($temp_debts as $i => $debt) @if(! $this->clientId) @endif @endforeach
NoRefOrganisme Type Mt initial Date de début Motif du prêt Taux Mensualité KRD À reprendre Actions
{{ $i + 1 }}
Total {{ str()->formatDecimal(data_get($debt_totals, 'monthly_no_recovery')) }} {{ str()->formatDecimal(data_get($debt_totals, 'remaining_capital_no_recovery')) }}
{{ $debt['recovery']? 'À conserver' : 'À reprendre' }}
Total {{ str()->formatDecimal(data_get($debt_totals, 'monthly_recovery')) }} {{ str()->formatDecimal(data_get($debt_totals, 'remaining_capital_recovery')) }}
@if($this->projectId) @else @endif

{{ __('Overdrafts') }}
@foreach($overdrafts as $i => $overdraft) @endforeach @if(count($overdrafts)) @endif
{{ __('Bank name') }} {{ __('IBAN') }} {{ __('Amount') }} Actions
Total {{ $total_overdraft }}

{{ __('Cashflows') }}
@foreach($cashflows as $i => $cashflow) @endforeach @if(count($cashflows)) @endif
{{ __('Reason') }} {{ __('Amount') }} Actions
Total {{ $total_cashflow }}

{{ __('Properties') }}
@foreach($properties as $i => $property) @endforeach @if(count($properties)) @endif
{{ __('Property Type') }} {{ __('Property Nature') }} {{ __('Value of purchase') }} {{ __('Estimated value') }} {{ __('Zip Code') }} {{ __('City') }} {{ __('Warranty proposed') }} Actions
Total en garantie {{ $total_warranty_property_value }}

{{--
KRD IMMO KRD CONSO TRESO DECOUVERT VALEUR BIEN VALEUR ACHAT RH
{{ str()->formatDecimal($remaining_capital_immo) }} {{ str()->formatDecimal($remaining_capital_conso) }} {{ str()->formatDecimal($total_cashflow) }} {{ str()->formatDecimal($total_overdraft) }} {{ str()->formatDecimal($total_property_value) }} {{ str()->formatDecimal($total_property_value_purchase) }}

--}} @if($this->project) @livewire('notes.notes-viewer', [ 'modelClass' => $this->project->getMorphClass(), 'modelId' => $this->project->id, 'showChannels' => false, 'autofocusInput' => false, 'channel' => 1 ]) @endif
@endif