{{ __('employee_details') }} - {{$employee->name}}

@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif @php $now = \Carbon\Carbon::now(); $contractEnded = $employee->contract_end_date && \Carbon\Carbon::parse($employee->contract_end_date)->lt($now); $probationEnded = $employee->is_on_probation && $employee->probation_end_date && \Carbon\Carbon::parse($employee->probation_end_date)->lt($now); $employeeRole = $employee->roles->first(); $isEmployeeRole = $employeeRole && $employeeRole->id < 8; @endphp @if($contractEnded)
{{ __('Contract Expired') }} - {{ __('The contract expired on') }} {{ \Carbon\Carbon::parse($employee->contract_end_date)->format('Y-m-d') }}
@endif @if($probationEnded)
{{ __('Probation Period Ended') }} - {{ __('The probation period ended on') }} {{ \Carbon\Carbon::parse($employee->probation_end_date)->format('Y-m-d') }}
@endif @if(!$employee->job_number && $isEmployeeRole)
{{ __('This employee does not have a job number yet.') }}
@endif

{{ __('Are you sure?') }}

{{ __('This action cannot be undone.') }}

{{ __('Extend Contract') }}

@error('extensionDays') {{ $message }} @enderror
{{-- المحتويات لكل تبويب --}} @if($tab === 'basic')
@if (session()->has('password_message'))
{{ session('password_message') }}
@endif
@can('employees edit') @if(!$employee->job_number && $employeeRole) @else {{-- --}} {{-- {{ __('Remove Job Number') }}--}} {{-- --}} {{-- --}} @endif @if($isEmployeeRole) @endif @if($isEmployeeRole) @endif {{-- --}} @endcan
@include('livewire.employee.tabs.basic')
@endif @if($tab === 'tasks') @can('tasks show')
@endcan @endif @if($tab === 'notifications')
@endif @if($tab === 'summary')
@include('livewire.employee.tabs.summary')
@endif @if($tab === 'salary') @can('payslips show')
@include('livewire.employee.tabs.salary')
@endcan @endif @if($tab === 'attendances') @can('attendances show')
@endcan @endif @if($tab === 'documents') @can('documents show')
@endcan @endif @if($tab === 'leaves') @can('leaves show')
@endcan @endif @if($tab === 'violations') @can('violations show')
@endcan @endif @if($tab === 'deputations') @can('deputations show')
@endcan @endif @if($tab === 'permission-requests') @can('permissions show')
@endcan @endif @if($tab === 'attendance-requests') @can('attendance-requests show')
@endcan @endif @if($tab === 'custodies') @can('custodies show')
@endcan @endif @if($tab === 'advances') @can('advances show')
@endcan @endif @if($tab === 'overtimes') @can('overtimes show')
@endcan @endif @if($tab === 'purchases') @can('purchases show')
@endcan @endif @if($tab === 'absences') @can('absences show')
@endcan @endif