@extends('layouts.app') @section('content')

Edit Department

{{ $company->name }} - {{ $department->name }}

Back to Departments
Department Information
@csrf @method('PUT') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(session('success'))
{{ session('success') }}
@endif
Debug: Form Action: {{ route('companies.hr.departments.update', [$company, $department]) }}
Company ID: {{ $company->id }}, Department ID: {{ $department->id }}
@error('name')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
@error('description')
{{ $message }}
@enderror Optional: Describe the department's purpose and responsibilities
Cancel
Department Statistics

{{ $department->positions()->count() }}

Positions

{{ $department->employees()->count() }}

Employees
Tips
  • Use clear, descriptive names for departments
  • Departments help organize employees and positions
  • Inactive departments won't appear in employee forms
  • @if($department->employees()->count() > 0)
  • This department has employees assigned
  • @endif
@endsection