{{-- Flash --}} @if (session()->has('message')) @endif {{-- ═══ STAT CARDS ═══ --}}
Total ARS

{{ number_format($totalARS ?? 0, 2, ',', '.') }}

Total USD

{{ number_format($totalUSD ?? 0, 2, ',', '.') }}

{{-- ═══ CHARTS: Gastos por mes + Torta categorías + Fijos vs Variables ═══ --}}
Gastos por mes
ARS
Por categoría
ARS
Fijos vs Variables
ARS
{{-- ═══ TOOLBAR ═══ --}}
@if($searchTerm || $filterCategoryId || $filterAccountId || $filterCurrency || $filterMonth !== now()->format('Y-m')) @endif
{{-- ═══ TABLE ═══ --}}
@if($expenses->count() == 0)

No hay gastos registrados.

@else
@foreach($expenses as $expense) @endforeach
# Fecha Descripción Categoría Proveedor Cuenta Monto Moneda Tipo Acciones
{{ $expense->id }} {{ $expense->date ? $expense->date->format('d/m/Y') : '-' }} {{ $expense->description }} @if($expense->category) {{ $expense->category->name }} @else @endif @if($expense->supplier) {{ $expense->supplier->name }} @else @endif {{ $expense->account->name ?? '—' }} {{ number_format($expense->amount, 2, ',', '.') }} {{ $expense->currency }} @if($expense->is_fixed) Fijo @else Variable @endif
@if($expense->receipt_path) @endif
{{ $expenses->links() }}
@endif
{{-- ═══════════════════════════════════════════════════ --}} {{-- MODAL: Crear / Editar Gasto --}} {{-- ═══════════════════════════════════════════════════ --}} @if($showExpenseModal)
@endif {{-- ═══════════════════════════════════════════════════ --}} {{-- MODAL: Crear Categoría --}} {{-- ═══════════════════════════════════════════════════ --}} @if($showCategoryModal)
@endif {{-- ═══════════════════════════════════════════════════ --}} {{-- MODAL: Gestionar Categorías --}} {{-- ═══════════════════════════════════════════════════ --}} @if($showCategoriesListModal)
@endif {{-- ═══════════════════════════════════════════════════ --}} {{-- MODAL: Editar Categoría --}} {{-- ═══════════════════════════════════════════════════ --}} @if($showEditCategoryModal)
@endif {{-- ═══════════════════════════════════════════════════ --}} {{-- MODAL: Confirmar eliminar gasto --}} {{-- ═══════════════════════════════════════════════════ --}} @if($confirmingDeleteExpense)
@endif {{-- ═══════════════════════════════════════════════════ --}} {{-- MODAL: Confirmar eliminar categoría --}} {{-- ═══════════════════════════════════════════════════ --}} @if($confirmingDeleteCategory)
@endif {{-- Hidden chart data (updated by Livewire on re-render) --}}
{{-- ═══ Chart.js ═══ --}} {{-- FAB mobile --}}