@extends('layouts.admin') @section('pageTitle',__('default.role').': '.$role->name) @section('innerTitle',__('default.role').': '.$role->name) @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.roles.index')=>__lang('roles'), '#'=>__lang('show') ]]) @endsection @section('content')
{{ method_field('DELETE') }} {{ csrf_field() }}


@lang('default.name') {{ $role->name }}

@lang('default.permissions')

@foreach(\App\PermissionGroup::orderBy('sort_order')->get() as $group) @if($role->permissions()->where('permission_group_id',$group->id)->count()>0)
@lang('default.'.$group->name)
    @foreach($group->permissions as $permission) @if($role->permissions()->find($permission->id))
  • @lang('perm.'.$permission->name)
  • @endif @endforeach
@endif @endforeach
@endsection