@extends('backend.layouts.app') @section('content')

Add Permission


{{ Form::open(array('url' => 'permissions')) }}
{{ Form::label('name', 'Name') }} {{ Form::text('name', '', array('class' => 'form-control')) }}

@if(!$roles->isEmpty())

Assign Permission to Roles

@foreach ($roles as $role) {{ Form::checkbox('roles[]', $role->id ) }} {{ Form::label($role->name, ucfirst($role->name)) }}
@endforeach @endif
{{ Form::submit('Add', array('class' => 'btn btn-primary')) }} {{ Form::close() }}
@endsection