@extends('partials.layout') @section('title', 'Reportes') @section('subtitle', 'Saldos iniciales/finales por manguera con precio por turno') @section('back') ← Volver @endsection @section('content')
@if(!empty($esOperador)) @endif
Hoy Exportar Excel Descargar PDF
@forelse($items as $it) @empty @endforelse
Fecha Manguera Tipo combustible Turno Usuario Saldo inicial Saldo final Galones Consumidos Precio galón Total
{{ optional($it['fecha'])->format('d/m/Y') }} {{ $it['manguera']?->cara?->estacion?->nombre ?? '-' }} - {{ $it['manguera']?->cara?->nombre ?? '-' }} - MANGUERA #{{ $it['manguera']?->numero_manguera ?? '-' }} {{ $it['manguera']?->tipoCombustible?->nombre ?? '-' }} {{ $it['turno']?->turnos ?? $it['turno']?->nombre ?? '-' }} {{ $it['usuario_nombre'] ?? '-' }} {{ is_null($it['saldo_inicial']) ? '-' : number_format((float)$it['saldo_inicial'], 3, '.', '') }} {{ is_null($it['saldo_final']) ? '-' : number_format((float)$it['saldo_final'], 3, '.', '') }} {{ is_null($it['galones_vendidos']) ? '-' : number_format((float)$it['galones_vendidos'], 3) }} {{ is_null($it['precio_galon']) || (float)$it['precio_galon'] <= 0 ? '-' : number_format((float)$it['precio_galon'], 3) }} {{ is_null($it['total_registro']) ? '-' : number_format((float)$it['total_registro'], 2) }}
No hay datos para el rango seleccionado.
TOTAL GENERAL {{ number_format((float)($totalGeneralVentas ?? 0), 2) }}
@if(!empty($idTurno)) @if(!empty($mostrarGastosDiferencias) && $gastosDiferencias->isNotEmpty())

Gastos registrados

@foreach($gastosDiferencias as $gasto) @endforeach
Fecha Observación Combustible Galones Precio Total
{{ optional($gasto->created_at)->format('d/m/Y H:i') }} {{ $gasto->observacion ?? '-' }} {{ $gasto->tipoCombustible->nombre ?? '-' }} {{ number_format((float) ($gasto->cantidad_galones ?? 0), 3) }} {{ number_format((float) ($gasto->precio ?? 0), 2) }} {{ number_format((float) ($gasto->total ?? 0), 2) }}
TOTAL GASTOS {{ number_format((float) $gastosDiferencias->sum('cantidad_galones'), 3) }} {{ number_format((float) $gastosDiferencias->sum('precio'), 2) }} {{ number_format((float) $gastosDiferencias->sum('total'), 2) }}
@endif
Total de efectivo: {{ number_format((float)($totalesCierre['efectivo'] ?? 0), 2) }}
Total Crédito: {{ number_format((float)($totalesCierre['credito'] ?? 0), 2) }}
Total Visa: {{ number_format((float)($totalesCierre['visa'] ?? 0), 2) }}
Total Descuentos: {{ number_format((float)($totalesCierre['descuentos'] ?? 0), 2) }}
Total Diferencia: {{ number_format((float)($totalesCierre['diferencia'] ?? 0), 2) }}
@endif @endsection