@extends('layouts.admin') @section('content')

{{ $user->name }}

Back

Email

{{ $user->email }}

Role

{{ ucfirst($user->role) }}

Total Orders

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

Registered

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

Orders

@if($user->orders->count() > 0) @foreach($user->orders as $order)@endforeach
Order #TotalStatusDate
{{ $order->order_number }}${{ number_format($order->total, 2) }}{{ ucfirst($order->status) }}{{ $order->created_at->format('M d, Y') }}
@else

No orders found

@endif
@endsection