@extends('layouts.app') @section('title', 'Reporte de Compras') @section('content')
Análisis detallado de las compras y gastos del sistema
| N° Factura | Proveedor | Fecha | Subtotal | Impuestos | Total | Pagado | Pendiente | Estado | Acciones |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $invoice->invoice_number }}
@if($invoice->reference_number)
{{ $invoice->reference_number }} @endif |
@if($invoice->supplier)
{{ Str::limit($invoice->supplier->business_name, 30) }}
@if($invoice->supplier->contact_name)
{{ Str::limit($invoice->supplier->contact_name, 25) }}
@endif
|
{{ $invoice->invoice_date ? $invoice->invoice_date->format('d/m/Y') : 'N/A' }} | ${{ number_format($invoice->subtotal ?? 0, 2) }} | ${{ number_format($invoice->tax_amount ?? 0, 2) }} | ${{ number_format($invoice->total_amount ?? 0, 2) }} | ${{ number_format($invoice->amount_paid ?? 0, 2) }} | ${{ number_format($invoice->amount_due ?? 0, 2) }} | @php $statusConfig = [ 'draft' => ['class' => 'secondary', 'icon' => 'edit', 'label' => 'Borrador'], 'pending' => ['class' => 'warning', 'icon' => 'clock', 'label' => 'Pendiente'], 'received' => ['class' => 'info', 'icon' => 'inbox', 'label' => 'Recibida'], 'processed' => ['class' => 'success', 'icon' => 'check-circle', 'label' => 'Procesada'], 'cancelled' => ['class' => 'danger', 'icon' => 'times-circle', 'label' => 'Cancelada'] ]; $status = $statusConfig[$invoice->status] ?? ['class' => 'secondary', 'icon' => 'circle', 'label' => ucfirst($invoice->status)]; @endphp {{ $status['label'] }} | |
No hay facturas de compra registradasLas facturas de compra aparecerán aquí |
|||||||||