@extends("layouts.admin.app") @section("page-title") {{__("Dashboard")}} @endSection @section("page-nav-title")

{{__("Appointment Details")}}

@endsection @section("content") @include("includes.dialog") @if($users_booking) @if($users_booking->is_cancelled == 1) @php $cancelled = \App\Models\CancelledBooking::where('booking_id',$users_booking->reservation_record_id)->first(); if($cancelled){ $userCancelled = \App\Models\User::where('id',$cancelled->cancelled_by)->first(); } @endphp @if($cancelled)

{{__('Cancelled')}}

{{__('Cancellation Reason')}}

{{$cancelled->cancellation_reason}}


{{__('Cancellation Date')}}

{{$cancelled->cancellation_date}}


{{__('Cancellation Time')}}

{{$cancelled->cancellation_time}}


{{__('Cancelled By')}}

{{$userCancelled ? ($userCancelled->full_name == null ? "No Name": $userCancelled->full_name) : null}}


@endif @endif
@php $slot_time = App\Models\TimeSlot::where('id',$users_booking->slot_id)->first(); $url = App\Models\OnlineBooking::where('booking_id',$users_booking->id)->first(); @endphp

{{__('Details')}}

{{__('Time From')}}

{{$slot_time->time_from}}


{{__('Time To')}}

{{$slot_time->time_to}}


@php $mytime = \Carbon\Carbon::now(); $currentDate = $mytime->toDateString(); @endphp

{{__('Status')}}

{{\Illuminate\Support\Facades\App::getLocale() == 'en' ? ($currentDate <= $users_booking->date? "Coming" : "Expired") : ($currentDate <= $users_booking->date? "قادم" : "منتهي")}}


{{__('Booking Date')}}

{{$users_booking->date}}


{{__('Reservation Record Id')}}

{{$users_booking->reservation_record_id}}


{{__('Type')}}

{{$users_booking->is_online == 1 ? 'Online' : 'Direct'}}


@if($users_booking->is_online === 1)

{{__('Zoom Url')}}

{{$url ? $url->zoom_url : null}}


{{__('Meeting Id')}}

{{$url ? $url->meeting_id : null}}

@endif
@php $slot_time = App\Models\ObjectDetails::where('id',$users_booking->object_id)->first(); @endphp @if($slot_time)

{{__('Doctor Time Slot')}}

{{$slot_time->time_slot_types->description ? $slot_time->time_slot_types->description : "No Data"}}

@endif

{{__('Doctor')}}

@if($doctor) avatar @endif
{{$users_booking->full_name}}

{{$users_booking->email}}

{{__('Phone')}}

{{$users_booking->phone_number}}


@php $slot_time = App\Models\ObjectDetails::where('id',$users_booking->object_id)->first(); @endphp @if($slot_time)

{{__('Doctor Time Slot')}}

{{$slot_time->time_slot_types->description ? $slot_time->time_slot_types->description : "No Data"}}

@endif
@php if ($doctor){ $Specializations = \App\Models\Specialization::where('id',$doctor->specialization_id)->first(); } @endphp

{{__('Specializations')}}

{{ $Specializations ? ($Specializations->name_.\Illuminate\Support\Facades\App::getLocale() == 'en' ? $Specializations->name_en : $Specializations->name_ar ) : "The Doctor has no specialization"}}


{{__('Has Zoom')}}

{{\Illuminate\Support\Facades\App::getLocale() == 'en' ? ($doctor->has_zoom == 1 ? "The doctor has a zoom" : "The Doctor has no Zoom") : ($doctor->has_zoom == 1 ? "الطبيب لديه زوم" : "الطبيب ليس لديه زوم")}}

{{__('User')}}

avatar
{{$user ? ($user->full_name ? $user->full_name : "No Data") : "No Data" }}

{{__('Phone')}}

{{$user ? ($user->phone_number ? $user->phone_number : "No Data") : "No Data"}}


{{__('Country')}}

{{$user ? ($user->country ? $user->country : "No Data"):"No Data"}}


{{__('Country Code')}}

{{$user ? ($user->country_code ? $user->country_code : "No Data") : "No Data"}}

@endif @endsection @section("scripts") @endsection