@extends('backEnd.master') @section('title') @lang('hr.edit_staff') @endsection @section('css') @endsection @section('mainContent') {{-- {{dd($work_experience)}} --}}
@if (Illuminate\Support\Facades\Config::get('app.app_sync')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'admin-dashboard', 'method' => 'GET', 'enctype' => 'multipart/form-data']) }} @else {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'staffUpdate', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif

@lang('hr.edit_staff')

@if (Illuminate\Support\Facades\Config::get('app.app_sync')) @else @endif
@if (in_array('staff_no', $has_permission))
@if ($errors->has('staff_no')) {{ $errors->first('staff_no') }} @endif
@endif @if (in_array('role', $has_permission))
@if ($errors->has('role_id')) {{ $errors->first('role_id') }} @endif
@endif @if (in_array('department', $has_permission))
@if ($errors->has('department_id')) {{ $errors->first('department_id') }} @endif
@endif @if (in_array('designation', $has_permission))
@if ($errors->has('designation_id')) {{ $errors->first('designation_id') }} @endif
@endif @if (in_array('first_name', $has_permission))
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@endif @if (in_array('last_name', $has_permission))
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@endif @if (in_array('fathers_name', $has_permission))
@if ($errors->has('fathers_name')) {{ $errors->first('fathers_name') }} @endif
@endif @if (in_array('mothers_name', $has_permission))
@if ($errors->has('mothers_name')) {{ $errors->first('mothers_name') }} @endif
@endif @if (in_array('email', $has_permission))
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@endif @if (in_array('gender', $has_permission))
@if ($errors->has('gender_id')) {{ $errors->first('gender_id') }} @endif
@endif @if (in_array('date_of_birth', $has_permission))
{{ $errors->first('date_of_birth') }}
@endif @if (in_array('date_of_joining', $has_permission))
{{ $errors->first('date_of_joining') }}
@endif @if (in_array('mobile', $has_permission))
@if ($errors->has('mobile')) {{ $errors->first('mobile') }} @endif
@endif @if (in_array('marital_status', $has_permission))
@endif @if (in_array('emergency_mobile', $has_permission))
@if ($errors->has('emergency_mobile')) {{ $errors->first('emergency_mobile') }} @endif
@endif @if (in_array('driving_license', $has_permission))
@if ($errors->has('driving_license')) {{ $errors->first('driving_license') }} @endif
@endif @if (in_array('staff_photo', $has_permission))
@if ($errors->has('upload_event_image')) {{ $errors->first('upload_event_image') }} @endif
@endif
show_public == 1 ? 'checked' : '' }}>
show_public == 0 ? 'checked' : '' }}>
@if (in_array('current_address', $has_permission))
@if ($errors->has('current_address')) {{ $errors->first('current_address') }} @endif
@endif @if (in_array('permanent_address', $has_permission))
@if ($errors->has('permanent_address')) {{ $errors->first('permanent_address') }} @endif
@endif @if (in_array('qualifications', $has_permission))
@if ($errors->has('qualification')) {{ $errors->first('qualification') }} @endif
@endif @if (in_array('experience', $has_permission))
@if ($errors->has('experience')) {{ $errors->first('experience') }} @endif
@endif @if (moduleStatusCheck('Lms'))
@if (in_array('staff_bio', $has_permission))
@if ($errors->has('staff_bio')) {{ $errors->first('staff_bio') }} @endif
@endif
@endif
@php $groupedSlots = $slots_emp->groupBy('slot_day'); @endphp @foreach ($groupedSlots as $day => $slots)
{{ $day }}
@foreach ($slots as $slot)
id, $selectedSlots)) checked @endif>
@endforeach
@endforeach
@if (in_array('epf_no', $has_permission))
@if ($errors->has('role_type')) {{ $errors->first('role_type') }} @endif
@if ($errors->has('epf_no')) {{ $errors->first('epf_no') }} @endif
@endif {{--
--}}
@if (in_array('basic_salary', $has_permission))
@if ($errors->has('basic_salary')) {{ $errors->first('basic_salary') }} @endif
@endif @if (in_array('contract_type', $has_permission))
@endif {{-- @if (in_array('location', $has_permission))
@if ($errors->has('location')) {{ $errors->first('location') }} @endif
@endif --}}
@if (in_array('bank_account_name', $has_permission))
@endif @if (in_array('bank_account_no', $has_permission))
@endif @if (in_array('bank_name', $has_permission))
@endif @if (in_array('bank_brach', $has_permission))
@endif
@if (in_array('resume', $has_permission))
@if ($errors->has('upload_event_image')) {{ $errors->first('upload_event_image') }} @endif
@endif @if (in_array('joining_letter', $has_permission))
@if ($errors->has('joining_letter')) {{ $errors->first('joining_letter') }} @endif
@endif @if (in_array('other_document', $has_permission))
@if ($errors->has('other_document')) {{ $errors->first('other_document') }} @endif
@endif
{{-- Custom Field Start --}} @if (in_array('custom_fields', $has_permission) && isMenuAllowToShow('custom_field') && count($custom_fields) > 0) @include('backEnd.studentInformation._custom_field') @endif {{-- Custom Field End --}}
@error('cat_id') {{ $message }} @enderror
@error('track_type_id') {{ $message }} @enderror
@error('track_id') {{ $message }} @enderror
@lang('academics.levels')
@foreach ($track_assigned_staff as $assigned) @php // Get the levels for this specific track $selectedLevels = explode( ',', $assigned->levels, ); // Ensure $assigned->track is not null before accessing level_number $track = $assigned->track; $trackLevels = $track ? range(1, $track->level_number) : []; @endphp
@if ($track) {{ app()->getLocale() == 'en' ? $track->track_name_en : $track->track_name_ar }} @else @lang('academics.track_not_found') @endif
@foreach ($trackLevels as $level)
@endforeach
@endforeach
@lang('common.university')/@lang('common.institute')
@lang('common.degree')/@lang('common.diploma')
@lang('common.major')/@lang('common.specialization')
@lang('common.date_of_completion')
@lang('common.additional_notes')
@lang('common.action')
@if (isset($education) && count($education) > 0) @foreach ($education as $index => $item)
@if ($index == 0) @else @endif
@endforeach @else
@endif
@lang('common.company_name')
@lang('common.title')
@lang('common.from')
@lang('common.to')
@lang('common.action')
@if (isset($work_experience) && count($work_experience) > 0) @foreach ($work_experience as $index => $work)
@if ($index == 0) @else @endif
@endforeach @else
@endif
{{ Form::close() }}
@endsection @include('backEnd.partials.date_picker_css_js') @section('script') @endsection @push('script') @endpush