{{-- This partial is used to render table rows for both initial page load and AJAX refreshes --}} @forelse ($customers as $index => $customer) {{-- Sr. No --}} {{ $customers->firstItem() + $index }} {{-- Borrower Name --}} {{ $customer->brauser_name ?? '-' }} {{-- Relative Name --}} {{ $customer->ralative_name ?? '-' }} {{-- Cash Officer --}} {{ $customer->cash_incharge ?? '-' }} {{-- Loan A/C --}} {{ $customer->loan_number ?? '-' }} {{-- Saving A/C --}} {{ $customer->saving_number ?? '-' }} {{-- Bank --}} {{ $customer->bank->bank ?? '-' }} {{-- Branch --}} {{ $customer->branch->branch_address ?? '-' }} {{-- Status --}} @if($customer->is_active) Active @else Inactive @endif {{-- Appraisal Date / Created Date --}} {{ $customer->date ? \Carbon\Carbon::parse($customer->date)->format('d M, Y') : ($customer->created_at?->format('d M, Y') ?? '-') }} {{-- Actions --}}
{{-- View --}} {{-- Edit --}}
@empty No customers found. @endforelse