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

Upcoming Appointment List

@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif
@foreach($upcoming_appointments as $key=>$row) @php $nextWeek = new DateTime; $nextWeek->modify('+30 minutes'); $nextWeek = $nextWeek->format('Y-m-d H:i:s'); $patientName = (isset($row->patient->first_name) ? $row->patient->first_name : '')." ".(isset($row->patient->last_name) ? $row->patient->last_name : ''); $therapistName = (isset($row->therapist->first_name) ? $row->therapist->first_name : '')." ".(isset($row->therapist->last_name) ? $row->therapist->last_name : ''); @endphp @endforeach
# Id Patient Name Therapist Name Appointment Date Appointment Time From Appointment Time To Appointment Type Appointment Status
{{++$key}} {{$row->id}} {{$patientName}} {{$therapistName}} {{date("Y-m-d",strtotime($row->appointment_time))}} {{date("H:i:s",strtotime($row->appointment_time))}} {{date ("H:i:s",strtotime($row['appointment_time']) + (30 * 60))}} {{$row->appointment_type}} {{$row->status}}
@endsection