@extends('layouts.app') @section('title', 'Gestión de Gastos') @section('content')

Gestión de Gastos del Negocio

Gestión y control de gastos operativos del negocio

Nuevo Gasto
Total Gastos
{{ $stats['total_expenses'] }}
Pagos Pendientes
{{ $stats['pending_payments'] }}
Monto Total
${{ number_format($stats['total_amount'], 0) }}
Este Mes
${{ number_format($stats['this_month'], 0) }}
Listado de Gastos
@forelse($expenses as $expense) @empty @endforelse
Número Fecha Proveedor Tipo Descripción Total Estado Retención Asiento Acciones
{{ $expense->expense_number }} {{ $expense->expense_date->format('d/m/Y') }}
{{ Str::limit($expense->supplier_name, 30) }}
@if($expense->supplier_ruc) RUC: {{ $expense->supplier_ruc }} @endif
{{ $expense->expense_type_text }}
{{ $expense->description }}
${{ $expense->formatted_total_amount }}
{{ $expense->currency }}
@php $statusConfig = [ 'pending' => ['class' => 'warning', 'icon' => 'clock', 'label' => 'Pendiente'], 'paid' => ['class' => 'success', 'icon' => 'check-circle', 'label' => 'Pagado'], 'partial' => ['class' => 'info', 'icon' => 'percentage', 'label' => 'Parcial'], 'cancelled' => ['class' => 'danger', 'icon' => 'times-circle', 'label' => 'Cancelado'] ]; $status = $statusConfig[$expense->payment_status] ?? ['class' => 'secondary', 'icon' => 'circle', 'label' => ucfirst($expense->payment_status)]; @endphp {{ $status['label'] }} @if($expense->is_retention_applied) ${{ $expense->formatted_retention_amount }} @else No aplicada @endif @if($expense->is_accounting_entry_created) {{ $expense->accounting_entry }} @else Pendiente @endif
@if(!$expense->is_retention_applied) @endif @if(!$expense->is_accounting_entry_created) @endif
@csrf @method('DELETE')
No hay gastos registrados

Comienza creando tu primer gasto del negocio.

Crear Primer Gasto
@if($expenses->hasPages()) @endif
@push('styles') @endpush @push('scripts') @endpush @endsection