@extends('layouts.admin') @section('title') Roles @endsection @section('content')

Roles List

@if (Auth::user()->can('role.create'))  Create Role @endif
@if (Auth::user()->can('role.edit') || Auth::user()->can('role.delete')) @endif @if(count($roles) != 0) @foreach ($roles as $role) @endforeach @else @endif
SL Name PermissionAction
{{ $loop->index+1 }} {{ ucwords($role->name) }} @foreach ($role->permissions as $item) {{ $item->name }} @endforeach @if (Auth::user()->can('role.edit')) @endif @if (Auth::user()->can('role.delete'))
@method('DELETE') @csrf
@endif
Nothing Found.
{{ $roles->links() }}
@endsection