@php
$route = 'permission.store';
$method = 'post';
if(isset($data->id)) {
$route = ['backend.permission.update', $data->id];
$method = 'put';
}
@endphp
{{ Form::model($data,['route' => $route]) }}
@method($method)
{{ Form::text('title', old('title'), ['class' => 'form-control','id' => 'permission-title', 'placeholder' => 'Permission Title', 'required']) }}
{{ Form::submit( __('messages.save'), ['class'=>'btn btn-primary']) }}
{{ Form::close() }}