@extends('dashboard.app') @section('page_title', 'User Details') @section('page_subtitle', 'Profile, access, and subscription history.') @section('dashboard_content') Back to users
User ID: {{ $user->id }}
@csrf @method('DELETE')
Account
{{ $user->name ?? '—' }}
{{ $user->email }}
Access
{{ $user->role ?? 'user' }}
Tier: {{ $user->tier ?? 'free' }}
Joined
{{ $user->created_at?->toDateString() ?? '—' }}
{{ $user->created_at?->diffForHumans() ?? '' }}
Subscriptions
Recent access records
@forelse ($subscriptions as $row) @empty @endforelse
Plan Status Started Expires Actions
{{ $row->plan }} @php $inactive = in_array($row->status, ['revoked', 'cancelled', 'suspended'], true); $pill = $inactive ? ['bg' => 'bg-rose-100 dark:bg-rose-500/20', 'text' => 'text-rose-800 dark:text-rose-200'] : ($row->status === 'pending' ? ['bg' => 'bg-amber-100 dark:bg-amber-500/20', 'text' => 'text-amber-800 dark:text-amber-200'] : ['bg' => 'bg-emerald-100 dark:bg-emerald-500/20', 'text' => 'text-emerald-800 dark:text-emerald-200']); @endphp {{ $row->status }} {{ $row->started_at?->toDateString() ?? '—' }} {{ $row->expires_at?->toDateString() ?? '—' }} View
No subscriptions found.
@endsection