2019-06-21 04:52:37 +08:00
|
|
|
<div class="row">
|
2020-02-02 02:05:56 +08:00
|
|
|
<!-- Code Field -->
|
|
|
|
<div class="form-group col-sm-4">
|
|
|
|
<div class="form-container">
|
|
|
|
<h6><i class="fas fa-keyboard"></i>
|
|
|
|
Name
|
|
|
|
</h6>
|
|
|
|
<div class="form-container-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-12">
|
|
|
|
{{ Form::text('display_name', null, ['class' => 'form-control']) }}
|
|
|
|
<p class="text-danger">{{ $errors->first('display_name') }}</p>
|
|
|
|
</div>
|
2019-06-21 04:52:37 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2019-06-21 04:52:37 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2019-06-21 04:52:37 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<!-- Permissions Field -->
|
|
|
|
<div class="form-group col-sm-8">
|
|
|
|
<div class="form-container">
|
|
|
|
<h6><i class="fas fa-check-square"></i>
|
|
|
|
Permissions
|
|
|
|
</h6>
|
|
|
|
<div class="form-container-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-12">
|
|
|
|
@foreach($permissions as $p)
|
|
|
|
<div class="checkbox">
|
|
|
|
<label class="checkbox-inline">
|
|
|
|
{{ Form::hidden('permissions[]', false) }}
|
|
|
|
{{ Form::checkbox('permissions[]', $p->id) }}
|
|
|
|
{{ Form::label('permissions[]', $p->display_name) }} - <span
|
|
|
|
class="description">{{$p->description}}</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
2019-06-21 04:52:37 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2019-06-21 04:52:37 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2019-06-21 04:52:37 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2020-02-02 02:05:56 +08:00
|
|
|
<!-- Submit Field -->
|
|
|
|
<div class="form-group col-sm-12">
|
|
|
|
<div class="pull-right">
|
|
|
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
|
|
|
|
<a href="{{ route('admin.roles.index') }}" class="btn btn-default">Cancel</a>
|
2019-06-21 04:52:37 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2019-06-21 04:52:37 +08:00
|
|
|
</div>
|