@extends('layouts.admin') @section('title', 'Customers') @section('content') @php $field = 'h-11 px-3 rounded-xl border border-slate-300 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-sm outline-none focus:ring-2 ring-brand-500'; $cards = [ ['Total customers', number_format($totalCount), 'text-sky-500'], ['Customers with due', number_format($withDueCount), 'text-amber-500'], ['Total due', 'AED ' . number_format($totalDue, 2), 'text-red-500'], ]; @endphp {{-- Breadcrumb --}}
| Customer | Phone | Invoices | Total purchase | Paid | Due | Action |
|---|---|---|---|---|---|---|
|
{{ $c->name }}
@if ($c->email) {{ $c->email }} @endif
|
{{ $c->phone ?: '—' }} | {{ $c->sales_count }} | {{ number_format((float) $c->sales_sum_total, 2) }} | {{ number_format((float) $c->sales_sum_paid_amount, 2) }} | {{ number_format($due, 2) }} | View Edit |
| Kono customer paoa jayni. Notun customer add koro | ||||||