@extends('user::layouts.master') @section('content')

Manage Role Permissions

@include('layouts.flash.alert')

Permissions List

{!! Form::open(array('route' => array('permissions.update'),'id'=>'permission')) !!}
*
@php $privious_value = ''; $i=0; foreach($permissions as $permission){ $newPermission[$permission->module][$i]=$permission; $i++; } @endphp
@foreach($newPermission as $key=> $newpermission) @foreach($newpermission as $permission) @endforeach @endforeach
Section Read Write
{{$key }}
id, $permissionsIds))?'':'checked'}}>
@php $privious_value = $permission->module; @endphp
@if(Auth::user()->roles->first()->slug =='super_admin')
{{Form::label('default_permission', 'Set Permission')}} {!!Form::select('default_permission', ['0'=>'Set Custom Company Permission','1'=>'Reset Default Permission'], $is_default, ['class' => 'form-control'])!!}
@endif
{{ Form::close() }}
@stop @push('scripts') @endpush