@extends('layouts.app') @section('title', 'গ্রাহক তালিকা') @section('page-title', 'গ্রাহক ম্যানেজমেন্ট') @section('content') {{-- Summary Cards --}}
মোট গ্রাহক
{{ $customers->total() }}
মোট বকেয়া
৳{{ number_format($totalDue, 2) }}
মোট ডিপোজিট
৳{{ number_format($totalDeposit, 2) }}
বকেয়া গ্রাহক
{{ \App\Models\Customer::withDue()->count() }}
{{-- Filters & Table --}}
গ্রাহকের তালিকা
নতুন গ্রাহক
{{-- Search & Filter --}}
@forelse($customers as $customer) @empty @endforelse
# নাম ফোন এলাকা ধরন ডিপোজিট বকেয়া স্ট্যাটাস একশন
{{ $customers->firstItem() + $loop->index }}
{{ $customer->name }}
@if($customer->company_name) {{ $customer->company_name }} @endif
{{ $customer->phone }} {{ $customer->area ?? '—' }} @if($customer->district)
{{ $customer->district }} @endif
{{ $customer->type_label }} ৳{{ number_format($customer->deposit_amount, 2) }} @if($customer->due_balance > 0) ৳{{ number_format($customer->due_balance, 2) }} @else @endif {{ $customer->status_label }}
@if(auth()->user()->hasRole('admin'))
@csrf @method('DELETE')
@endif
কোনো গ্রাহক পাওয়া যায়নি।
@if($customers->hasPages()) @endif
@endsection