@if( count($ventas) == 0)

No hay registro de ventas para el año seleccionado

@else

Resumen del año seleccionado

@if(Auth::user()->tipo != 'user') @foreach ($ventas as $venta) @if(Auth::user()->tipo != 'user') @endif @endforeach @if(Auth::user()->tipo != 'user') @endif @if(Auth::user()->tipo != 'user') @endif @if(Auth::user()->tipo != 'user') @endif
Número de boleta Cantidad Detalle de venta Tipo de pago Hora Vendido por ComisiónIVA a pagar @endif Total
{{ $venta->num_boleta }} {{ $venta->numero }} {{ $venta->detalle }} {{ $venta->tipo_de_pago }} {{ $venta->created_at }} {{ $venta->vendido_por }} ${{ number_format($venta->comision, 0, ",", ".") }}${{ number_format((($venta->total*19)/119), 0, ",", ".") }}${{ number_format($venta->total, 0, ",", ".") }}
Total @php $total = 0; for ( $i = 0 ; $i < count($ventas) ; $i++ ){ $total = $total + $ventas[$i]->total; } @endphp $ {{ number_format($total, 0, ",", ".")}} @php $iva_total = 0; for ( $i = 0 ; $i < count($ventas) ; $i++ ){ $iva_total = $iva_total + $ventas[$i]->total; } @endphp $ {{ number_format((($iva_total*19)/119), 0, ",", ".")}}
Total final @php $tf = $total - (($iva_total*19)/119); @endphp $ {{ number_format($tf, 0, ",", ".")}}




@endif