Corte #{!! $corte->id!!}

{!! $corte->fecha->format('d/m/Y - h:m A') !!}
Dickiss BarberShop
AV. MANUEL ESPINOSA YGLESIAS 824,
LADRILLERA DE BENÍTEZ, C.P. 72500 PUEBLA, PUE.
222 119 2966
HOLA@DICKISSBARBERSHOP.COM

Servicios

@php $efectivo = 0; $tarjeta = 0; $total = 0; $subtotal = 0; @endphp @foreach($ventas as $venta) @if($venta->status != 'Pendiente' && count($venta->ventasServicios) != 0) @php if($venta->tipo_pago == "Efectivo") $efectivo += $subtotal; else $tarjeta += $subtotal; $total += $subtotal; $subtotal = 0; @endphp @endif @endforeach
no. ticket cliente total tipo
pago
#{!! $venta->id !!} {!! $venta->cliente->nombre !!} {!! $venta->cliente->a_paterno !!} {!! $venta->cliente->a_materno !!}
@if( $venta->ventasServicios != null)
    @foreach($venta->ventasServicios as $servicio)
  • {!! $servicio->services->nombre !!} -- ${!! $servicio->services->costo !!}
  • @php $subtotal += $servicio->services->costo; @endphp @endforeach
@endif
${!!$subtotal !!} peso(s) {!! $venta->tipo_pago !!}
Tarjeta ${!! $tarjeta; !!} Gastos Tarjeta -${!! $gastos->where('tipo_pago','Tarjeta')->sum('importe'); !!} Subtotal Tarjeta: ${!! $tarjeta - $gastos->where('tipo_pago','Tarjeta')->sum('importe'); !!}
Efectivo ${!! $efectivo; !!} Gastos efectivo -${!! $gastos->where('tipo_pago','Efectivo')->sum('importe'); !!} Subtotal Efectivo: ${!! $efectivo - $gastos->where('tipo_pago','Efectivo')->sum('importe'); !!}
Venta Total ${!! $total; !!} Subtotal $ {!! ($efectivo - $gastos->where('tipo_pago','Efectivo')->sum('importe')) + ($tarjeta - $gastos->where('tipo_pago','Tarjeta')->sum('importe') ) !!}
Total: ${!! $total - $gastos->sum('importe') !!}

Productos

@php $efectivo = 0; $tarjeta = 0; $total = 0; $subtotal = 0; @endphp @foreach($ventas as $venta) @if($venta->status != 'Pendiente' && count($venta->ventasProductos) != 0) @php if($venta->tipo_pago == "Efectivo") $efectivo += $subtotal; else $tarjeta += $subtotal; $total += $subtotal; $subtotal = 0; @endphp @endif @endforeach
no. ticket cliente total tipo
pago
#{!! $venta->id !!} {!! $venta->cliente->nombre !!} {!! $venta->cliente->a_paterno !!} {!! $venta->cliente->a_materno !!}
    @foreach($venta->ventasProductos as $producto)
  • {!! $producto->producto->nombre !!} -- ${!! $producto->producto->precio !!}
  • @php $subtotal += $producto->producto->precio; @endphp @endforeach
${!! $subtotal !!} peso(s) {!! $venta->tipo_pago !!}
Tarjeta ${!! $tarjeta !!}
Efectivo ${!! $efectivo; !!}
Total del corte: ${!! $total !!}
Nota:
El monto total suma tanto pagos pendiente como pagos realizados.