@extends('layouts.app') @section('content')

Customer Management

Manage your customer database, view purchase history, and analyze sales trends.

Add New Customer
Total Records in Database: {{ $customers->total() }}
@if(request('search')) Clear @endif
@forelse($customers as $index => $customer) @empty @endforelse
Sr. No. Customer Name Contact City Bill Amount Date Actions
{{ $customers->firstItem() + $index }} {{ $customer->name }} {{ $customer->contact }} {{ $customer->city }} ₹{{ number_format($customer->bill_amount, 2) }} {{ \Carbon\Carbon::parse($customer->purchase_date)->format('d-m-Y') }}
@csrf @method('DELETE')
No customer records found.
{{ $customers->appends(request()->query())->links('pagination::bootstrap-5') }}
@endsection