@extends('layouts.app') @section('title', 'Detalhes do Funcionário - ' . $funcionario->full_name) @section('content')

Detalhes do Funcionário: {{ $funcionario->full_name }}

@if($funcionario->status !== 'terminated') Editar @endif @if($funcionario->status === 'active')
@csrf
@endif @if($funcionario->status === 'terminated')
@csrf
@endif Voltar
Foto
@if($funcionario->photo_url)
Foto do Funcionário
@else

Sem foto cadastrada

@endif
Status
Status Atual @php $statusClasses = [ 'active' => 'badge-success', 'inactive' => 'badge-danger', 'suspended' => 'badge-warning', 'terminated' => 'badge-danger', ]; $statusTexts = [ 'active' => 'Ativo', 'inactive' => 'Inativo', 'suspended' => 'Suspenso', 'terminated' => 'Desligado', ]; $statusIcons = [ 'active' => 'fa-check-circle', 'inactive' => 'fa-times-circle', 'suspended' => 'fa-ban', 'terminated' => 'fa-user-slash', ]; @endphp {{ $statusTexts[$funcionario->status] ?? ucfirst($funcionario->status) }}
Tempo de Serviço @php $serviceMonths = $funcionario->service_time ?? 0; $years = floor($serviceMonths / 12); $months = $serviceMonths % 12; $parts = []; if ($years > 0) $parts[] = $years . ' ano' . ($years > 1 ? 's' : ''); if ($months > 0) $parts[] = $months . ' mês' . ($months > 1 ? 'es' : ''); echo !empty($parts) ? implode(' e ', $parts) : 'Menos de 1 mês'; @endphp
Cadastrado em {{ $funcionario->created_at ? $funcionario->created_at->format('d/m/Y H:i') : '-' }}
Última atualização {{ $funcionario->updated_at ? $funcionario->updated_at->format('d/m/Y H:i') : '-' }}
Informações Pessoais
Nome Completo {{ $funcionario->full_name }}
Estabelecimento {{ $funcionario->establishment->name ?? '-' }}
Tipo de Identidade {{ $funcionario->identity_type }}
Número de Identidade {{ $funcionario->identity_number }}
Data de Nascimento {{ $funcionario->birth_date ? $funcionario->birth_date->format('d/m/Y') : '-' }}
Contato
Telefone {{ $funcionario->phone }}
Telefone Alternativo {{ $funcionario->alternate_phone ?? '-' }}
Email {{ $funcionario->email ?? '-' }}
Endereço {{ $funcionario->address ?? '-' }}
Dados Profissionais
@if($funcionario->termination_date) @endif
Cargo {{ $funcionario->position }}
Tipo de Funcionário @php $employeeTypeTexts = [ 'manager' => 'Gerente', 'supervisor' => 'Supervisor', 'seller' => 'Vendedor', 'cashier' => 'Caixa', 'assistant' => 'Auxiliar', 'other' => 'Outro', ]; @endphp {{ $employeeTypeTexts[$funcionario->employee_type] ?? $funcionario->employee_type }}
Salário Base KZ {{ $funcionario->salary ? number_format($funcionario->salary, 2, ',', '.') : '-' }}
Data de Contratação {{ $funcionario->hire_date ? $funcionario->hire_date->format('d/m/Y') : '-' }}
Data de Desligamento {{ $funcionario->termination_date ? $funcionario->termination_date->format('d/m/Y') : '-' }}
Usuário {{ $funcionario->user->name ?? '-' }}
Benefícios
@php $benefits = $funcionario->formatted_benefits ?? []; @endphp
INSS {{ isset($benefits['inss']) ? $benefits['inss'] . '%' : '-' }}
IRT {{ isset($benefits['irt']) ? $benefits['irt'] . '%' : '-' }}
Bônus @if(isset($benefits['bonus']) && $benefits['bonus'] > 0) KZ {{ number_format($benefits['bonus'], 2, ',', '.') }} @else - @endif
Seguro Saúde {{ ($benefits['health_insurance'] ?? false) ? 'Sim' : 'Não' }}
Vale Refeição {{ ($benefits['meal_voucher'] ?? false) ? 'Sim' : 'Não' }}
Vale Transporte {{ ($benefits['transport_voucher'] ?? false) ? 'Sim' : 'Não' }}
@if($funcionario->emergency_contact_name || $funcionario->emergency_contact_phone)
Contato de Emergência
Nome {{ $funcionario->emergency_contact_name ?? '-' }}
Telefone {{ $funcionario->emergency_contact_phone ?? '-' }}
@endif @if($funcionario->metadata)
Metadados
@endif
@endsection @push('styles') @endpush