@extends('adminlte::page') @section('title', 'Departments & Positions') @include('partials.ui-polish') @section('css') @stop @section('content_header')

Departments & Positions

Maintain the HR structure used by employee records and reports
Employees
@stop @section('content') @if(session('success')) {{ session('success') }} @endif @if($errors->any()) @endif
@if(count($orgChart))
    @foreach($orgChart as $node) @include('hrm.structure.partials.org-node', ['node' => $node]) @endforeach
@else
Add employees and assign supervisors to draw the reporting hierarchy.
@endif
@csrf {{ old('description') }}
@forelse($departments as $department) @empty @endforelse
Name Code Positions Employees Action
@if($department->description)
{{ $department->description }}
@endif
{{ $department->code ?: '-' }} {{ $department->positions_count }} {{ $department->employees_count }}
No departments found.
@csrf
@foreach($departments as $department) @endforeach
{{ old('description') }}
@forelse($positions as $position) @empty @endforelse
Title Department Grade Employees Action
{{ $position->title }} @if($position->description)
{{ $position->description }}
@endif
{{ $position->department->name ?? 'Unassigned' }} {{ $position->grade ?: '-' }} {{ $position->employees_count }}
No positions found.
@foreach($departments as $department)
@csrf @method('PUT') {{ old('description', $department->description) }}
@csrf @method('DELETE')
@endforeach @foreach($positions as $position)
@csrf @method('PUT') @foreach($departments as $department) @endforeach {{ old('description', $position->description) }}
@csrf @method('DELETE')
@endforeach @stop