@extends('layouts.pdf') @section('content')
BanKeys Logo
{{ $presentationData->document_title }}

Bonjour,

{{ $presentationData->greeting }}.

{{-- IDENTITÉ SECTION --}}
IDENTITÉ

{{ $presentationData->identity_section }}

{{-- REVENUS SECTION --}}
REVENUS
@foreach($presentationData->revenue_section as $paragraph)

{!! $paragraph !!}

@endforeach
{{-- COMPTES SECTION --}}
COMPTES
@foreach($presentationData->accounts_section as $paragraph) @if(is_array($paragraph))

{{ $paragraph['text'] }}

@else

{{ $paragraph }}

@endif @endforeach
{{-- CREANCES SECTION --}}
STRUCTURE DE L'ENDETTEMENT
@if($presentationData->has_active_debts) @foreach($presentationData->active_debts as $debt) @endforeach
Ref Créance Prêteur Motif Capital restant dû Mensualité Taux Rachat
{{ $debt->ref ?? 'N/A' }} {{ $debt->debt_type?->label ?? 'N/A' }} {{ $debt->creditor?->label ?? 'N/A' }} {{ $debt->object ?? 'N/A' }} {{ number_format($debt->remaining_capital ?? 0, 0, ',', '') }}€ {{ number_format($debt->monthly ?? 0, 0, ',', '') }}€ {{ $debt->rate ? number_format($debt->rate, 1, ',', '') . '%' : 'N/A' }} {{ $debt->recovery ? 'Oui' : 'Non' }}
Total {{ $presentationData->debts_totals['remaining_capital'] }}€ {{ $presentationData->debts_totals['monthly'] }}€
@else

{{ $presentationData->debts_section }}

@endif
{{-- MOTIVATION SECTION --}}
MOTIVATION

{{ $presentationData->motivation_section['intro'] }}

@php($cashNeed = $presentationData->motivation_section['cash_need_amount'] ?? 0) @if($cashNeed > 0)

{{ __('Cash need: :amount€', ['amount' => number_format($cashNeed, 0, ',', ' ')]) }}

@elseif($presentationData->motivation_section['no_cash_need'])

Il n'y a pas de besoin de trésorerie

@endif
{{-- FOOTER SECTION --}} @endsection