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

Profile

{{ $user->name }}

{{ $user->email }}

{{ $user->phone ?? '—' }}

@if($user->is_admin) Admin @else User @endif

Joined {{ $user->created_at->format('M d, Y') }}

@if($user->id !== auth()->id())
@csrf
@csrf @method('DELETE')
@endif Back

Orders ({{ $user->orders->count() }})

@if($user->orders->count()) @foreach($user->orders as $o) @endforeach
#ItemsTotalStatusDate
#{{ $o->id }} {{ $o->items->count() }} Rs {{ number_format($o->total, 0) }} {{ strtoupper($o->status) }} {{ $o->created_at->format('M d, Y') }}
@else

No orders yet.

@endif
@endsection