@include('customer.includes.style')
@include('customer.includes.header')
User Image

{{ $doctorProfile->name }}

{{ $doctorProfile->location }}

{{ now()->format('d F Y') }}

{{ now()->format('l') }}

March 18, 2023 - March 20, 2023
  • @php $daysOfWeek = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']; $currentDate = new DateTime(); $dates = []; foreach ($daysOfWeek as $dayOfWeek) { $nextDate = clone $currentDate; $nextDate->modify('next ' . $dayOfWeek); $dates[$dayOfWeek] = $nextDate->format('M j'); } uasort($dates, function ($a, $b) { $dateA = DateTime::createFromFormat('M j', $a); $dateB = DateTime::createFromFormat('M j', $b); return $dateA <=> $dateB; }); @endphp @foreach ($dates as $dayOfWeek => $date) @foreach ($availability->where('doctor_id', $doctorProfile->id) as $availabilityItem) @if ($availabilityItem->day_of_week === $dayOfWeek)
  • {{ $availabilityItem->day_of_week }} {{ $date }} {{ now()->format('Y') }}
  • @endif @endforeach @endforeach
@include('customer.includes.footer')
@include('customer.includes.script')