@extends('layout.backend') @section('title', $doctor->exists ? ('Editar Médic'.(($doctor->gender ?? 'M') == 'M' ?'o: ' : 'a: ' ).$doctor->name) : 'Novo médico') @section('scripts') @parent @endsection @section('content') {{-- BARRA DE BOTÕES --}} @if($doctor->exists) {!! Form::hidden('id', $doctor->id) !!} {{-- TODO: Verificar necessidade disto.--}} @endif {!! Form::hidden("cooperation_level_old", $doctor->cooperation_level, ['id'=>'cooperation_level_old']) !!} {!! Form::hidden("cooperation_level_set", $doctor->cooperation_level, ['id'=>'cooperation_level_set']) !!} {!! Form::hidden("cooperationLevels", str_replace('"',"'",json_encode($cooperationLevels)), ['id'=>'cooperationLevels'] ) !!} {!! Form::hidden("entry", $doctor->exists ? (!empty($doctor->entry) ? $doctor->entry : $doctor->created_at) : null ) !!} {{__('doctor.fields.name')}} {{__('doctor.fields.gender')}} @if($doctor->exists) @if($doctor->lastDateVisitDetails)
$doctor->last_date_visit_days >180])"> {{__('doctor.fields.last_date_visit') . ' '. optional($doctor->last_date_visit)->format('d/m/Y')}}
@else
Nunca visitado
@endif @endif
{{-- conselho --}} Tipo Número UF {{-- Cooperação --}} Recebeu hlc-37 {{__('doctor.fields.cooperation_level')}} @can('doctor-colih') {{-- Força quebra de linha se aparecer o quadro amarelo --}}
@endcan {{__('doctor.fields.user_id')}} @if ( ($doctor->user_id != null && $doctor->user == null) || optional($doctor->user)->trashed()) @endif {{__('doctor.fields.entry')}}
{{__('doctor.fields.cns')}} {{__('doctor.fields.url_lattes')}} {{-- contatos confidenciais --}} @if (Gate::allows('doctor-confidential') || (Gate::allows('doctor-edit-mine') && ($doctor->user_id ?? 0) == auth()->id() ) ) {{__('doctor.fields.phone_celular')}} {{__('doctor.fields.pessoal_email')}} @endif
{{--checkboxes--}}
{{__('doctor.fields.surgeon')}} {{__('doctor.fields.accept_telemedicine')}} {{__('doctor.fields.has_sus')}} {{__('doctor.fields.private_practice')}}
{{__('doctor.fields.accept_emergencies')}} {{__('doctor.fields.accept_children')}} {{__('doctor.fields.accept_babies')}}
{{__('doctor.fields.jw')}} {{__('doctor.fields.treated_jw')}} {{__('doctor.fields.csa_e')}} {{__('doctor.fields.accept_remote_visits')}}
{{__('doctor.fields.specialities')}} {{__('doctor.fields.hospitals')}} {{__('doctor.fields.agreements')}} {{__('doctor.fields.observations')}} @if (Gate::allows('doctor-confidential') || (Gate::allows('doctor-edit-mine') && ($doctor->user_id ?? 0) == auth()->id() ) ) {{__('doctor.fields.confidential_notes')}} @endif {{--Endereços e contatos de atendimento --}}

@if($doctor->exists)
Última alteração {{ ($doctor->updated_at ? \Carbon\Carbon::parse($doctor->updated_at)->format('d/m/y') : '') . ($doctor->last_updated_by_id ? (' por ' . optional($doctor->lastUpdatedBy)->shortName) : '')}}
@endif
@endsection