@php $patientUrl = getLogInUser()->hasRole('doctor') ? route('doctors.patient.detail', $row->patient->id) : 'javascript:void(0)'; $appointmentUrl = getLogInUser()->hasRole('doctor') ? route('doctors.appointment.detail', $row->id) : route('patients.appointment.detail', $row->id); @endphp
user
@if(getLogInUser()->hasRole('clinic_admin')) {{$row->patient->user->full_name}} @else {{$row->patient->user->full_name}} @endif {{$row->patient->user->email}}