@extends('layout.backend') @section('scripts') @parent @endsection @section('content') Voltar @can('edit-coworkers') Editar @endcan

@if(session()->has('alert-success'))
{!! session()->get('alert-success') !!}
@endif @if(session()->has('alert-warning'))
{!! session()->get('alert-warning') !!}
@endif @if(session()->has('alert-danger'))
{!! session()->get('alert-danger') !!}
@endif
@if(isset($coworker->occupation->icon_class)) @endif

{!! $coworker->name !!}
JW

Assistente da Colih
@if($coworker->hospital_id) @endif @if($coworker->doctor_id) @endif @if($coworker->occupation_id || $coworker->field_id) @endif @if($coworker->privilege_id || $coworker->congregation_id) @endif @if($coworker->phone || $coworker->email) @endif @if($coworker->address || $coworker->region || $coworker->city_id ) @endif @canany(['view-users']) @endcan @if($coworker->observations) @endif @can('coworker-confidential') @if($coworker->eval_date) @endif @if($coworker->confidential_notes) @endif @endcan @if($coworker->updated_at) @endif
Especialidades
@if($coworker->specialities) @foreach($coworker->specialities as $speciality) {!! $speciality->name !!}
@endforeach @else
Nenhuma especialidade cadastrada.
@endif
Hospital Associado
@canany(['view-hospitals','edit-hospitals']) @endcan {!! $coworker->hospital->name !!}
Médico Associado
@canany(['view-doctor','edit-doctor']) @endcan {!! $coworker->doctor->name !!}
Dados Profissionais
@if($coworker->field_id)Área: {!! $coworker->field->name !!} @endif @if($coworker->field_id && $coworker->occupation_id )
@endif @if($coworker->occupation_id)Profissão: {!! $coworker->occupation->name !!}@endif
Dados Espirituais
@if($coworker->congregation_id)Congregação {!! $coworker->congregation ? $coworker->congregation->congregation : '' !!} @endif @if($coworker->congregation_id && $coworker->privilege_id )
@endif @if($coworker->privilege_id){!! $coworker->privilege->privilege !!}@endif
Contatos
@if($coworker->phone){!! AppHelper::urlPhone($coworker->phone, TRUE) !!} @endif @if($coworker->phone && $coworker->email )
@endif @if($coworker->email){!! $coworker->email !!}@endif
Endereço
@if($coworker->region)Região {!! $coworker->region->name !!}@endif @if($coworker->region && ($coworker->city_id || $coworker->address))
@endif @if($coworker->address) {!! $coworker->address !!}@endif @if($coworker->number), {!! $coworker->number !!}
@endif @if($coworker->complement) {!! $coworker->complement !!}
@endif @if($coworker->district) {!! $coworker->district !!}
@endif @if($coworker->city_id){!! $coworker->city->city !!}@endif
Usuário no site
@canany(['view-users', 'edit-users', 'create-users']) @if($coworker->user_id) {!! $coworker->user->name !!} @else @canany(['create-users']) Criar usuário para acessar o site @else Sem usuário @endcan @endif @endcan
Observações
{!! str_replace(chr(13),"
",$coworker->observations) !!}
Avaliado em
{!! \Carbon\Carbon::parse($coworker->eval_date)->format('d/m/Y') !!}
Notas
{!! $coworker->confidential_notes !!}
Última alteração
{!! \Carbon\Carbon::parse($coworker->updated_at)->format('d/m/Y') . ($coworker->last_updated_by_id != null && isset($coworker->lastUpdatedBy->name) ? (' por '. $coworker->lastUpdatedBy->name) : '')!!}
@endsection