{{ $cabecera->descripcion }}
R.F.C. {{ $cabecera->rfc }}
Sucursal: {{ $cabecera->sucursal }}
{{ $cabecera->ledireccion }} NO.{{ $cabecera->lenumExterior }}, COL. {{ $cabecera->lecolonia}}. {{ strtoupper($cabecera->lemunicipio) }}, {{ strtoupper($cabecera->leestado) }}, {{ strtoupper($cabecera->lepais) }}. CP. {{ $cabecera->lecp }}.
@if($detalle[0]->is_confactura == 1) COMPROBANTE DE GASTOS CON FACTURA @else COMPROBANTE DE GASTOS SIN FACTURA @endif FECHA: {{ $date }} PERIODO: {{ date("d-m-Y", strtotime($fechainicio)) }} AL {{ date("d-m-Y", strtotime($fechafin)) }}
FOLIO: {{ $detalle[0]->foliocomprobante }} BANCO: {{ $detalle[0]->banco }} CLABE INTERBANCARIA: {{ $detalle[0]->clabeinterbancaria }}



@if($detalle[0]->is_confactura == 1) @else @endif
Fecha Folio Proveedor Concepto Cantidad Subtotal IVA TOTALFecha Folio Proveedor Concepto TOTAL


@php $total = 0; $iva = 0; $subtotal=0; $descuento=0; @endphp @foreach($detalle as $gasto) @if($gasto->is_confactura == 1) @else @endif @php $total = $total + $gasto->total; $iva = $iva + $gasto->iva; $subtotal = $subtotal + $gasto->subtotal; $descuento = $descuento + $gasto->descuento; @endphp @endforeach
{{ date("d-m-Y", strtotime($gasto->fechagasto)) }} {{ $gasto->folio }} {{ $gasto->proveedor }} {{ $gasto->concepto }}
Observaciones:{{ $gasto->observaciones }}
{{ $gasto->cantidad }} {{ $gasto->subtotal }} {{ $gasto->iva }} {{ $gasto->total }}{{ date("d-m-Y", strtotime($gasto->fechagasto)) }} {{ $gasto->folio }} {{ $gasto->proveedor }} {{ $gasto->concepto }}
Observaciones:{{ $gasto->observaciones }}
{{ $gasto->total }}


@if($gasto->is_confactura == 1) @endif
SUBTOTAL: $ {{ number_format($subtotal,2) }}
IVA: $ {{ number_format($iva,2) }}
DESCUENTO: $ {{ number_format($descuento,2) }}
TOTAL: $ {{ number_format(($total-$descuento),2) }}


RESPONSABLE DE CAJA: REVISA: AUTORIZA:
{{ strtoupper($detalle[0]->solicita) }} {{ strtoupper($detalle[0]->revisa) }} {{ strtoupper($detalle[0]->autoriza) }}