{{ DB::table('empresas')->count() == 0 ? 'SISCOM ' : DB::table('empresas')->first()->razon_social }}

{{ DB::table('empresas')->count() == 0 ? '- ' : DB::table('empresas')->first()->direccion_fiscal }}

Central telefónica: {{ DB::table('empresas')->count() == 0 ? '-' : DB::table('empresas')->first()->telefono }}

Email: {{ DB::table('empresas')->count() == 0 ? '-' : DB::table('empresas')->first()->correo }}


{{-- --}} {{-- --}} {{-- --}} {{-- --}}
CAJA : {{ $movimiento->caja->nombre }}{{ getFechaFormato( $documento->fecha_documento ,'d/m/Y')}}
Colaborador : {{ $colaborador->nombre }} {{ getFechaFormato( $documento->fecha_documento ,'d/m/Y')}}
Turno : {{ 'MAÑANA' }}{{ getFechaFormato( $documento->fecha_documento ,'d/m/Y')}}
Monto Inicial : {{ $movimiento->monto_inicial }}{{ getFechaFormato( $documento->fecha_documento ,'d/m/Y')}}
Fecha : {{ date_format($movimiento->created_at, 'Y/m/d') }}

VENTAS
@php $cont = 0; while ($cont < count(tipos_pago())) { if ($cont == count(tipos_pago()) - 1) { echo ''; } else { echo ''; } $cont++; } @endphp @foreach ($movimiento->detalleMovimientoVentas as $ventas) {{-- $ventas->documento->sunat != '2' && --}} @if ( $ventas->documento->condicion_id == 1 && $ventas->documento->estado_pago == 'PAGADA' && ifNoConvertido($ventas->documento->id)) @foreach (tipos_pago() as $tipo) {{-- EFECTIVO --}} @if ($tipo->id == 1) @if ($tipo->id == $ventas->documento->tipo_pago_id) '; @else '; @endif @else @if ($tipo->id == $ventas->documento->tipo_pago_id) '; @else '; @endif @endif @endforeach @endif @endforeach @foreach (tipos_pago() as $tipo_pago) @endforeach
NUMERO CLIENTE DEV COBRAR MONTO' . tipos_pago()[$cont]->descripcion . '' . tipos_pago()[$cont]->descripcion . '
{{ $ventas->documento->serie . '-' . $ventas->documento->correlativo }} {{ $ventas->documento->clienteEntidad->nombre }} @if (count($ventas->documento->notas) > 0)
@elseif($ventas->documento->estado === 'ANULADO') ANULADO @endif
{{$ventas->cobrar}} {{ $ventas->documento->total_pagar }} {{ $ventas->documento->importe }} {{ $ventas->documento->efectivo }} {{ $ventas->documento->importe }}0.00
TOTAL {{ number_format(cuadreMovimientoCajaIngresosVentaResum($movimiento, $tipo_pago->id), 2) }}

COBRANZA CLIENTES
@php $cont = 0; while ($cont < count(tipos_pago())) { if ($cont == count(tipos_pago()) - 1) { echo ''; } else { echo ''; } $cont++; } @endphp @foreach ($movimiento->detalleCuentaCliente as $cuentaCliente) @foreach (tipos_pago() as $tipo) @if ($tipo->id == 1) @if ($tipo->id == $cuentaCliente->tipo_pago_id) '; @else '; @endif @else @if ($tipo->id == $cuentaCliente->tipo_pago_id) '; @else '; @endif @endif @endforeach @endforeach @foreach (tipos_pago() as $tipo) @endforeach
NUMERO CLIENTE MONTO' . tipos_pago()[$cont]->descripcion . '' . tipos_pago()[$cont]->descripcion . '
{{ $cuentaCliente->cuenta_cliente->documento->serie . '-' . $cuentaCliente->cuenta_cliente->documento->correlativo }} {{ $cuentaCliente->cuenta_cliente->documento->clienteEntidad->nombre }} {{ $cuentaCliente->monto }} {{ $cuentaCliente->efectivo }} {{ $cuentaCliente->efectivo }} {{ $cuentaCliente->importe }}0.00
TOTAL {{ number_format(cuadreMovimientoCajaIngresosCobranzaResum($movimiento, $tipo->id), 2) }}

EGRESOS POR CAJA
@php $cont = 0; while ($cont < count(tipos_pago())) { if ($cont == count(tipos_pago()) - 1) { echo ''; } else { echo ''; } $cont++; } @endphp @foreach ($movimiento->detalleMoviemientoEgresos as $detalleEgreso) @if ($detalleEgreso->egreso->estado == 'ACTIVO') @foreach (tipos_pago() as $tipo) @if ($tipo->id == 1) @if ($tipo->id == $detalleEgreso->egreso->tipo_pago_id) '; @else '; @endif @else @if ($tipo->id == $detalleEgreso->egreso->tipo_pago_id) '; @else '; @endif @endif @endforeach @endif @endforeach @foreach (tipos_pago() as $tipo) @endforeach
ID RECIBO DESCRIPCION MONTO' . tipos_pago()[$cont]->descripcion . '' . tipos_pago()[$cont]->descripcion . '
{{ $detalleEgreso->egreso->documento }} {{ $detalleEgreso->egreso->descripcion }} {{ $detalleEgreso->egreso->monto }} {{ $detalleEgreso->egreso->efectivo }} {{ $detalleEgreso->egreso->efectivo }} {{ $detalleEgreso->egreso->importe }}0.00
TOTAL {{ number_format(cuadreMovimientoCajaEgresosEgresoResum($movimiento, $tipo->id), 2) }}

RECIBOS DE CAJA
@php $cont = 0; while ($cont < count(tipos_pago())) { if ($cont == count(tipos_pago()) - 1) { echo ''; } else { echo ''; } $cont++; } @endphp @foreach ($recibos as $recibo) @if ($recibo->estado == 'ACTIVO') @foreach (tipos_pago() as $tipo) @if ($tipo->descripcion == $recibo->metodo_pago) '; @else '; @endif @endforeach @endif @endforeach @foreach (tipos_pago() as $tipo) @endforeach
ID RECIBO DESCRIPCION MONTO' . tipos_pago()[$cont]->descripcion . '' . tipos_pago()[$cont]->descripcion . '
{{'RC-'.$recibo->id }} {{ $recibo->cliente_nombre.'-'.$recibo->estado_servicio }} {{ $recibo->monto }} {{ $recibo->monto }}0.00
TOTAL {{ number_format(calcularTotalesRecibosCaja($movimiento, $tipo->descripcion), 2) }}

PAGOS PROVEEDORES
@php $cont = 0; while ($cont < count(tipos_pago())) { if ($cont == count(tipos_pago()) - 1) { echo ''; } else { echo ''; } $cont++; } @endphp @foreach ($movimiento->detalleCuentaProveedor as $detalleProveedor) @foreach (tipos_pago() as $tipo) @if ($tipo->id == 1) @if ($tipo->id == $detalleProveedor->tipo_pago_id) '; @else '; @endif @else @if ($tipo->id == $detalleProveedor->tipo_pago_id) '; @else '; @endif @endif @endforeach @endforeach @foreach (tipos_pago() as $tipo) @endforeach
TIPO DOC NUMERO CLIENTE MONTO' . tipos_pago()[$cont]->descripcion . '' . tipos_pago()[$cont]->descripcion . '
{{ $detalleProveedor->cuenta_proveedor->documento->tipo_compra }} {{ $detalleProveedor->cuenta_proveedor->documento->serie_tipo . ' - ' . $detalleProveedor->cuenta_proveedor->documento->numero_tipo }} {{ $detalleProveedor->cuenta_proveedor->documento->proveedor->descripcion }} {{ $detalleProveedor->efectivo + $detalleProveedor->importe }} {{ $detalleProveedor->efectivo }} {{ $detalleProveedor->efectivo }} {{ $detalleProveedor->importe }}0.00
TOTAL {{ number_format(cuadreMovimientoCajaEgresosPagoResum($movimiento, $tipo->id), 2) }}


DETALLES EFECTIVO

VENTAS

{{ number_format(cuadreMovimientoCajaIngresosVentaResum($movimiento, 1), 2) }}

DEVOLUCIONES

{{ number_format(cuadreMovimientoDevolucionesResum($movimiento, 1), 2) }}


VENTAS EFECTIVA

{{ number_format(cuadreMovimientoCajaIngresosVentaResum($movimiento, 1) - cuadreMovimientoDevolucionesResum($movimiento, 1), 2) }}


COBRANZA

{{ number_format(cuadreMovimientoCajaIngresosCobranzaResum($movimiento, 1), 2) }}

PAGOS

{{ number_format(cuadreMovimientoCajaEgresosPagoResum($movimiento, 1), 2) }}

EGRESOS

{{ number_format(cuadreMovimientoCajaEgresosEgresoResum($movimiento, 1) - cuadreMovimientoDevolucionesResum($movimiento, 1), 2) }}


EFECTIVO

{{ number_format(cuadreMovimientoCajaIngresosVentaResum($movimiento, 1) + cuadreMovimientoCajaIngresosCobranzaResum($movimiento, 1) - cuadreMovimientoCajaEgresosEgresoResum($movimiento, 1) - cuadreMovimientoCajaEgresosPagoResum($movimiento, 1), 2) }}

SALDO ANTERIOR

{{ number_format($movimiento->monto_inicial, 2) }}


SALDO CAJA DEL DIA

{{ number_format($movimiento->monto_inicial + cuadreMovimientoCajaIngresosVentaResum($movimiento, 1) + cuadreMovimientoCajaIngresosCobranzaResum($movimiento, 1) - cuadreMovimientoCajaEgresosEgresoResum($movimiento, 1) - cuadreMovimientoCajaEgresosPagoResum($movimiento, 1), 2) }}


@foreach (tipos_pago() as $tipo) @if ($tipo->id > 1) @endif @endforeach
VENTAS

{{ $tipo->descripcion }}

{{ number_format(cuadreMovimientoCajaIngresosVentaResum($movimiento, $tipo->id), 2) }}

{{ $tipo->descripcion }} DEVOLUCIONES

{{ number_format(cuadreMovimientoDevolucionesResum($movimiento, $tipo->id), 2) }}


TOTAL VENTA ELECTRONICO

{{ number_format(cuadreMovimientoCajaIngresosVentaElectronico($movimiento), 2) }}


TOTAL VENTA DEL DIA

{{ number_format(cuadreMovimientoCajaIngresosVenta($movimiento) + cuadreMovimientoCajaIngresosRecibo($movimiento) - cuadreMovimientoDevoluciones($movimiento), 2) }}


Trabajadores de ventas presentes
@if (count($usuarios) == 0) @else @foreach ($usuarios as $u) @endforeach @endif
Codigo Nombres Fecha Entrada Fecha Salida
Sin Usuarios Ventas
{{ $u->id }} {{ $u->usuario }} {{ $u->fecha_entrada }} {{ $u->fecha_salida }}