@extends('modularcms::layouts.main')
@include('modularcms::layouts.partials.body-tag')


@section('content')

    <div class="row">
        <div class="col-md-12">
            <!-- BEGIN SAMPLE FORM PORTLET-->
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption font-{{ Sartoric\ModularCms\Models\Setting::appsetting('app-main-color') }}">
                        <i class="icon-pencil font-{{ Sartoric\ModularCms\Models\Setting::appsetting('app-main-color') }}"></i>
                        <span class="caption-subject bold uppercase"> {{ __('Crea Permesso') }}</span>
                    </div>
                </div>
                <div class="portlet-body form">
                    <form role="form" class="login-form form-horizontal" method="post" action="{{ action('\Sartoric\ModularCms\Controllers\Layouts\PermissionController@store') }}">
                        {{ csrf_field() }}

                        @include('modularcms::layouts.permissions.partials.formfields')

                        <div class="form-actions">
                            <div class="row">
                                <div class="col-md-offset-2 col-md-10">
                                    <button type="submit" class="btn {{ Sartoric\ModularCms\Models\Setting::appsetting('app-main-color') }}">{{ __('Salva') }}</button>
                                </div>
                            </div>
                        </div>

                    </form>
                    @include('modularcms::layouts.partials.errors')
                </div>
            </div>
            <!-- END SAMPLE FORM PORTLET-->
        </div>
    </div>
@endsection
