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

user: {{ $user->name }}

Orders

@if(count($user->orders) > 0) @foreach($user->orders as $order) @endforeach
User Location Quantity Order No. Edit Delete
{{ optional($order->user)->name }} {{ $order->location }} {{ $order->quantity }} {{ $order->order_number }}
@csrf @method('DELETE')
@else

No orders available for {{ $user->name }}.

@endif

appointments

@if(count($user->appointments) > 0) @foreach($user->appointments as $appointment) @endforeach
Date Time Attended Edit Delete
{{ $appointment->input_date }} {{ $appointment->radio_selection }} {{ $appointment->user_id }}
@csrf @method('DELETE')
@else

{{$user->name}} has no appointments

@endif
@endsection