{{-- 文件功能:后台职务管理页面 按部门分组展示所有职务,支持新增/编辑/删除职务 编辑时可通过多选框配置该职务可任命的目标职务列表(任命白名单) @author ChatRoom Laravel @version 1.0.0 --}} @extends('admin.layouts.app') @section('title', '职务管理') @section('content')
| 图标 | 职务名 | 位阶 | 等级 | 人数上限 | 当前在职 | 奖励上限 | 任命权 | @php $superLvl = (int) \App\Models\Sysparam::getValue('superlevel', '100'); @endphp @if (Auth::user()->user_level >= $superLvl)操作 | @endif
|---|---|---|---|---|---|---|---|---|
| {{ $pos->icon }} | {{ $pos->name }} | {{ $pos->rank }} | Lv.{{ $pos->level }} | {{ $pos->max_persons ?? '不限' }} | {{ $pos->active_user_positions_count }} 人 | {{ $pos->max_reward ? number_format($pos->max_reward) . '金币' : '不限' }} | @if (count($appointableIds) > 0) {{ count($appointableIds) }} 个职务 @else 无 @endif | @php $superLvl = (int) \App\Models\Sysparam::getValue('superlevel', '100'); @endphp @if (Auth::user()->user_level >= $superLvl) @endif @if (Auth::id() === 1) @endif |
| 该部门暂无职务 | ||||||||