@extends('partials.layout') @section('title', 'Registros de Salida') @section('subtitle', 'Historial de despachos de combustible') @section('actions') Nuevo Despacho @endsection @section('content')
Limpiar
@php $userColorMap = []; $userColorPalette = [ '#ef4444', '#f97316', '#eab308', '#22c55e', '#10b981', '#06b6d4', '#3b82f6', '#6366f1', '#8b5cf6', '#d946ef', '#ec4899', '#14b8a6', '#84cc16', '#f59e0b', '#0ea5e9' ]; $userColorIndex = 0; @endphp @foreach($items as $item) @php $username = $item->usuario?->usuario ?? $item->usuario?->name ?? '-'; if (!isset($userColorMap[$username])) { $userColorMap[$username] = $userColorPalette[$userColorIndex % count($userColorPalette)]; $userColorIndex++; } $userColor = $userColorMap[$username]; @endphp @endforeach @if($items->isEmpty()) @endif
ID Fecha Usuario Turno ISLA / LADO / MANGUERA Saldo final Acciones
{{ $item->id_salida }} {{ optional($item->fecha_inicio)->format('d/m/Y') }} {{ $username }} {{ $item->turno?->turnos ?? '-' }} {{ $item->manguera?->cara?->estacion?->nombre ?? '-' }} | {{ $item->manguera?->cara?->lado ?? $item->manguera?->cara?->nombre ?? '-' }} | M-{{ $item->manguera?->numero_manguera ?? '-' }} {{ $item->saldo_final ?? '-' }} Editar @if(auth()->user()->rol === 'ADMIN')
@csrf @method('DELETE')
@endif
No hay registros de salida.
@endsection