@extends('layouts.app') @section('title', $customer->name . ' - Customer Profile') @section('content')
{{ $customer->notes }}
| Date | Type | Channel | Reference | Amount | Status | Payment | Actions |
|---|---|---|---|---|---|---|---|
| {{ $transaction['date']->format('M d, Y') }} | @if($transaction['type'] === 'order') Order @else Booking @endif | {{ ucfirst($transaction['channel']) }} |
{{ $transaction['reference'] }}
|
RM {{ number_format($transaction['amount'], 2) }} | @php $statusClass = match($transaction['status']) { 'completed', 'confirmed' => 'success', 'pending' => 'warning', 'cancelled' => 'danger', default => 'secondary', }; @endphp {{ ucfirst($transaction['status']) }} | @php $paymentClass = match($transaction['payment_status']) { 'paid' => 'success', 'pending' => 'warning', 'failed' => 'danger', default => 'secondary', }; @endphp {{ ucfirst($transaction['payment_status']) }} | View |
No transactions yet