@extends('layouts.app') @section('title', $customer->name) @section('breadcrumb')
| Name | {{ $customer->name }} |
| Phone | {{ $customer->phone ?? '—' }} |
| {{ $customer->email ?? '—' }} | |
| Address | {{ $customer->address ?? '—' }} |
| Opening Bal. | ৳{{ number_format($customer->opening_balance, 2) }} |
| Credit Limit | {{ $customer->credit_limit > 0 ? '৳'.number_format($customer->credit_limit, 2) : 'No limit' }} |
| Member Since | {{ $customer->created_at->format('d M Y') }} |
| Invoice | Date | Total | Paid | Due | Status |
|---|---|---|---|---|---|
| {{ $sale->invoice_no }} | {{ $sale->sale_date->format('d M Y') }} | ৳{{ number_format($sale->total_amount, 2) }} | ৳{{ number_format($sale->paid_amount, 2) }} | {{ $sale->due_amount > 0 ? '৳'.number_format($sale->due_amount, 2) : '—' }} | @php $sc=['completed'=>'success','hold'=>'warning','returned'=>'danger','cancelled'=>'secondary']; @endphp{{ ucfirst($sale->status) }} |
| Date | Amount | Method | Account | Reference |
|---|---|---|---|---|
| {{ $pmt->payment_date->format('d M Y') }} | ৳{{ number_format($pmt->amount, 2) }} | {{ ucfirst(str_replace('_',' ',$pmt->payment_method)) }} | {{ $pmt->account->name }} | {{ $pmt->reference ?? '—' }} |
| Product | Serial | Start | End | Status |
|---|---|---|---|---|
| {{ $w->saleItem?->productVariant?->product?->name ?? '—' }} | {{ $w->serialNumber?->serial_no ?? '—' }} |
{{ $w->start_date->format('d M Y') }} | {{ $w->end_date->format('d M Y') }} | {{ ucfirst($w->status) }} |
| Ticket | Device | Status | Date |
|---|---|---|---|
| {{ $ticket->ticket_no }} | {{ $ticket->device_name }} | {{ ucfirst(str_replace('_',' ',$ticket->status)) }} | {{ $ticket->received_date->format('d M Y') }} |