@extends('layouts.app') @php $cur = auth()->user()->company->currency ?? 'PEN'; @endphp @section('title', 'Gastos') @section('hi', 'Gastos') @section('hi_sub', 'Finanzas') @section('content')

Gastos

Registro de egresos del negocio.

@if(auth()->user()->company_id) @endif
Gastos del mes{{ $cur }} {{ number_format($monthTotal, 2) }}
Registros{{ $expenses->total() }}
@forelse($expenses as $e) @empty @endforelse
FechaCategoríaNotaRegistróMonto
{{ $e->spent_on->format('d/m/Y') }} {{ $e->category }} {{ $e->note ?: '—' }} {{ $e->user->name ?? '—' }} {{ $cur }} {{ number_format($e->amount, 2) }}
@csrf @method('DELETE')
@if(auth()->user()->company_id) No hay gastos registrados. @else Ingresa como usuario de una empresa para registrar gastos. @endif
@include('partials.pager', ['paginator' => $expenses])
@endsection