@include('printer.partials.style80mm')
@php $gastos_efectivo = 0; $gastos_transferencia = 0; $count_gastos_efectivo = 0; $count_gastos_transferencia = 0; $count_movimientos_caja_general = 0; $count_movimientos_caja_menor = 0; foreach ($movimientos as $mov) { // Cuento los gastos if ($mov->tipo_mov == 2 && $mov->id_gasto != NULL) { if($mov->id_metodo == '1'){ $gastos_efectivo += $mov->valor; $count_gastos_efectivo++; } if($mov->id_metodo == '2'){ $gastos_transferencia += $mov->valor; $count_gastos_transferencia++; } } // cuento los movimientos de cajas manuales if($mov->id_caja == '1' && $mov->tipo == '1'){ $count_movimientos_caja_general++; } if($mov->id_caja == '2' && $mov->tipo == '1'){ $count_movimientos_caja_menor++; } } @endphp{{$cierre->user->name}}
{{$ventas->count()}}
{{$gastos->count()}}
$ {{number_format($total_ventas)}}
$ {{number_format($ventas_efectivo)}}
$ {{number_format($ventas_transferencia)}}
$ {{number_format($total_gastos)}}
$ {{number_format($gastos_efectivo)}}
$ {{number_format($gastos_transferencia)}}
$ {{number_format($total_costos)}}
$ {{number_format($total_ganancias)}}
MOVIMIENTOS DE CAJA
CAJA GENERAL:{{$count_movimientos_caja_general}}
{{$mov->id}}
{{date("H:i",strtotime($mov->created_at))}}
{{($mov->tipo_mov == '1') ? 'Ingreso' : 'Egreso' }}
{{($mov->id_metodo == '1') ? 'Efectivo' : 'Transferencia' }}
$ {{number_format($mov->valor)}}
{{$mov->descripcion}}
{{$mov->user->name}}
MOVIMIENTOS DE CAJA
CAJA MENOR:{{$count_movimientos_caja_menor}}
{{$mov->id}}
{{date("h:i A",strtotime($mov->created_at))}}
{{($mov->tipo_mov == '1') ? 'Ingreso' : 'Egreso' }}
{{($mov->id_metodo == '1') ? 'Efectivo' : 'Transferencia' }}
$ {{number_format($mov->valor)}}
{{$mov->descripcion}}
{{$mov->user->name}}
Impresión: {{date('d/m/Y h:i A')}}
generado por: {{Auth::user()->name}}
@include('printer.partials.footer80mm')