@extends('template.app') @section('title', 'Role') @push('css') @endpush @section('content')
@if(Auth::user()->hasRole('superadmin')) Add New Role @endif
ROLE
{{ $roles->count() }}
{{-- --}} @foreach ($roles as $key=>$role) @if(!Auth::user()->hasRole('superadmin')) @if ($loop->first) @continue @endif @endif {{-- --}} @endforeach {{-- --}}
Serial Name Permissions Created Actions
{{ $loop->iteration }} {{ $role->name }} @foreach ($role->permissions as $rolePermission) {{ $rolePermission->name }} @endforeach {{ $role->created_at->toDayDateTimeString() }} edit
Serial Name Permissions Created Actions
@endsection @push('js') @endpush