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