@extends('layouts.app') @section('title', 'App User Profile - Admin Panel') @section('page_title', 'App User Details') @section('content') @if(session('success')) @endif
App User Details: {{ $app_user->name }}
Back to List
{{ $app_user->name }}

{{ $app_user->name }}

Google UID {{ $app_user->google_uid ?? 'N/A' }}
Full Name {{ $app_user->name }}
Email {{ $app_user->email }}
Gender {{ ucfirst($app_user->gender ?? 'N/A') }}
Mobile Number {{ $app_user->mobile ? ($app_user->country_code . ' ' . $app_user->mobile) : 'N/A' }}
Available Credits {{ $app_user->credits }}
Account Status @if($app_user->is_suspended) Suspended @if($app_user->suspension_status_at)
Suspended on:
@endif
Suspension Reason:

{{ $app_user->suspension_reason ?? 'No reason provided' }}

@else Active @if($app_user->suspension_status_at)
Unsuspended on:
@endif @endif
Registered Date

Registered Devices (Many-to-Many)
@if($app_user->devices->count() > 0) @foreach($app_user->devices as $device) @endforeach @else @endif
Device Name Brand Model System App Version Type Carrier Device Registered At Action
{{ $device->deviceName ?? 'N/A' }} {{ $device->brand ?? 'N/A' }} {{ $device->model ?? 'N/A' }} {{ $device->systemName ?? 'N/A' }} {{ $device->systemVersion ?? '' }} v{{ $device->appVersion ?? 'N/A' }} ({{ $device->buildNumber ?? 'N/A' }}) {{ ucfirst($device->deviceType ?? 'N/A') }} @if($device->isTablet) Tablet @endif {{ $device->carrier ?? 'N/A' }} View Device
No devices registered for this user.

Palm Profiles ({{ $app_user->palmProfiles->count() }} Total)
@forelse($app_user->palmProfiles as $profile)
{{ $profile->first_name }} {{ $profile->last_name }}

Gender: {{ ucfirst($profile->gender) }}
Birth Place: {{ $profile->birth_place ?? 'N/A' }}
Created:

@empty
No palm profiles created for this user.
@endforelse

Credit Transaction History
@forelse($app_user->creditTransactions as $tx) @empty @endforelse
TX ID Date & Time Action Amount Remaining Expires At Description
#TX-{{ str_pad($tx->id, 5, '0', STR_PAD_LEFT) }} @if($tx->type === 'addition') Added @elseif($tx->type === 'deduction') Deducted @else {{ ucfirst($tx->type) }} @endif {{ $tx->amount > 0 ? '+' : '' }}{{ $tx->amount }} @if($tx->amount > 0 && in_array($tx->type, ['addition', 'refund'])) {{ $tx->remaining_amount }} / {{ $tx->amount }} @else N/A @endif @if($tx->expires_at) @if($tx->expires_at->isPast()) Expired @endif @else N/A @endif {{ $tx->description }}
No credit transactions recorded.
@endsection @section('styles') @endsection @section('scripts') @endsection