@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 $permission)
    • {{ __(ucfirst($permission->short_name)) }}
    @endforeach
  • @endforeach
{{--
--}} {{-- --}} {{--
--}} {{-- @foreach ($groupedPermissions as $group)--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- @endforeach--}} {{--
--}} {{--
--}}
{!! Form::close() !!}
@endsection @section('js') @endsection