@extends('layouts.customer') @section('content')
{{ $customer['email'] ?? '' }} | {{ $customer['phone'] ?? '' }}
Loyalty Tier: Tier {{ $customer['tier_id'] ?? '-' }} | Member Since: {{ \Carbon\Carbon::parse($customer['created_at'])->format('M Y') }}
| Type | Description | Points | Order Details | Date/Time | Status |
|---|---|---|---|---|---|
| @if($point->trans_type == 1) {{-- For green text --}} Credited @elseif($point->trans_type == 2) {{-- For red text --}} Redeemed @else {{-- For gray/secondary text --}} Unknown @endif | {{ $point->description ?? '-' }} | {{ $point->point }} pts | @if(isset($point->order)) #{{ $point->order->id ?? '-' }} (₹{{ number_format($point->order->order_total ?? 0, 2) }}) @else — @endif | {{ \Carbon\Carbon::parse($point->datetime)->format('d M Y, h:i A') }} | @if($point->is_redeem) Used @else Active @endif |
| No records found! | |||||