@extends('layouts.app') @section('title', 'Admin — Role Pool') @section('content')
Role Pool Config Kelola Moderator
{{-- Flash --}} @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@endif
{{-- Tabel Role Pool --}}
Daftar Role Pool
@if($roles->isEmpty())

Belum ada role terdaftar. Tambahkan lewat form di samping.

@else @foreach($roles as $role) @endforeach
Role ID Nama Role Job Prioritas
{{ $role->role_id }} {{ $role->role_name }} @php $jobColors = [ 'doj' => 'badge-approved', 'leo' => 'badge-ongoing', 'government' => 'badge-warning', 'civilian' => 'badge-closed', ]; @endphp {{ strtoupper($role->job) }} {{ $role->priority }}
@csrf @method('DELETE')
@endif

Jika user punya beberapa role terdaftar, job dengan prioritas tertinggi yang dipakai.

{{-- Form Tambah --}}
Tambah Role
@csrf
Salin dari Discord Server Settings → Roles.
Makin besar = lebih diprioritaskan (contoh: doj=10, leo=5).
@endsection