Crédits clients (Dettes)

{{-- SEARCH --}}
@if($credits->count() > 0) @foreach($credits as $commande) @php $amount = $commande->amount->first(); $total = $amount->amount_items ?? 0; $paid = $amount->amount_payments ?? 0; $remainder = $amount->remainder ?? 0; @endphp @endforeach @else @endif
#Commande Client Contact Total Payé Reste
#{{ $commande->reference }} {{ $commande->client->fullname }} {{ $commande->client->contact }} {{ money($total) }} {{ money($paid) }} {{ money($remainder) }}
Aucun crédit client
{{ $credits->links() }}
{{-- TEXTE --}}
Total des crédits clients

{{ money($this->totalCredit) }}

{{-- INFO --}}
Montant total des dettes en cours