{{-- CARD MEDICO + INFO PAZIENTE LOGGATO --}}
{{-- Sezione medico --}}
{{-- Avatar: foto se presente, iniziale altrimenti --}} @if(!empty($doctor->avatar_path)) Foto di {{ $doctor->name }} @else
{{ strtoupper(mb_substr($doctor->name, 0, 1)) }}
@endif
Medico
{{ $doctor->name }}
@if(!empty($doctor->specialty))
{{ $doctor->specialty }}
@endif @if(!empty($doctor->public_title))
{{ $doctor->public_title }}
@endif @if(!empty($doctor->public_bio))
{{ $doctor->public_bio }}
@endif
{{-- Sezione paziente loggato --}} @php $loggedUser = auth()->user(); $isPatient = $loggedUser && !in_array($loggedUser->role, ['doctor', 'secretary']); @endphp @if($isPatient)
Sei loggato come
{{ $loggedUser->name }}
@if($loggedUser->email)
{{ $loggedUser->email }}
@endif
@endif