@php
$fields = [
['icon' => 'fas fa-envelope', 'label' => __('Email'), 'value' => $user->email],
['icon' => 'fas fa-phone', 'label' => __('mobile'), 'value' => $user->phone],
['icon' => 'fas fa-signature', 'label' => __('NickName'), 'value' => $user->NickName],
['icon' => 'fas fa-flag', 'label' => __('Nationality'), 'value' => $user->Nationality],
['icon' => 'fas fa-venus-mars', 'label' => __('Gender'), 'value' => $user->gender],
['icon' => 'fas fa-birthday-cake', 'label' => __('Date Of Birth'), 'value' => $user->Date_Of_Birth],
['icon' => 'fas fa-star-half-alt', 'label' => __('Average Rating'), 'value' => number_format($user->reviews()->avg('rating') ?: 0, 1) . ' / 5.0'],
['icon' => 'fas fa-sort-numeric-up','label' => __('self_Ranking'), 'value' => ($user->self_Ranking ?? '-') . ' / 10'],
['icon' => 'fas fa-gamepad', 'label' => __('Games Played'), 'value' => $user->Games_Played],
['icon' => 'fas fa-tag', 'label' => __('Category'), 'value' => $user->category?->name],
['icon' => 'fas fa-map-marker-alt','label' => __('Playing Style'), 'value' => $user->location?->name],
['icon' => 'fas fa-calendar-alt', 'label' => __('Joined At'), 'value' => $user->created_at?->format('Y-m-d')],
];
@endphp
@foreach($fields as $field)
{{ $field['label'] }}
{{ $field['value'] ?: '—' }}
@endforeach
{{-- Wallet Balance - highlighted --}}
{{ __('Balance') }}
{{ number_format($user->wallet?->balance ?? 0, 2) }} {{ app_setting('currency', 'GBP') }}
{{-- Stripe Connect Status --}}
{{ __('Stripe Status') }}
{{ ucfirst($user->stripeconnect_account_status ?? 'Not Connected') }}
{{-- Bio - full width --}}
@if($user->Bio)
{{ __('Bio') }}
{{ $user->Bio }}
@endif