@extends('layouts.admin') @section('title', 'User Details: ' . $user->name) @section('content')

User Details: {{ $user->name }}

Edit Back to Users
System Information
User ID:
{{ $user->user_id ?? 'N/A' }}
Email:
{{ $user->email }}
Status:
{{ ucfirst($user->status) }}
Registered:
{{ $user->created_at?->format('M d, Y h:i A') ?? 'N/A' }}
Last Updated:
{{ $user->updated_at?->format('M d, Y h:i A') ?? 'N/A' }}
Company Information
Company Name:
{{ $user->company_name ?? 'N/A' }}
Business Type:
{{ $user->business_type ?? 'N/A' }}
Contact Number:
{{ $user->contact_number ?? 'N/A' }}
Alternate Number:
{{ $user->alternate_number ?? 'N/A' }}
Website:
@if($user->website) {{ $user->website }} @else N/A @endif
GSTIN:
{{ $user->gstin ?? 'N/A' }}
Address

{{ $user->address ?? 'N/A' }}

Wallet
Current Balance
₹ {{ number_format($user->wallet_balance ?? 0, 2) }}
Recent Wallet Transactions
@forelse(($transactions ?? []) as $txn) @empty @endforelse
Date Type Amount Status
{{ $txn->created_at?->format('M d, Y h:i A') ?? 'N/A' }} {{ ucfirst($txn->type ?? 'N/A') }} ₹ {{ number_format($txn->amount ?? 0, 2) }} {{ ucfirst($txn->status ?? 'N/A') }}
No transactions found.
@if($user->license)
License Information
License Key:
{{ $user->license?->key ?? 'N/A' }}
Expiry Date:
{{ $user->license?->expires_at?->format('M d, Y') ?? 'N/A' }} @if($user->license?->expires_at) {{ $user->license->expires_at->isFuture() ? 'Valid' : 'Expired' }} @endif
Status:
{{ $user->license?->is_active ? 'Active' : 'Inactive' }}
Created:
{{ $user->license?->created_at?->format('M d, Y h:i A') ?? 'N/A' }}
@else
No license associated with this user.
@endif
@endsection