@extends('layout.app') @section('title', 'Edit Employee') @push('header_script') @endpush @section('content')
{!! Form::open([ 'route' => ['employee.update', $employeeData->id], 'id' => 'employeeForm', 'method' => 'put', 'autocomplete' => 'off', 'files' => true, 'class' => 'row g-3 needs-validation' ]) !!}
1. Personal Info

{!! Form::select('emp_type', ['' => '--Select--', 'employee' => 'Employee', 'driver' => 'Driver'], old('emp_type', $employeeData->emp_type), ['class' => 'form-control select2', 'id' => 'emp_type', 'required']) !!}
{!! Form::select('blood_group', ['' => '--Select--', 'A+' => 'A+', 'A-' => 'A-', 'B+' => 'B+', 'B-' => 'B-', 'AB+' => 'AB+', 'AB-' => 'AB-', 'O+' => 'O+', 'O-' => 'O-'], old('blood_group', $employeeData->blood_group), ['class' => 'form-control select2']) !!}
@if ($employeeData->emp_img && $employeeData->emp_img != asset('storage')) View Current Image @endif
3. Employment Details

{!! Form::select('driver_status', ['Unassigned' => 'Unassigned', 'Assigned' => 'Assigned', 'On Leave' => 'On Leave', 'Inactive' => 'Inactive'], old('driver_status', $employeeData->driver_status ?? 'Unassigned'), ['class' => 'form-control select2']) !!}
Document Uploads (Optional)
@if(isset($employeeData->documents) && count($employeeData->documents) > 0) @foreach($employeeData->documents as $doc) @endforeach @else @endif
Document Type File
@if($doc->doc_img) View Current @endif
Cancel
{!! Form::close() !!}
@endsection @push('footer_script') @endpush