@extends('layouts.app') @section('title', 'Grand livre clients') @section('breadcrumb', 'États / Grand livre clients') @section('content')
@php $totCa=0; $totAvoirs=0; @endphp @forelse($clients as $c) @php $solde = ($c->ca??0) - ($c->avoirs??0); $totCa+=($c->ca??0); $totAvoirs+=($c->avoirs??0); @endphp @empty @endforelse @if(count($clients)) @endif
ClientCA Factures TTCAvoirs TTCSolde net
{{ $c->nom }} {{ number_format($c->ca??0,3,',',' ') }} {{ number_format($c->avoirs??0,3,',',' ') }} {{ number_format($solde,3,',',' ') }}
Aucune donnée
TOTAL {{ number_format($totCa,3,',',' ') }} {{ number_format($totAvoirs,3,',',' ') }} {{ number_format($totCa-$totAvoirs,3,',',' ') }}
@endsection