@push('title') Customer Profile - {{ $customer->name }} @endpush
{{ $customer->sales->count() }}
Total Sales
LKR {{ number_format($customer->sales->sum('due_amount'), 2) }}
Total Debt
  • Email: {{ $customer->email ?? 'N/A' }}
  • Phone: {{ $customer->phone }}
  • Country: {{ $customer->country->name ?? 'N/A' }}
  • City: {{ $customer->city ?? 'N/A' }}
  • Address: {{ $customer->address }}
@if($debt_sales->sum('due_amount') > 0)
@csrf
@endif
Complete Sales History
@forelse($sales_history as $sale) @empty @endforelse
Invoice Date Warehouse Status Total (LKR) Action
{{ $sale->invoice_no }} {{ $sale->created_at->format('M d, Y') }} {{ $sale->warehouse->name }} @if($sale->payment_status == 2) Paid @elseif($sale->payment_status == 1) Partial @else Unpaid @endif {{ number_format($sale->grand_total, 2) }}
No purchases recorded yet.
{{ $sales_history->links('pagination::bootstrap-5') }}
Debt Log
Total Out: LKR {{ number_format($debt_sales->sum('due_amount'), 2) }}
@forelse($debt_sales as $sale) @empty @endforelse
Invoice Grand Total Already Paid Remaining Due Status Action
{{ $sale->invoice_no }} {{ number_format($sale->grand_total, 2) }} {{ number_format($sale->paid_amount, 2) }} {{ number_format($sale->due_amount, 2) }} @if($sale->payment_status == 1) Partial @else Unpaid @endif @can('update_sale_management') @endcan
Congratulations! This customer has no outstanding debt.
Payments Ledger
@forelse($payments_ledger as $payment) @empty @endforelse
Date Invoice Method Note / Ref Amount
{{ \Carbon\Carbon::parse($payment->payment_date)->format('M d, Y') }} {{ $payment->sale->invoice_no }} {{ $payment->payment_method ?? 'Cash' }} {{ $payment->note ?? '-' }} LKR {{ number_format($payment->amount, 2) }}
No partial payments recorded yet.
{{ $payments_ledger->links('pagination::bootstrap-5') }}
SMS Communications Log
@forelse($sms_logs as $log) @empty @endforelse
Date & Time Category Status Message Payload
{{ $log->created_at->format('M d, Y h:i A') }} {{ $log->category }} @if($log->status === 'sent') Sent @else Failed @endif

"{{ $log->message }}"

No SMS history recorded for this customer.
{{ $sms_logs->links('pagination::bootstrap-5') }}