@php use App\Models\RelationShip; use App\Models\Representative; @endphp

{{ __('detail-patient.patient_representatives') }}

@if($relationships && count($relationships) > 0)
@foreach($relationships as $relationship) @foreach($relationship->representative()->get() as $representative) @endforeach @endforeach
{{ __('detail-patient.representative_name') }} {{ __('detail-patient.representative_relationship') }} {{ __('detail-patient.representative_identification') }} {{ __('detail-patient.representative_phone') }} {{ __('detail-patient.representative_email') }} {{ __('detail-patient.representative_address') }}
{{ $representative->firstname }} {{ $representative->lastname }} {{ strtoupper(config("app.parents")()[$relationship->title]) }} {{ $representative->identification }} {{ $representative->phone }} {{ $representative->email }} {{ $representative->address }}
{{ __('detail-patient.add_new_representative') }}
@else
{{ __('detail-patient.no_representatives') }}
{{ __('detail-patient.add_representative') }}
@endif