@extends('layouts.main') @section('title') {{ __('Create New Role') }} @endsection @section('content')
{!! Form::open(['route' => 'roles.store', 'method' => 'POST','class'=>'create-form','data-success-function'=>'successFunction']) !!}
{!! Form::text('name', null, ['placeholder' => 'Name', 'class' => 'form-control']) !!}
    @foreach ($groupedPermissions as $groupName=>$groupData)
  • {{ucwords(str_replace("-"," ",$groupName))}} @foreach ($groupData as $key=>$permission)
    • {{ucfirst($permission->short_name)}}
    @endforeach @endforeach
{{--
--}} {{-- --}} {{--
--}} {{-- @foreach ($groupedPermissions as $group)--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- @endforeach--}} {{--
--}} {{--
--}}
{!! Form::close() !!}
@endsection @section('js') @endsection