@extends('backend.app') @push('style') @endpush @section('title', 'User Details') @section('content')

User Details - {{ $user->name ?? 'N/A' }}

Back to Users
@if (session()->has('message')) @endif @if (session()->has('error')) @endif

User Information

Avatar @if($user->avatar) User Avatar @else User Avatar @endif
Name {{ $user->name ?? 'N/A' }}
Email {{ $user->email ?? 'N/A' }}
Phone {{ $user->phone ?? 'N/A' }}
Address {{ $user->address ? ($user->address . ', ' . ($user->city ?? '') . ', ' . ($user->state ?? '') . ', ' . ($user->country ?? '') . ' ' . ($user->zip_code ?? '')) : 'N/A' }}
Status {{ ucfirst($user->status ?? 'inactive') }}

Bids

@if(!$user->bids || $user->bids->isEmpty())

No bids found.

@else @foreach($user->bids as $bid) @endforeach
Product Amount Is Winner Bid At
{{ $bid->product ? $bid->product->title : 'N/A' }} ${{ number_format($bid->amount, 2) }} {{ $bid->is_winner ? 'Yes' : 'No' }} {{ $bid->created_at->format('Y-m-d H:i') }}
@endif

Orders

@if(!$user->orders || $user->orders->isEmpty())

No orders found.

@else @foreach($user->orders as $order) @endforeach
Order Number Total Amount Status Ordered At Items
{{ $order->order_number }} ${{ number_format($order->total_amount, 2) }} {{ ucfirst($order->status ?? 'unknown') }} {{ $order->ordered_at ? $order->ordered_at->format('Y-m-d H:i') : 'N/A' }} {{ $order->orderItems->count() }}
@endif
@push('script') @endpush @endsection