@extends('layouts.base') @push('page_title') {{ __('San Fernando Main - Visiting Consultants') }} @endpush @section('content')

Main - Visiting Consultants

Hover to see doctor's information

@if ($doctorsBySpecialties->isNotEmpty())
@foreach ($doctorsBySpecialties as $specialty) @if ($specialty->doctors->isNotEmpty()) @endif @endforeach
No. Specialization
{{ $loop->iteration }} {{ $specialty->name }}
    @foreach ($specialty->doctors->where('branch', 'OLMCMC Main')->sortBy('last_name') as $doctor)
  • {{ $doctor->prefix }} {{ $doctor->last_name }}, {{ $doctor->first_name }} {{ mb_substr($doctor->middle_name, 0, 1) . '.' }} {{ $doctor->modalities ? '('.$doctor->modalities.')' : '' }}
  • @endforeach
@else

No data available

@endif {{-- @if ($doctors->isNotEmpty())
@foreach ($doctors as $doctor) @if ($doctor->doctors) @endif @endforeach
No. Specialization
{{ $loop->iteration + $doctors->firstItem() - 1 }} {{ $doctor->specialty }}
    @php $doctorNames = explode(' , ', $doctor->doctors); @endphp @foreach ($doctorNames as $name)
  • {{ $name }} {{ $doctor->modalities ? '('.$doctor->modalities.')' : '' }}
  • @endforeach
@else

No data available

@endif
{{ $doctors->onEachSide(0)->withQueryString()->links() }}
--}}
@endsection