@extends('layouts.portal') @section('content')
@if(isset($tenants) && $tenants->count() > 0)
@foreach($tenants as $expert)
@if($expert->profile && $expert->profile->profile_image) {{ $expert->name }} @elseif($expert->profile && $expert->profile->avatar_url) {{ $expert->name }} @else 🧑‍⚕️ @endif

{{ $expert->name }}

{{ $expert->profile ? $expert->profile->title : 'Counsellor & Psychologist' }}

Location: {{ ($expert->profile && $expert->profile->office_address) ? $expert->profile->office_address : 'Online / Hybrid' }}
ERP ID: {{ $expert->erp_doctor_id }}
@php $counsellor = isset($counsellors) ? $counsellors->where('first_name', $expert->name)->first() : null; $counsellorId = $counsellor ? $counsellor->id : 1; @endphp
@endforeach
@else

No experts are currently registered on the platform.

@endif
@endsection