@extends('layouts.admin') @section('title', 'Customers') @section('subtitle', 'Manage and track customer profile records') @section('content')
@if(session('success'))
โœ… {{ session('success') }}
@endif
{{-- Search and Actions --}} {{-- Table --}}
@forelse($customers as $customer) @empty @endforelse
Customer Name Phone Shop / Company Address Sales Count Total Spent Actions
{{ $customer->name }} {{ $customer->phone ?? '-' }} {{ $customer->company ?? '-' }} {{ Str::limit($customer->address, 50) ?? '-' }} @if($customer->invoices_count > 0) @else - @endif LKR {{ number_format($customer->total_spent, 2) }}
@csrf @method('DELETE')

๐Ÿ‘ฅ

No customers found

@if($customers->hasPages())
{{ $customers->links() }}
@endif
{{-- Invoice History Modal --}}

๐Ÿงพ Bill History:

Invoice Number Date Total Amount Status Action
@endsection