@php $currency = app(\App\Support\AppSettings::class)->get('currency', 'USD'); $statusStyles = [ 'pending' => 'bg-amber-50 text-amber-800', 'processing' => 'bg-sky-50 text-sky-800', 'shipped' => 'bg-indigo-50 text-indigo-800', 'delivered' => 'bg-brand-50 text-brand-800', 'cancelled' => 'bg-rose-50 text-rose-700', ]; $firstName = Str::before($customer->name, ' '); @endphp
@foreach ([ ['package-check', $orders->total(), 'Total orders', 'Signal store purchases'], ['sparkles', number_format($customer->loyalty_points), 'Loyalty points', 'Earned across your account'], ['clock-3', $orders->total() > 0 ? $orders->first()?->created_at?->diffForHumans() : 'Not yet', 'Last order', 'Most recent activity'], ] as [$icon, $value, $label, $sub])
{{ $value }}

{{ $label }}

{{ $sub }}
@endforeach