@extends('layouts.app') @push('page-styles') @endpush @section('page-content')
{{ __("Employee Profile") }}
User Image

{{ $user->fullname }}

@if (!empty($employee->department_id))
{{ $employee->department->name ?? '' }}
@endif @if (!empty($employee->designation_id)) {{ $employee->designation->name ?? '' }} @endif @if (!empty($employee->emp_id))
{{ __('Employee ID') }} : {{ $employee->emp_id ?? '' }}
@endif @if (!empty($employee->date_joined))
{{ __('Date of Join') }} : {{ format_date($employee->date_joined) }}
@endif
    @if (!empty($user->phone))
  • {{ __('Phone') }}:
  • @endif @if (!empty($user->email))
  • {{ __('Email') }}:
    {{ $user->email }}
  • @endif @if (!empty($user->address))
  • {{ __('Address') }}:
    {{ $user->address }}
  • @endif @if (!empty($employee->dob))
  • {{ __('Date Of Birth') }}:
    {{ format_date($user->dob) }}
  • @endif @if (!empty($user->gender))
  • {{ __('Gender') }}:
    {{ $user->gender }}
  • @endif

{{ __('Personal Informations') }}

    @if (!empty($employee->passport_no))
  • {{ __('Passport No.') }}
    {{ $employee->passport_no }}
  • @endif @if (!empty($employee->passport_expiry_date))
  • {{ __('Passport Exp Date.') }}
    {{ format_date($employee->passport_expiry_date) }}
  • @endif @if (!empty($employee->passport_tel))
  • {{ __('Tel') }}
    {{ $employee->passport_tel }}
  • @endif @if (!empty($employee->nationality))
  • {{ __('Nationality') }}
    {{ $employee->nationality }}
  • @endif @if (!empty($employee->religion))
  • {{ __('Religion') }}
    {{ $employee->religion }}
  • @endif @if (!empty($employee->marital_status))
  • {{ __('Marital status') }}
    {{ $employee->marital_status }}
  • @endif @if (!empty($employee->spouse_occupation))
  • {{ __('Employment of spouse') }}
    {{ $employee->spouse_occupation }}
  • @endif @if (!empty($employee->no_of_children))
  • {{ __('No. of children') }}
    {{ $employee->no_of_children }}
  • @endif

{{ __('Emergency Contact') }}

{{ __('Primary') }}
@php $primary_contact = $employee->emergency_contacts['primary'] ?? null; $secondary_contact = $employee->emergency_contacts['secondary'] ?? null; @endphp @if (!empty($primary_contact))
  • {{ __('Name') }}
    {{ $primary_contact['name'] }}
  • {{ __('Relationship') }}
    {{ $primary_contact['relationship'] }}
  • {{ __('Phone') }}
    {{ $primary_contact['phone'] }}
  • {{ __('Address') }}
    {{ $primary_contact['address'] }}
@endif @if (!empty($secondary_contact))
{{ __('Secondary') }}
  • Name
    {{ $secondary_contact['name'] }}
  • Relationship
    {{ $secondary_contact['relationship'] }}
  • Phone
    {{ $secondary_contact['phone'] }}
@endif

{{ __('Education Informations') }}

    @if(!empty($employee->education) && $employee->education->count() > 0) @foreach ($employee->education as $education)
  • {{$education->institution}}
    {{ $education->course }}
    {{ $education->start_date }} - {{ $education->end_date }} @if (!empty($education->file)) {{ __('View File') }} @endif
  • @endforeach @endif

{{ __('Work Experience') }}

    @if (!empty($employee->workExperience)) @foreach ($employee->workExperience as $experience)
  • {{ $experience->position .__(" At "). $experience->company}} {{ format_date($experience->start_date) }} - {{ format_date($experience->end_date) }} ({{ $experience->dateDifference }}) @if (!empty($experience->file)) {{ __('View File') }} @endif
  • @endforeach @endif

{{ __('Family Informations') }}

@if ($user->has('family')) @foreach ($user->family as $member) @if (!empty($member->picture)) @else @endif {{ __('Edit') }} {{ __('Delete') }} @endforeach @endif
{{ __('Name') }} {{ __('Relationship') }} {{ __('Date of Birth') }} {{ __('Phone') }} {{ __('Action') }}
{!! Spatie\Menu\Laravel\Html::userAvatar($member->name, !empty($member->picture) ? uploadedAsset($member->picture,'family-members'): Vite::asset('resources/assets/img/user.jpg')) !!} {{ $member->name }}{{ $member->relationship }} {{ format_date($member->dob) }} {{ $member->phone }}
@superadmin

{{ __('Basic Salary Information') }}

@csrf
{{ LocaleSettings('currency_symbol') }}
@if (!empty(SalarySettings('enable_esi_fund')))

{{ __('PF Information') }}

@endif @if (!empty(SalarySettings('enable_esi_fund')))

{{ __('ESI Information') }}

@endif
@endsuperadmin
@endsection