@extends('layouts.app') @section('content')

Manajemen Roles

@if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif
@if ($roles->isEmpty())
Belum ada role. Buat role baru
@else
@foreach ($roles as $role) @endforeach
Nama Role Slug Deskripsi Jumlah User Dibuat Aksi
{{ $role->name }} @if($role->isProtected()) Sistem @endif {{ $role->slug }} {{ $role->description ?? '-' }} {{ $role->users->count() }} {{ $role->created_at->format('d M Y') }} isProtected()) disabled @endif> Edit @if(!$role->isProtected())
@csrf @method('DELETE')
@endif
@endif
@endsection