@extends('layouts.admin') @section('title', 'Invoices') @section('subtitle', 'Search and manage sales invoices') @section('content') {{-- Search Bar --}}
Reset
{{-- Invoices Table --}}
@forelse($invoices as $invoice) @empty @endforelse
Invoice # Date/Time Customer Items Total Status Cashier Actions
{{ $invoice->invoice_number }}

{{ Str::limit($invoice->uuid, 12) }}

{{ $invoice->created_at->format('M d, Y H:i') }} {{ $invoice->customer_name ?? 'Walk-in' }} @if($invoice->customer_phone)

{{ $invoice->customer_phone }}

@endif
{{ $invoice->items->count() }} items LKR {{ number_format($invoice->total, 2) }} @php $statusColors = [ 'completed' => 'bg-green-50 text-green-600', 'pending' => 'bg-yellow-50 text-yellow-600', 'refunded' => 'bg-red-50 text-red-600', ]; @endphp {{ ucfirst($invoice->status) }} {{ $invoice->user->name ?? 'N/A' }}
đŸ‘ī¸ đŸ–¨ī¸ @if($invoice->status != 'refunded') â†Šī¸ @endif

📄

No invoices found

@if($invoices->hasPages())
{{ $invoices->links() }}
@endif
@endsection