Ranking de Clientes segĂșn suma de montos de Ventas
Desde Fecha:
{{ date('d/m/Y', strtotime(request()->desdefecha)) }}
Hasta Fecha:
{{ date('d/m/Y', strtotime(request()->hastafecha)) }}
Cliente
Monto
@php $total=0; @endphp @foreach ($ranking as $ranking)
{!!$ranking->cliente!!}
{!!number_format($ranking->monto, 0, ',', '.')!!}
{{--
{{$ranking->cant}}
--}} @php $total = $total + $ranking->monto; @endphp
@endforeach
Total
{!!number_format($total, 0, ',', '.')!!}