You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.6 KiB
31 lines
1.6 KiB
<div class="card my-3">
|
|
<div class="card-header" role="tab" id="{{ isset($title) ? str_slug($title) : 'permissionHeading' }}">
|
|
<h4 class="mb-0">
|
|
<a role="button" data-toggle="collapse" href="#dd-{{ isset($title) ? str_slug($title) : 'permissionHeading' }}" aria-expanded="{{ isset($closed) ? 'true' : 'false' }}" aria-controls="dd-{{ isset($title) ? str_slug($title) : 'permissionHeading' }}">
|
|
{{ $title ?? 'Override Permissions' }}
|
|
</a>
|
|
</h4>
|
|
</div>
|
|
<div id="dd-{{ isset($title) ? str_slug($title) : 'permissionHeading' }}" class="card-collapse collapse {{ $closed ?? 'in' }}" role="tabcard" aria-labelledby="dd-{{ isset($title) ? str_slug($title) : 'permissionHeading' }}">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
@foreach($permissions as $perm)
|
|
@if( isset($role) && $perm->guard_name == $role->guard_name)
|
|
<?php
|
|
$per_found = null;
|
|
$per_found = $role->hasPermissionTo($perm->name);
|
|
?>
|
|
|
|
<div class="col-md-3">
|
|
<div class="checkbox">
|
|
<label class="{{ str_contains($perm->name, 'delete') ? 'text-danger' : '' }}">
|
|
{!! Form::checkbox("permissions[]", $perm->name, $per_found, isset($options) ? $options : []) !!} {{ $perm->name }}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|