@extends('layouts.admin') @section('page-title') {{ __('Role') }} @endsection @section('title') {{ __('Role') }} @endsection @section('breadcrumb') @endsection @section('action-btn') @can('create role')
@endcan @endsection @section('breadcrumb') @endsection @section('content')
@foreach ($roles as $role) @endforeach
{{__('Role')}} {{__('Permissions')}} {{__('Action')}}
{{ ucfirst($role->name)}} @foreach($role->permissions()->pluck('name') as $permissionName) {{$permissionName}} @endforeach @can('edit role')
@endcan @can('delete role')
{!! Form::open(['method' => 'DELETE', 'route' => ['roles.destroy', $role->id],'id'=>'delete-form-'.$role->id]) !!} {!! Form::close() !!} @endcan
@endsection @push('script-page') @endpush