@extends('layouts.admin') @section('title', 'Clients / Customers') @section('page-title', 'Clients / Customers') @section('content')
| @php $thSort = fn ($col) => route('admin.customers.index', array_merge(request()->query(), [ 'sort' => $col, 'dir' => ($sortBy === $col && $sortDir === 'asc') ? 'desc' : 'asc', ])); @endphp | Company name | Contact name | Balance | Billing address | City | Phone | Notes | |
|---|---|---|---|---|---|---|---|---|
| {{ $customer->name }} | {{ $customer->contact_person ?? '—' }} | ₹{{ number_format($customer->currentBalance(), 2) }} | {{ $customer->billingAddressShort() }} | {{ $customer->city ?? '—' }} | {{ $customer->email ?? '—' }} | {{ $customer->phone ?? '—' }} | {{ Str::limit($customer->notes, 40) ?: '—' }} |