@extends('layouts.app') @section('title', 'Detalhes do Funcionário - ' . $funcionario->full_name) @section('content')
Sem foto cadastrada
| 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') : '-' }} |
| 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') : '-' }} |
| Telefone | {{ $funcionario->phone }} |
|---|---|
| Telefone Alternativo | {{ $funcionario->alternate_phone ?? '-' }} |
| {{ $funcionario->email ?? '-' }} | |
| Endereço | {{ $funcionario->address ?? '-' }} |
| 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 ?? '-' }} |
| 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' }} |
| Nome | {{ $funcionario->emergency_contact_name ?? '-' }} |
|---|---|
| Telefone | {{ $funcionario->emergency_contact_phone ?? '-' }} |
{{ json_encode($funcionario->metadata, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}