@extends('layouts.backend') @section('title', '| Create Permission') @section('content')
@if (count($errors) > 0)
Something went wrong.

@endif

Add Permission

{!! Form::open(array('route' => 'permissions.store','method'=>'POST')) !!}
{{ Form::label('display_name', 'Name') }} {{ Form::text('display_name', '', array('class' => 'form-control')) }} {{ Form::label('name', 'Permission') }} {{ Form::text('name', '', array('class' => 'form-control')) }}
@if(!$roles->isEmpty())
@foreach ($roles as $role) {{ Form::checkbox('roles[]', $role->id ) }} {{ Form::label($role->name, ucfirst($role->name)) }}
@endforeach
@endif {{ Form::submit('Add', array('class' => 'btn-sm btn-primary')) }} {{ Form::close() }}
@endsection