@extends('layouts.admin') @section('title', $user->name) @section('topbar-title', 'User Detail') @section('content')
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
{{ $user->email }}
{{ $user->is_active ? 'Active' : 'Disabled' }}

Info

@foreach(['Phone' => $user->phone, 'Company' => $user->company, 'Joined' => $user->created_at->format('M j, Y')] as $label => $val)
{{ $label }} {{ $val ?: '—' }}
@endforeach
Licenses {{ $user->licenses->count() }}

Licenses

@forelse($user->licenses as $lic) @empty @endforelse
KeyProductIPStatusExpires
{{ $lic->license_key }} {{ $lic->product->name }} {{ $lic->valid_ip }} {{ $lic->status }} {{ $lic->expires_at?->format('M j, Y') ?? '—' }} Manage
No licenses

Orders

@forelse($user->orders as $order) @empty @endforelse
InvoiceProductCycleAmountStatusDate
{{ $order->invoice_number }} {{ $order->plan->product->name }} {{ $order->billing_cycle }} ${{ number_format($order->amount, 2) }} {{ ucfirst($order->status) }} {{ $order->created_at->format('M j, Y') }}
No orders
@endsection