@if(isset($query->providers)) @if(optional($query->providers)->user_type === 'provider')
avatar
{{ optional($query->providers)->display_name}}
{{ optional($query->providers)->email ?? '--' }}
@elseif(optional($query->providers)->user_type === 'user')
avatar
{{ optional($query->providers)->display_name}}
{{ optional($query->providers)->email ?? '--' }}
@endif @else
{{ '-' }}
@endif