@extends('portal.layouts.app') @php $notAvailable = trans('portal.common.not_available'); @endphp @section('content')
{{ trans('portal.profile.cards.employee_code') }}
{{ $employee->code }}
{{ trans('portal.profile.cards.branch') }}
{{ $employee->branch?->name ?? $notAvailable }}
{{ trans('portal.profile.cards.department') }}
{{ $employee->department?->name ?? $notAvailable }}
{{ trans('portal.profile.cards.designation') }}
{{ $employee->designation?->name ?? $notAvailable }}

{{ trans('portal.profile.sections.personal_information') }}

{{ trans('portal.profile.fields.full_name') }} {{ $employee->name }}
{{ trans('portal.profile.fields.email') }} {{ $employee->email ?? $notAvailable }}
{{ trans('portal.profile.fields.phone') }} {{ $employee->phone ?? $notAvailable }}
{{ trans('portal.profile.fields.date_of_birth') }} {{ $employee->date_of_birth?->format('Y-m-d') ?? $notAvailable }}
{{ trans('portal.profile.fields.gender') }} {{ $employee->gender ?? $notAvailable }}
{{ trans('portal.profile.fields.marital_status') }} {{ $employee->marital_status ?? $notAvailable }}
{{ trans('portal.profile.fields.nationality') }} {{ $employee->nationality ?? $notAvailable }}
{{ trans('portal.profile.fields.national_id_number') }} {{ $employee->national_id_number ?? $notAvailable }}
{{ trans('portal.profile.fields.passport_number') }} {{ $employee->passport_number ?? $notAvailable }}
{{ trans('portal.profile.fields.emergency_contact_name') }} {{ $employee->emergency_contact_name ?? $notAvailable }}
{{ trans('portal.profile.fields.emergency_contact_phone') }} {{ $employee->emergency_contact_phone ?? $notAvailable }}
{{ trans('portal.profile.fields.address') }} {{ $employee->address ?? $notAvailable }}

{{ trans('portal.profile.sections.employment_information') }}

{{ trans('portal.profile.fields.hire_date') }} {{ $employee->hire_date?->format('Y-m-d') ?? $notAvailable }}
{{ trans('portal.profile.fields.employment_status') }} {{ $employee->employment_status ?? $notAvailable }}
{{ trans('portal.profile.fields.direct_manager') }} {{ $employee->directManager?->name ?? $notAvailable }}
{{ trans('portal.profile.fields.grade') }} {{ $employee->grade?->name ?? $notAvailable }}

{{ trans('portal.profile.sections.contract_snapshot') }}

{{ trans('portal.profile.fields.contract_type') }} {{ $currentContract?->contractType?->name ?? $notAvailable }}
{{ trans('portal.profile.fields.contract_number') }} {{ $currentContract?->contract_number ?? $notAvailable }}
{{ trans('portal.profile.fields.contract_status') }} {{ $currentContract?->status ?? $notAvailable }}
{{ trans('portal.profile.fields.contract_dates') }} {{ $currentContract?->start_date?->format('Y-m-d') ?? $notAvailable }} @if ($currentContract?->end_date) - {{ $currentContract->end_date->format('Y-m-d') }} @endif
{{ trans('portal.profile.fields.probation_end_date') }} {{ $currentContract?->probation_end_date?->format('Y-m-d') ?? $notAvailable }}

{{ trans('portal.profile.sections.compensation_snapshot') }}

{{ trans('portal.profile.fields.salary') }} {{ $currentSalaryProfile ? number_format((float) $currentSalaryProfile->basic_salary, 2) : $notAvailable }}
{{ trans('portal.profile.fields.payment_method') }} {{ $currentSalaryProfile?->payment_method ?? $notAvailable }}
{{ trans('portal.profile.fields.payroll_cycle') }} {{ $currentSalaryProfile?->payroll_cycle ?? $notAvailable }}
{{ trans('portal.profile.fields.effective_from') }} {{ $currentSalaryProfile?->effective_from?->format('Y-m-d') ?? $notAvailable }}
{{ trans('portal.profile.fields.cost_center') }} {{ $currentSalaryProfile?->costCenter?->name ?? $notAvailable }}
{{ trans('portal.profile.fields.bank_name') }} {{ $primaryBankAccount?->bank_name ?? $notAvailable }}
{{ trans('portal.profile.fields.branch_name') }} {{ $primaryBankAccount?->branch_name ?? $notAvailable }}
{{ trans('portal.profile.fields.account_name') }} {{ $primaryBankAccount?->account_name ?? $notAvailable }}
{{ trans('portal.profile.fields.account_number') }} {{ $primaryBankAccount?->account_number ?? $notAvailable }}
{{ trans('portal.profile.fields.iban') }} {{ $primaryBankAccount?->iban ?? $notAvailable }}
{{ trans('portal.profile.fields.swift_code') }} {{ $primaryBankAccount?->swift_code ?? $notAvailable }}
{{ trans('portal.profile.fields.currency_code') }} {{ $primaryBankAccount?->currency_code ?? $notAvailable }}

{{ trans('portal.profile.sections.documents') }}

@if ($documents->isEmpty())

{{ trans('portal.profile.no_documents_title') }}

{{ trans('portal.profile.no_documents_description') }}

@else
@foreach ($documents as $document)
{{ $document->title }}
{{ trans('portal.profile.fields.document_type') }}: {{ $document->document_type ?? $notAvailable }} @if ($document->document_number) • {{ trans('portal.profile.fields.document_number') }}: {{ $document->document_number }} @endif
@if ($document->expiry_date) {{ trans('portal.profile.fields.expiry_date') }}: {{ $document->expiry_date->format('Y-m-d') }} @elseif ($document->issue_date) {{ trans('portal.profile.fields.issue_date') }}: {{ $document->issue_date->format('Y-m-d') }} @else {{ $notAvailable }} @endif
@endforeach
@endif
@endsection