@extends('layouts.app') @section('title', 'Edit ' . $employee->full_name) @section('breadcrumbs') @endsection @section('content')

Edit Employee

{{ $employee->full_name }} ({{ $employee->employee_code }})

@csrf @method('PUT') {{-- Personal Information --}}
@error('first_name')

{{ $message }}

@enderror
@error('last_name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@if($employee->profile_photo)

Current photo will be kept if no new photo is uploaded.

@endif
{{-- Employment Details --}}
@error('department_id')

{{ $message }}

@enderror
@error('designation_id')

{{ $message }}

@enderror
@error('joining_date')

{{ $message }}

@enderror
{{-- Custom Fields --}} @if($customFields->isNotEmpty())
@foreach($customFields->flatten() as $field)
@if($field->field_type === 'select') @elseif($field->field_type === 'textarea') @else @endif
@endforeach
@endif {{-- Submit --}}
Cancel
@endsection