{{__('hr_messages.Manage employees')}}
@can("add employees") @livewire("add-button-component",["link_route" => "/hr/management/employees/create/personal_info","value" => __('hr_messages.Add Employee')]) @endcan
  • {{__('hr_messages.Personal into')}}
    gender
    military_status
    social_status_type_id @foreach(\App\Models\SocialStatusType::all() as $social_status_type) @endforeach
    nationality_id @foreach(\App\Models\Nationality::all() as $nationality) @endforeach
    religion_id @foreach(\App\Models\Religion::all() as $religion) @endforeach
    personal_id_type_id @foreach(\App\Models\PersonalIdType::all() as $personal_id_type) @endforeach
    {{__('messages.Contacts')}}
    @foreach(\App\Models\ContactType::all() as $ct)
    @endforeach
    {{trans_choice('hr_messages.contract',1)}}
    job_type_id @foreach(\App\Models\JobType::all() as $type) @endforeach
    contract_type_id @foreach(\App\Models\ContractType::all() as $contract_type) @endforeach
    hours_per
    days_per
    employee_status_id @foreach(\App\Models\EmployeeStatus::all() as $employee_status) @endforeach
    {{__('hr_messages.job info')}}
    country_id getCities() @forelse(\App\Models\Country::all() as $country) @empty @endforelse
    city_id @foreach($cities as $city) @endforeach
    job_id @foreach(\App\Models\Job::all() as $job) @endforeach
    department_id @foreach(\App\Models\Department::all() as $department) @endforeach
    supervisor_id @foreach(\App\Models\Employee::all() as $supervisor) @endforeach
    {{__('hr_messages.Official Job ')}}
    official_job_id @foreach(\App\Models\Job::where('is_official' ,1)->get() as $job) @endforeach
    official_company_id @foreach(\App\Models\Company::where('is_official', 1)->get() as $company) @endforeach
    {{__('hr_messages.Education')}}
    graduation_year @for($i = 1990; $i <= 2022; $i++) @endfor
    education_id @foreach(\App\Models\Education::all() as $education) @endforeach
    {{__('messages.Created At')}}
    {{__('hr_messages.hire_date')}}
@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif # {{__('messages.Name')}} {{__('hr_messages.Department ')}} {{__('messages.Status')}} {{__('hr_messages.file_number')}} {{__('hr_messages.job')}} {{__('messages.gender')}} {{__('messages.Updated By')}} {{__('messages.Created At')}}   @forelse ($employees as $key =>$employee) #{{$employees->firstItem() + $key}} {{__('messages.Name')}} {{$employee->name}} {{__('hr_messages.Department ')}}{{($employee->department_id)?$employee->department->name:null}} {{__('messages.Status')}}{{($employee->employee_status_id)?$employee->employee_status->name:null}} {{__('hr_messages.file_number')}}{{$employee->file_number}} {{__('hr_messages.job')}} {{($employee->job_id)?$employee->job->name : "-"}} {{__('messages.gender')}}{{$employee->gender}} {{__('messages.Updated By')}}{{($employee->last_updated_by)?$employee->last_updated_by_user->name:"-"}} {{__('messages.Created At')}}{{($employee->created_at)?$employee->created_at:""}}
@can("delete employees") {{trans_choice('hr_messages.employee' , 1)}} {{$employee->name}} {{$employee->id}} @endcan
@empty {{__('messages.Empty Result')}} @endforelse
{{$employees->links()}}