@extends('layouts.frontend.index') @section('content') All Doctors Home All Doctors Find A Doctor Our find a doctor tool assists you in choosing from our diverse pool of health specialists. All @foreach (App\Department::orderBy('name','ASC')->get() as $department) @if ($department->doctors->count() > 0) {{ $department->name }} @endif @endforeach @foreach (App\User::where("role_id",4)->get()->take(8) as $item) @if ($item->department) {{ $item->name }} @if ($item->department) {{ $item->department->name }} @endif @if ($item->doctor_schedule) {{-- @foreach ($item->doctor_schedule as $schedule) {{ $schedule->from_day }}{{ ' - '.$schedule->to_day }} {{ Carbon\Carbon::parse($schedule->start_time)->format('h:i a') }} - {{ Carbon\Carbon::parse($schedule->end_time)->format('h:i a') }} @endforeach --}} @foreach ($item->time_schedule as $time) {{ $time->day_name }} {{ Carbon\Carbon::parse($time->start_time)->format('h:i a') }} to {{ Carbon\Carbon::parse($time->end_time)->format('h:i a') }} @endforeach @endif MAKE AN APPOINTMENT @endif @endforeach @endsection
Our find a doctor tool assists you in choosing from our diverse pool of health specialists.
{{ $item->department->name }}