@extends('layouts.main') @section('title', 'Role') @section('content') @include('layouts.components.alert-prompt') @if (auth()->user()->role_id == 1)
@forelse ($roles as $data_role) @empty @endforelse
No Nama Role Deskripsi Action
{{ $i++ }} {{ optional($data_role)->name }} {{ optional($data_role)->description }}
@csrf @method('DELETE')
Data Kosong
@if (!$roles->isEmpty())

Showing {{ $roles->firstItem() }} to {{ $roles->lastItem() }} of {{ $roles->total() }} entries

@endif
@if ($roles->total() > $roles->perPage()) @endif
@else @include('pages.user.Master_Data.Role.index') @endif @foreach ($roles as $data) @endforeach @endsection