@extends("layouts.admin")
@section('content')
user: {{ $user->name }}
Orders
@if(count($user->orders) > 0)
User
|
Location
|
Quantity
|
Order No.
|
Edit
|
Delete
|
@foreach($user->orders as $order)
{{ optional($order->user)->name }}
|
{{ $order->location }}
|
{{ $order->quantity }}
|
{{ $order->order_number }}
|
|
|
@endforeach
@else
No orders available for {{ $user->name }}.
@endif
appointments
@if(count($user->appointments) > 0)
Date
|
Time
|
Attended
|
Edit
|
Delete
|
@foreach($user->appointments as $appointment)
{{ $appointment->input_date }}
|
{{ $appointment->radio_selection }}
|
{{ $appointment->user_id }}
|
|
|
@endforeach
@else
{{$user->name}} has no appointments
@endif
@endsection