@extends('partials.layout') @section('title', 'Reportes') @section('subtitle', 'Saldos iniciales/finales por manguera con precio por turno') @section('back') ← Volver @endsection @section('content')
| 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) }} | ||||||||
| 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) }} | ||