@extends('layout') @section('page_title', 'Customers') @section('content')

Customer Management

Add Customer

All Customers

@if($customers->isEmpty())

No customers found

Get started by adding a new customer.

Add Customer
@else
@foreach($customers as $customer)
@if($customer->image_path) {{ $customer->name }} @else
{{ substr($customer->name, 0, 1) }}
@endif

{{ $customer->name }}

{{ $customer->phone }}
@if($customer->email)
{{ $customer->email }}
@endif
Agreements
{{ $customer->agreements_count }}
CNIC
{{ $customer->cnic ? 'Yes' : 'No' }}
Witness
{{ $customer->witness_name ? 'Yes' : 'No' }}
@if($customer->address)
{{ Str::limit($customer->address, 40) }}
@endif
View Edit
@csrf @method('DELETE')
@endforeach
Showing {{ $customers->firstItem() }} to {{ $customers->lastItem() }} of {{ $customers->total() }} customers
{{ $customers->links() }}
@endif
@endsection