@extends('admin.layouts.app') @section('page-title', 'Customers') @section('content')
| Customer Info | Customer ID | Orders | Order Total | Total Payable | {{-- NEW --}}Remaining | {{-- NEW --}}Create Date | Status | Actions |
|---|---|---|---|---|---|---|---|---|
|
{{ strtoupper(substr($c->customer_name,0,1)) }}
{{ $c->customer_name }}
@if($c->customer_type == 'premium')
Premium Customer
@else
Regular Customer
@endif
{{ $c->email }}
{{ $c->mobile_no }} |
{{ $c->customer_id }} | {{ $c->orders->count() }} | ₹{{ number_format($c->orders->sum('ttl_amount'), 2) }} | ₹{{ number_format($totalPayable, 2) }} | @if($remainingAmount > 0) ₹{{ number_format($remainingAmount, 2) }} @else ₹0.00 @endif | {{ $c->created_at ? $c->created_at->format('d-m-Y') : '-' }} | @if($c->status === 'active') Active @else Inactive @endif | |
| No customers found. | ||||||||