@extends('layouts.app') @section('title', 'User Details') @section('content')
Back to Users

User Details

Edit User
{{-- ── LEFT: Profile card ── --}}

{{ $user->name }}

{{ ucfirst($user->role) }}
@if($user->is_active) Active @else Inactive @endif
@if($user->id !== request()->session()->get('user_id'))
@csrf @method('PATCH')
@endif
{{-- ── RIGHT: Info card ── --}}
Account Information
User ID #{{ $user->id }}
Full Name {{ $user->name }}
Email Address
Phone {{ $user->phone ?? '—' }}
Date of Birth {{ $user->date_of_birth ? $user->date_of_birth->format('M j, Y') : '—' }}
AVC Id {{ $user->avc?->avc_id ?? '—' }}
Location {{ $user->avc?->location ?? '—' }}
Registered {{ $user->created_at->format('M j, Y') }}
Role {{ ucfirst($user->role) }}
{{-- ── Latest activated plans (full width) ── --}}
Latest activated plans
@if($activatedPlans->isEmpty())

No activated plans.

@else
@foreach($activatedPlans as $plan) @endforeach
Service ID Plan Type Date
#{{ $plan->iperium_service_id ?? $plan->order_id ?? '—' }} {{ $plan->plan_name }} {{ ucfirst($plan->type) }} {{ $plan->date?->format('M j, Y') ?? '—' }} @if($plan->type === 'subscription' && isset($plan->period_end) && $plan->period_end)
Renews {{ \Carbon\Carbon::parse($plan->period_end)->format('M j, Y') }} @endif
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush