@extends('layouts.app') @section('titulo', 'Dashboard') @section('css') @endsection @section('content')

📦 Resumen de información mensual

{{-- Selector de mes --}}
{{--
--}}
REZAGADOS {{ $textoDeptoSeleccionado }}
{{ number_format($totalRezagados) }} PQ
{{ number_format($totalRezagadosBs/1000000,2) }} mill Bs.

(A la fecha)

{{-- Total nacional --}}
{{-- Gráficos --}}
DISTRIBUCIÓN DE PAQUETES {{ $textoDeptoSeleccionado }}
PAGO A PROVEEDORES {{ $textoDeptoSeleccionado }}
🚚 Productos en tránsito @if($departamentoSeleccionado != 0) del departamento {{ $topTransito[0]['departamento'] }} @else Nacional @endif
Subsidio:{{ $tipoSubsidio==1 ? 'PRENATAL/LACTANCIA' : 'UNIVERSAL' }}
@if($departamentoSeleccionado == 0) @endif @foreach ($topTransito as $i => $item) @if($departamentoSeleccionado == 0) @endif @endforeach
# ProductoDepartamentoCantidad
{{ $i + 1 }} {{ $item['producto'] }}{{ $item['departamento'] }}{{ number_format($item['cantidadSolicitud']) }}
{{-- Top 10 productos próximos a vencer --}}
⏳ Productos próximos a vencer @if($departamentoSeleccionado != 0) del departamento {{ $topVencer[0]['departamento'] }} @else Nacional @endif
Subsidio:{{ $tipoSubsidio==1 ? 'PRENATAL/LACTANCIA' : 'UNIVERSAL' }}
@if($departamentoSeleccionado == 0) @endif @foreach ($topVencer as $i => $item) @php $color = $item['dias'] <= 15 ? 'danger' : ($item['dias'] <= 30 ? 'warning' : 'success'); @endphp @if($departamentoSeleccionado == 0) @endif @endforeach
# Producto Vencimiento AlertaDepartamento
{{ $i + 1 }} {{ $item['producto'] }} ({{ $item['existencias'] }})
{{ $item['sucursal'] }}
{{ $item['dias'] }} días
({{ $item['vencimiento'] }})
{{ $item['departamento'] }}
⏳ Productos poco stock @if($departamentoSeleccionado != 0) del departamento {{ $topSinStock[0]['departamento'] }} @else Nacional @endif
Subsidio:{{ $tipoSubsidio==1 ? 'PRENATAL/LACTANCIA' : 'UNIVERSAL' }}
@if($departamentoSeleccionado == 0) @endif @foreach ($topSinStock as $i => $item) @if($departamentoSeleccionado == 0) @endif @endforeach
# Producto StockDepartamento
{{ $i + 1 }} {{ $item['producto'] }}
{{ $item['sucursal'] }}
{{ $item['existencias'] }}{{ $item['departamento'] }}

Cargando, por favor espere...

@endsection @section('scripts') @endsection