@extends('layout.super-admin-two') @section('title', 'Delete Organizational Unit') @section('content') {{-- Breadcrumb --}}
{{-- Critical Warning --}} {{-- Unit Information Card --}}
Unit to be deleted
Name

{{ $station->station_name }}

Type

{{ $station->stationType->shortcode }}
{{ $station->stationType->name }}

Short Name

{{ $station->names()->first()?->shortname ?? 'N/A' }}

Hierarchy

{{ $station->getHierarchyPath() }}

{{-- Children Warning --}} @if($station->hasChildren())
This unit has child stations!

Deleting {{ $station->station_name }} will also permanently delete:

{{ $station->getChildCount() }} Direct Child Unit(s)
These will be deleted along with all their descendants
Child units:
@foreach($station->children()->with('stationType', 'names')->get() as $child) @endforeach
Name Type Children
{{ $child->station_name }}
{{ $child->names()->first()?->shortname }}
{{ $child->stationType->shortcode }} @if($child->hasChildren()) {{ $child->getChildCount() }} @else — @endif
@else @endif {{-- Confirmation Input --}}
Type "DELETE" to confirm

To prevent accidental deletion, please type "DELETE" below to confirm:

You must type exactly "DELETE" (case-sensitive) to confirm this action.
{{-- Action Buttons --}}
Cancel
{{-- Info Box --}}
Important Information
  • This deletion is permanent and cannot be recovered
  • All child stations will be automatically deleted
  • All associated data and records will be removed
  • A deletion record will be logged for audit purposes
@endsection