@if($cols>0) @for($i = 0 ; $i < $cols ; $i++) @endfor @endif @foreach($doctors as $doctor) @if($doctor->specialities->count() > 0) @foreach($doctor->specialities as $speciality) @endforeach @for($i = count($doctor->specialities) ; $i < $cols ; $i++) @endfor @else @for($i = 0 ; $i < $cols ; $i++) @endfor @endif @endforeach
NomeEspecialidade {{$i+1}} - HID Especialidade {{$i+1}} - ColihAtende Menores Atende Bebês Atende SUS Última visita É TJ? É Consultor? Membro resp. Colaboração Atende Particular Prencheu HLC-23 Tem Pasta CSA É cirurgião Secretária(o) Telefone Celular Endereço Consultório E-mail Hospitais Convênios Observações
{{ $doctor->name }} @if(isset($speciality->speciality->specialities->report_name)) {{ $speciality->speciality->specialities->report_name ?? $speciality->speciality->specialities->name}} @else (não informada) @endif {{ $speciality->speciality->name }}       {{ $doctor->accept_children === 1 ? 'Sim' : 'Não' }} {{ $doctor->accept_babies === 1 ? 'Sim' : 'Não' }} {{ $doctor->has_sus === 1 ? 'Sim' : 'Não' }} {{ $doctor->last_date_visit }} {{ $doctor->jw === 1 ? 'Sim' : 'Não' }} {{ $doctor->cooperation_level === 7 ? 'Sim' : 'Não' }} {{ $doctor->user ? $doctor->user->name : '' }} {!! $doctor->cooperation_level_string !!} {{ $doctor->private_practice === 1 ? 'Sim' : 'Não' }} {{ $doctor->hlc_23 === 1 ? 'Sim' : 'Não' }} {{ $doctor->csa_e === 1 ? 'Sim' : 'Não' }} {{ $doctor->surgeon === 1 ? 'Sim' : 'Não' }} {{ $doctor->secretary }} {{ $doctor->phone }} {{ $doctor->phone_celular }} Rua {{ $doctor->defaultAddress()->street }}, {{ $doctor->defaultAddress()->number }} - {{ $doctor->defaultAddress()->neighborhood }} - {{ $doctor->defaultAddress()->complement }}
@if($doctor->defaultAddress()->city) {{ $doctor->defaultAddress()->city->city }} {{ $doctor->defaultAddress()->city->state ? ', '.$doctor->defaultAddress()->city->state->uf : ''}} @endif
{{ $doctor->email }} @if($doctor->hospitals->count() > 0) @foreach($doctor->hospitals as $hospital) {{ $hospital->hospital->name }} @if(!$loop->last) | @endif @endforeach @else -- @endif @if($doctor->agreements->count() > 0) @foreach($doctor->agreements as $agreement) {{ $agreement->agreement->name }} @if(!$loop->last) | @endif @endforeach @else -- @endif {{ $doctor->observations }}