@foreach($patients as $key=> $row) @if ($row->role != 'super_admin')
@endif {{ $row->name }} {{ $row->email }} @if(!is_null($row->details)) @if($row->details->knowledge == '1') {{__('patients.social')}} @elseif($row->details->knowledge == '2' ) {{__('patients.friend')}} @elseif($row->details->knowledge == '3') {{__('patients.other')}} @endif @endif @if(!is_null($row->details)) @if($row->details->gender == '1') {{__('patients.male')}} @else{{__('patients.female')}} @endif @endif {{patientbranch($row->id)}} @if(!is_null($row->details)) {{$row->details->date_of_birth}} @endif @if(!is_null($row->reason_id)) {{ $row->reason->name }} @endif @if($row->role == 'super_admin') {{ __('dashboard.edit') }} @else @if($row->deleted_at) {{ __('dashboard.restore') }} {{ __('dashboard.delete') }} @else {{ __('dashboard.edit') }} {{ __('dashboard.trash') }} @endif @endif @endforeach @if( count( $patients ) && $patients->hasPages() ) {{ $patients->links() }} العدد الاجمالي : {{ $counter }} @endif