@extends('layouts.exat') @section('title', 'Contrats') @section('subtitle', $contrats->total().' contrat(s)') @section('content')
@include('partials._filtre-date') @if(request()->hasAny(['periode', 'date', 'date_debut', 'date_fin', 'semaine', 'mois', 'annee'])) Réinitialiser @endif
@include('partials.th-tri', ['col' => 'numero', 'label' => 'Numéro']) @include('partials.th-tri', ['col' => 'demande', 'label' => 'Demande']) @include('partials.th-tri', ['col' => 'planteur', 'label' => 'Planteur']) @include('partials.th-tri', ['col' => 'code', 'label' => 'Code planteur']) @include('partials.th-tri', ['col' => 'montant', 'label' => 'Montant du prêt', 'align' => 'right']) @include('partials.th-tri', ['col' => 'genere', 'label' => 'Généré le']) @include('partials.th-tri', ['col' => 'signature', 'label' => 'Signature']) @forelse($contrats as $c) @empty @endforelse
Documents
{{ $c->numero }} {{ $c->demande->reference ?? '—' }}@if($c->demande?->numero_pret)
{{ $c->demande->numero_pret }}
@endif
{{ $c->demande->planteur->nom ?? '—' }} {{ $c->demande->planteur->code ?? '—' }} {{ $c->demande ? number_format((float) $c->demande->montant, 0, ',', ' ').' FCFA' : '—' }} {{ $c->date_generation?->format('d/m/Y à H:i') }} @if($c->date_signature) Signé le {{ $c->date_signature->format('d/m/Y') }} @else Non signé @endif Word PDF
Aucun contrat généré. Les contrats se créent depuis une demande validée.
@if($contrats->total() > 0)
@include('partials.pagination', ['paginator' => $contrats])
@endif
@endsection