@extends('layouts.admin') @section('title', 'Customers') @section('page-title', 'Customers') @section('content')

Manage customers. Search by name, mobile, or customer code.

@can('create customers')
Add Customer
@endcan
@if($branches->isNotEmpty() && auth()->user()->canAccessAllBranches())
@endif
@forelse($customers as $c) @empty @endforelse
Code Name Mobile Branch Status Actions
{{ $c->customer_code }} {{ $c->full_name }} {{ $c->mobile ?? '-' }} {{ $c->preferredBranch?->name ?? '-' }} {{ $c->status }} @can('view customers')View@endcan @can('edit customers')Edit@endcan @can('delete customers')
@csrf @method('DELETE')
@endcan
No customers found.
@if($customers->hasPages())
{{ $customers->links() }}
@endif
@can('create customers') @include('customers.partials.quick-add-modal') @endcan @endsection