@extends('layouts.portal') @section('title', 'My Appointments') @section('page_title', 'My Appointments') @section('page_subtitle', 'View your scheduled appointments') @section('sidebar') @include('client.partials.sidebar', ['active' => 'appointments']) @endsection @section('content')

My Appointments

View your scheduled appointments with your lawyer

Upcoming Appointments

@if($upcoming->count() > 0)
@foreach($upcoming as $appointment)
{{ $appointment->appointment_date->format('M') }}
{{ $appointment->appointment_date->format('d') }}
{{ $appointment->appointment_date->format('Y') }}

{{ $appointment->appointment_date->format('l') }}

{{ $appointment->appointment_date->format('h:i A') }}

{{ ucfirst($appointment->status) }}

Lawyer

{{ $appointment->lawyer->name }}

{{ $appointment->lawyer->email }}

@if($appointment->notes)

{{ $appointment->notes }}

@endif
@endforeach
@else

No upcoming appointments

@endif

Past Appointments

@if($past->count() > 0)
@foreach($past as $appointment) @endforeach
Date Lawyer Status
{{ $appointment->appointment_date->format('M d, Y') }}
{{ $appointment->appointment_date->format('h:i A') }}
{{ $appointment->lawyer->name }}
{{ ucfirst($appointment->status) }}
@else

No past appointments

@endif
@endsection