@extends('layouts.app') @push('css') @endpush @section('content')
Marca de Agua

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
@foreach($rankingClientes as $index => $cli) @endforeach
Posición Cliente Liquidaciones
{{ $index+1 }} {{ $cli->cliente }} {{ $cli->total }}
{{-- ====== NUEVO: ÚLTIMAS OPERACIONES REGISTRADAS ====== --}}
🕒 Últimas operaciones registradas
@forelse($ultimasOperaciones as $op) @empty @endforelse
ID Cliente Estado Fecha
{{ $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') }}
Sin movimientos recientes.
{{-- ====== /ÚLTIMAS OPERACIONES REGISTRADAS ====== --}}
@endsection