{{-- 文件功能:后台部门管理页面 提供部门的新增、编辑、删除功能,展示每个部门的职务数量 @author ChatRoom Laravel @version 1.0.0 --}} @extends('admin.layouts.app') @section('title', '部门管理') @section('content')
{{-- 头部 --}}

部门管理

管理聊天室部门架构,设置位阶、颜色与描述

📋 职务管理 → @if (Auth::id() === 1) @endif
{{-- 部门卡片列表 --}}
@foreach ($departments as $dept)
{{ $dept->name }} 位阶 {{ $dept->rank }}
职务数量 {{ $dept->positions_count }} 个
排序 {{ $dept->sort_order }}
@if ($dept->description)

{{ $dept->description }}

@endif
@php $superLvl = (int) \App\Models\Sysparam::getValue('superlevel', '100'); @endphp @if (Auth::user()->user_level >= $superLvl)
@if (Auth::id() === 1)
@csrf @method('DELETE')
@endif
@endif
@endforeach
@if ($departments->isEmpty())

暂无部门,点击右上角「新增部门」创建

@endif {{-- 新增/编辑弹窗 --}}
@endsection