@extends('layouts.app') @section('title', 'Onboard Employee') @section('breadcrumbs') @endsection @section('content')

Onboard New Employee

Fill in the employee details across all sections

@csrf {{-- Section 1: Personal Information --}}

Auto-generated

@error('first_name')

{{ $message }}

@enderror
@error('last_name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
{{-- Section 2: Employment Details --}}
@error('department_id')

{{ $message }}

@enderror
@error('designation_id')

{{ $message }}

@enderror
@error('joining_date')

{{ $message }}

@enderror
{{-- Section 3: Banking Details --}}
{{-- Section 4: Emergency Contacts --}}
{{-- Section 5: Documents --}}
{{-- Section 6: Custom Fields --}} @if($customFields->isNotEmpty())
@foreach($customFields->flatten() as $field)
@if($field->field_type === 'select') @elseif($field->field_type === 'textarea') @elseif($field->field_type === 'checkbox') @else id}") }}" class="form-input" {{ $field->is_required ? 'required' : '' }} placeholder="{{ $field->placeholder }}"> @endif
@endforeach
@endif {{-- Submit --}}
Cancel
@push('scripts') @endpush @endsection