@extends('layouts.app') @section('title', 'Approval Hierarchy ยท ' . config('app.name')) @section('page-title', 'Approval Hierarchy') @section('content')
Approval Hierarchy
The draft → sign-off chain a document follows for this department.
@if($departments->isNotEmpty())
@endif @if($department) Add Stage @endif
@if(! $department)

No department to show yet.

@elseif($stages->isEmpty())

No hierarchy configured for {{ $department->name }} yet. Add the first stage (e.g. the person who drafts the document) to get started.

@else
@foreach($stages as $stage)
Stage {{ $loop->iteration }}
{{ $stage->name }}
@foreach($stage->designations as $designation) {{ $designation->name }} @endforeach
@csrf @method('DELETE')
@unless($loop->last)
@endunless @endforeach
@endif
@if($department)

This is used on the Upload Document page: staff holding one of a stage's designations are grouped and shown in this order, with a checkbox to pick who fills that stage for a given document.

@endif @endsection