Bienvenido, {{ Auth::user()->name }}
Panel principal del Sistema Corporativo Innova
{{-- ===== INDICADORES EN UN SOLO CAJÓN ===== --}}
Indicadores Generales
Actualizado: {{ now()->format('d/m/Y H:i') }}
{{-- PESOS --}}
Pesos Total
{{ number_format($pesoTotal,2) }} TM
Pesos Mes
{{ number_format($pesoMensual,2) }} TM
Pesos Semana
{{ number_format($pesoSemanal,2) }} TM
Pesos Hoy
{{ number_format($pesoDiario,2) }} TM
{{-- INGRESOS --}}
Ingresos Total
{{ $totalIngresos }}
Ingresos Mes
{{ $ingresosMes }}
Ingresos Semana
{{ $ingresosSemana }}
Ingresos Hoy
{{ $ingresosHoy }}
{{-- BLENDING --}}
Blending Total
{{ $totalBlending }}
Blending Mes
{{ $blendingMes }}
Blending Semana
{{ $blendingSemana }}
Blending Hoy
{{ $blendingHoy }}
{{-- DESPACHOS --}}
Despachos Total
{{ $totalDespachos }}
Despachos Mes
{{ $despachosMes }}
Despachos Semana
{{ $despachosSemana }}
Despachos Hoy
{{ $despachosHoy }}
{{-- LIQUIDACIONES --}}
Liquidaciones Total
{{ $totalLiquidaciones }}
Liquidaciones Mes
{{ $cierresMensuales }}
Liquidaciones Semana
{{ $cierresSemanales }}
Liquidaciones Hoy
{{ $cierresDiarios }}
{{-- ===== /INDICADORES EN UN SOLO CAJÓN ===== --}}
{{-- ================= GRÁFICOS & TABLA ================= --}}
📦 Liquidaciones por Producto
🏆 Podio de Liquidadores
📊 Top Clientes
| Posición |
Cliente |
Liquidaciones |
@foreach($rankingClientes as $index => $cli)
| {{ $index+1 }} |
{{ $cli->cliente }} |
{{ $cli->total }} |
@endforeach
{{-- ====== NUEVO: ÚLTIMAS OPERACIONES REGISTRADAS ====== --}}
🕒 Últimas operaciones registradas
| ID |
Cliente |
Estado |
Fecha |
@forelse($ultimasOperaciones as $op)
| {{ $op->id }} |
{{ $op->razon_social }} |
@php
$estado = strtoupper($op->estado);
$badge = 'secondary';
if ($estado === 'CIERRE') $badge = 'success';
elseif ($estado === 'PENDIENTE') $badge = 'warning';
elseif ($estado === 'ANULADO' || $estado === 'CANCELADO') $badge = 'danger';
@endphp
{{ $estado }}
|
{{ \Carbon\Carbon::parse($op->created_at)->format('d/m/Y H:i') }} |
@empty
| Sin movimientos recientes. |
@endforelse
{{-- ====== /ÚLTIMAS OPERACIONES REGISTRADAS ====== --}}