@extends('front.layouts.master') @section('frontend-css') @endsection @section('content')

Appointment

Filters
@if (isset($doctors) && count($doctors) > 0) @foreach ($doctors as $doctor)
Doctor image

{{ $doctor->name }}

{{ $doctor->services }}

{{ $doctor->designations }}

Day's Availability
{{--

{{ implode(', ', array_intersect_key(days(), array_flip(explode(',', $doctor->opd_days)))) }}

--}} @php $selectedDays = explode(',', $doctor->opd_days); @endphp @foreach(days() as $key => $day) @if(in_array($key, $selectedDays)) {{ strtoupper(substr($day, 0, 3)) }} @endif @endforeach
@if(!Auth::guard('patient')->check()) {{-- Not user Login Chchecked --}} Book an Appointment @else Book an Appointment @endif
@endforeach @else
No doctors found.
@endif
@if(Auth::guard('patient')->check()) @endif @endsection @section('frontend_bottom_script') @endsection