@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif

Customers

@forelse($customers as $customer)

{{ $customer->name }}

{{ ucfirst($customer->customer_type) }}

{{ $customer->phone }}

@if($customer->booking_place)

{{ $customer->booking_place }} @if($customer->pincode) - {{ $customer->pincode }} @endif

@endif
@empty

No customers found

@endforelse
@if($customers->hasPages())
{{ $customers->links() }}
@endif

{{ $isEditing ? 'Edit Customer' : 'Add New Customer' }}

@error('name') {{ $message }} @enderror
@error('phone') {{ $message }} @enderror
@if($isEditing) @endif