@extends('layouts.app') @section('content')
Demande de prêt @if(!empty($tiers->id_tiers)): {{$tiers->id_tiers}}@endif
@if(in_array($demande->decision, ['R','D']))
Ce prêt a été refusé ou abandonné à cause de : {{$demande->motif}}
@endif
Demande de prêt
Réf de demande {{$demande->id_demande}}
Statut @php $status = config('credit.decision') @endphp {{key_exists($demande->decision, $status) ? mb_strtoupper($status[$demande->decision], 'UTF-8') : ""}}
Montant recommandé @if(!empty($demande->mtt_recommande)) {{ App\Lib\Format::number($demande->mtt_recommande)}} @endif
@foreach ($fields as $name => $attribue)
{{ !empty($attribue->label) ? $attribue->label : $name }} @switch($attribue->type) @case('date') {{(new DateTime($attribue->value))->format('d/m/Y')}} @break @case('select') @if(key_exists($attribue->value,$attribue->options)) {{$attribue->options[$attribue->value]}} @else {{ $attribue->value }} @endif @break @case('money') {{ App\Lib\Format::number($attribue->value)}} @break @default {{$attribue->value}} @endswitch
@endforeach
@foreach ($dossiers as $doc=>$libelle) @if($doc == 'pt') Garanties @else {{ucfirst($libelle)}} @endif @endforeach
@if($demande->decision == 'E') @if($droit_validation == '1') @endif @endif
@csrf
Demande de prêt Voulez vous réellement revenir sur votre décision ? @endsection @section('script') @endsection