@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content') @php $errorKeys = array_keys($errors->getMessages()); $stepErrorMatchers = [ 'personal-info-vertical' => [ 'user_type', 'card_no', 'first_name', 'middle_name', 'last_name', 'employee_code', 'email', 'mobile', 'password', 'password_confirmation', 'rfid_no', 'cost_center' ], 'account-details-vertical' => [ 'department_id', 'sub_department_id', 'subdepartments', 'designation_id', 'zone_id', 'premises', 'work_station_id', 'category_id', 'grade_id', 'company_code_id', 'company_pf_code_id', 'date_of_joining', 'date_of_leaving', 'group_joining_date', 'employee_group_id', 'manager_id', 'functional_manager_id', 'valid_from', 'valid_to', 'guarantor_id', 'contractor_id', 'workman_identity_type', 'workman_identity', 'no_of_shares', 'notice_period', ], 'location-shift-vertical' => [ 'geo_address', 'temporary_geo_address', 'pin_code', 'location_id', 'sublocations', 'shift_id', 'weekly_off', 'ot_applicable', 'attendance_relaxation', 'late_grace_time', 'early_going_grace_time', 'overtime_grace_time', 'attendance_capture_scheme', 'attendance_process_from_date', 'parent_area_id', 'area_id', ], 'user-setting-vertical' => [ 'allow_login', 'reporting_to', 'role_id', 'status', 'device_password', 'ess_password', 'permission_scheme', 'training_given', 'training_date', 'training_type', 'training_user_type', 'training_external_name', 'training_external_email', ], 'identity-bank-vertical' => [ 'aadhar_no', 'pan_no', 'uan_no', 'esic_no', 'driving_license_no', 'voter_id_no', 'passport_no', 'bank_name', 'branch_name', 'ifsc_code', 'account_no', 'name_as_bank_account', ], 'emergency-contact-vertical' => [ 'emergency_contact_person_name', 'emergency_contact_person_mobile', 'emergency_contact_person_relation', 'emergency_contact_person_address', ], 'nominee-family-details-vertical' => [ 'nominees.', 'families.', ], 'other-details-vertical' => [ 'experiences.', 'languages.', 'skills.', 'reference.', ], 'assets-details-vertical' => [ 'assets.', ], 'education-details-vertical' => [ 'educations.', ], 'images-vertical' => [ 'image', ], ]; $stepHasErrors = []; foreach ($stepErrorMatchers as $stepId => $matchers) { $stepHasErrors[$stepId] = collect($errorKeys)->contains(function ($key) use ($matchers) { foreach ($matchers as $matcher) { if ($key === $matcher || str_starts_with($key, $matcher)) { return true; } } return false; }); } @endphp @if (\Session::has('status'))
Fatal error: Uncaught Error: Class "Session" not found in /var/www/html/thepresence360/resources/views/employee/create_edit.blade.php:194 Stack trace: #0 {main} thrown in /var/www/html/thepresence360/resources/views/employee/create_edit.blade.php on line 194