@extends('layouts.exat') @section('title', 'À décaisser') @section('subtitle', $demandes->total().' avance(s) validée(s) en attente') @section('content')
En attente de décaissement
{{ $demandes->total() }}
Montant total
{{ number_format($montantAttente, 0, ',', ' ') }} FCFA
@include('partials._filtre-date')
@include('partials.th-tri', ['col' => 'reference', 'label' => 'Réf. Int / Ext']) @include('partials.th-tri', ['col' => 'planteur', 'label' => 'Planteur']) @include('partials.th-tri', ['col' => 'objet', 'label' => 'Objet']) @include('partials.th-tri', ['col' => 'montant', 'label' => 'Montant', 'align' => 'right']) @include('partials.th-tri', ['col' => 'validee', 'label' => 'Validée le']) @include('partials.th-tri', ['col' => 'createur', 'label' => 'Créée par']) @forelse($demandes as $d) @empty @endforelse
Contrat
{{ $d->reference }}
@if($d->numero_pret)
{{ $d->numero_pret }}
@endif
{{ $d->planteur->nom ?? '—' }}
{{ $d->planteur->code ?? '' }}
{{ $d->objet ?? '—' }} {{ number_format((float) $d->montant, 0, ',', ' ') }} {{ $d->date_decision ? \Illuminate\Support\Carbon::parse($d->date_decision)->format('d/m/Y') : '—' }} {{ $d->createur->name ?? '—' }} @if(!$d->contrat) Non généré @elseif($d->contrat->date_signature) Signé @else Non signé @endif
Détail @if($peutDecaisser) @if($d->contrat && $d->contrat->date_signature)
@csrf
@else {{ $d->contrat ? 'Non signé' : 'Contrat requis' }} @endif @endif
Aucune avance validée en attente de décaissement.
@if($demandes->total() > 0)
@include('partials.pagination', ['paginator' => $demandes])
@endif
@if(!$peutDecaisser)

Vous consultez cette liste en lecture seule. Le décaissement nécessite un accès en écriture au module « À décaisser ».

@endif @endsection