@extends('layouts.customer') @section('content')
@foreach($customer->transection_points as $index => $transaction) {{ $index }} => {{ json_encode($transaction, JSON_PRETTY_PRINT) }} @endforeach
{{ $customer->first_name ?: '' }} {{ $customer->last_name ?: '' }}
{{ $customer->email ?: '' }} {{ $customer->phone ? '|' : '' }} {{ $customer->phone ?: '' }}
Address
{{ $customer->full_address }}
Total Orders
{{ $orderCounts['total_orders'] ?? 0 }}
Completed Orders
{{ $orderCounts['completed_orders'] ?? 0 }}
Cancelled Orders
{{ $orderCounts['cancelled_orders'] ?? 0 }}
Total Discounts
{{ $orderCounts['total_discounts'] ?? 0 }}
Available Points
{{ $points['available'] ?? 0 }}
Redeemed Points
{{ $points['redeemed'] ?? 0 }}