@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
@if(Auth::user()->negocio->logo != null) Logotipo
@endif
{{Auth::user()->negocio->nombre}}
{{Auth::user()->negocio->nit}}
- Cierre N° {{$cierre->id}} -
Fecha: {{date_format(date_create($cierre->created_at), 'd/m/Y H:i')}} HS

Generado por:

{{$cierre->user->name}}

Cantidad ventas:

{{$ventas->count()}}

Cantidad gastos:

{{$gastos->count()}}

Ventas:

$ {{number_format($total_ventas)}}

- Ventas efectivo:

$ {{number_format($ventas_efectivo)}}

- Ventas transferencia:

$ {{number_format($ventas_transferencia)}}

Gastos:

$ {{number_format($total_gastos)}}

- Gastos efectivo:

$ {{number_format($gastos_efectivo)}}

- Gastos transferencia:

$ {{number_format($gastos_transferencia)}}


Costos aproximados:

$ {{number_format($total_costos)}}

Ganancias aproximadas:

$ {{number_format($total_ganancias)}}


MOVIMIENTOS DE CAJA

CAJA GENERAL:

Cantidad movimientos:

{{$count_movimientos_caja_general}}

@foreach ($movimientos as $mov) @if ($mov->id_caja == '1' && $mov->tipo == '1')
ID:

{{$mov->id}}

Hora:

{{date("H:i",strtotime($mov->created_at))}}

Tipo de movimiento:

{{($mov->tipo_mov == '1') ? 'Ingreso' : 'Egreso' }}

Fuente de dinero:

{{($mov->id_metodo == '1') ? 'Efectivo' : 'Transferencia' }}

Valor del movimiento:

$ {{number_format($mov->valor)}}

Descripción:

{{$mov->descripcion}}

Usuario:

{{$mov->user->name}}

@endif @endforeach

MOVIMIENTOS DE CAJA

CAJA MENOR:

Cantidad movimientos:

{{$count_movimientos_caja_menor}}

@foreach ($movimientos as $mov) @if ($mov->id_caja == '2' && $mov->tipo == '1')
ID:

{{$mov->id}}

Hora:

{{date("h:i A",strtotime($mov->created_at))}}

Tipo de movimiento:

{{($mov->tipo_mov == '1') ? 'Ingreso' : 'Egreso' }}

Fuente de dinero:

{{($mov->id_metodo == '1') ? 'Efectivo' : 'Transferencia' }}

Valor del movimiento:

$ {{number_format($mov->valor)}}

Descripción:

{{$mov->descripcion}}

Usuario:

{{$mov->user->name}}

@endif @endforeach

Impresión: {{date('d/m/Y h:i A')}}
generado por: {{Auth::user()->name}}
@include('printer.partials.footer80mm')

Imprimir Cerrar