@php $appointmentDate = Carbon\Carbon::parse($data->appointment_date); $googleMeetSetting = App\Models\Setting::where('name', 'google_meet_method')->first(); $googleMeetEnabled = $googleMeetSetting ? $googleMeetSetting->val == 1 : false; $zoomSetting = App\Models\Setting::where('name', 'is_zoom')->first(); $zoomEnabled = $zoomSetting ? $zoomSetting->val == 1 : false; $pay_status = optional($data->payment)->payment_status; @endphp {{-- @if (!in_array($data->status, ['pending', 'confirm', 'cancel']) && $data->status !== null) @if($data->patientEncounter !=null) @endif @endif --}} @if (!in_array($data->status, ['pending', 'confirm', 'cancel']) && $data->status !== null) @if($data->patientEncounter !=null) @endif @endif @if(optional($data->clinicservice)->is_video_consultancy == 1 && $appointmentDate->isToday()) @if($googleMeetEnabled && $data->meet_link != null) $data->id]) }}" data-type="ajax" class='btn text-info p-0 fs-5' data-bs-toggle="tooltip" title="{{ __('clinic.google_meet') }}"> @endif @if($zoomEnabled && $data->start_video_link != null) $data->id]) }}" data-type="ajax" class='btn text-info p-0 fs-5' data-bs-toggle="tooltip" title="{{ __('clinic.zoom_meet') }}"> @endif @endif @if($pay_status == 1 && $data->status == 'checkout') @endif @unless(auth()->user()->hasRole('doctor')) @hasPermission('delete_clinic_appointment_list') @endhasPermission @endunless @if($customform) @foreach($customform as $form) @php $formdata=json_decode($form->formdata); $appointment_status= json_decode($form->appointment_status); // Normalize the appointment status and adjust 'confirm' to 'confirmed' $AppointmentStatus = array_map(function ($status) { return strtolower(trim($status)) === 'confirm' ? 'confirmed' : strtolower(trim($status)); }, (array) $appointment_status); @endphp @if (in_array(strtolower($data->status), $AppointmentStatus) && $data->status !== null) @endif @endforeach @endif