@extends('garage.layouts.app') @section('title', 'Payments Received') @section('content')
| Payment No | Date | Customer | Invoice | Amount | Method | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $payment->payment_number }} | {{ \Carbon\Carbon::parse($payment->payment_date)->format('M d, Y') }} |
{{ $payment->customer_name ?? '-' }}
|
@if($payment->invoice_number) {{ $payment->invoice_number }} @else - @endif | PKR {{ number_format($payment->amount, 2) }} | {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} | @php $statusColors = [ 'draft' => 'secondary', 'posted' => 'success', 'cancelled' => 'danger' ]; $statusColor = $statusColors[$payment->status] ?? 'secondary'; @endphp {{ ucfirst($payment->status) }} | |
| No payments found | |||||||