@if (!$general) @if (!$reporteEca) {{-- @foreach ($datos as $key => $dato) --}} @php $total = 0; $totalP = 0; $totalC = 0; @endphp @foreach ($datos as $d) @php // dd($d); $totalC = $totalC + $d?->cantidad_total; $total = $total + ($d?->precio ? ($d?->precio * $d?->cantidad_total) : 0); $totalP = $totalP + ($d?->precio ?? 0); @endphp @endforeach
Ruta Fecha Vehiculo Conductor Lider Usuario Lista de precios Material Código Material Cantidad Toneladas Precio Total
{{$d?->programacion?->ruta?->nombre ?? 'N/A'}} {{$d?->created_at ?? 'N/A'}} {{$d?->programacion?->vehiculo?->placa ?? 'N/A'}} {{$nombreConductores[$d?->programacion?->conductor] ?? 'N/A'}} {{$d?->programacion?->recolector1?->nombre_completo ?? 'N/A'}} {{$d?->usuario?->nombre_completo ?? 'N/A'}} {{$d?->lista?->nombre ?? 'N/A'}} {{$d?->material?->nombre ?? 0}} {{$d?->material?->codigo ?? 0}} {{$d?->cantidad_total ?? 0}} {{$d?->cantidad_total ? ($d?->cantidad_total / 1000) : 0}} {{$d?->precio ?? 0}} {{$d?->precio ? ($d?->precio * $d?->cantidad_total) : 0}}
Total {{$totalC}} {{$totalC ? ($totalC / 1000) : 0}} {{$totalP}} {{$total}}
{{-- @endforeach --}} @else @php $totalC = 0; $totalC1 = 0; $totalD = 0; @endphp @foreach ($datos as $dato) @php $totalC += $dato?->cantidad ?? 0; $totalC1 += $dato?->cantidad_1 ?? 0; $totalD += round(($dato?->cantidad ?? 0) - ($dato?->cantidad_1 ?? 0), 1); @endphp @endforeach
Fecha ECA Recolector Vehiculo Materiales Cantidad Recibida ECA Tonelada Recibida ECA Cantidad Recolectada Tonelada Recolectada Diferencia Diferencia en Tonelada
{{ $dato?->created_at ?? 'N/A' }} {{ $dato?->eca?->nombre_completo ?? 'N/A' }} {{ $dato?->recolector?->nombre_completo ?? 'N/A' }} {{ $dato?->vehiculo?->placa ?? 'N/A' }} {{ $dato?->material?->nombre ?? 'N/A' }} {{ $dato?->cantidad ?? 0 }} {{ $dato?->cantidad ? $dato?->cantidad / 1000 : 0 }} {{ $dato?->cantidad_1 ?? 0 }} {{ $dato?->cantidad_1 ? $dato?->cantidad_1 / 1000 : 0 }} {{ round(($dato?->cantidad ?? 0) - ($dato?->cantidad_1 ?? 0), 1) }} {{ round(($dato?->cantidad ?? 0) - ($dato?->cantidad_1 ?? 0), 1) ? round(($dato?->cantidad ?? 0) - ($dato?->cantidad_1 ?? 0), 1) / 1000 : 0 }}
Total {{ $totalC }} {{ $totalC ? $totalC / 1000 : 0 }} {{ $totalC1 }} {{ $totalC1 ? $totalC1 / 1000 : 0 }} {{ $totalD }} {{ $totalD ? $totalD / 1000 : 0 }}
@endif @else @php $total = 0; @endphp @foreach ($datos as $dato) @php $total = $total + $dato?->cantidad_total; @endphp @endforeach
Material Cantidad Toneladas
{{ $dato?->material?->nombre ?? 0 }} {{ $dato?->cantidad_total ?? 0 }} {{ $dato?->cantidad_total ? $dato?->cantidad_total / 1000 : 0 }}
Total {{ $total ? $total / 1000 : 0 }}
@endif