Feuerwehr-eppingen/resources/views/inc/forms/quickEdit.blade.php

20 lines
687 B
PHP

@if(is_object($post))
@if(Access::hasAnyModelPermission($post))
<div class="quickedit @if(isset($static)) static @else hidden @endif">
<a href="#" class="show-modal" data-id="{{ $post->id }}" data-type="{{ $post->type }}">
<span class="fa fa-info"></span>
</a>
@if(Access::hasEditModelPermission($post))
<a href="#" class="edit-modal" data-id="{{ $post->id }}" data-type="{{ $post->type }}">
<span class="fa fa-edit"></span>
</a>
@endif
@if(Access::hasDeleteModelPermission($post))
<a href="#" class="delete-modal" data-id="{{ $post->id }}" data-type="{{ $post->type }}">
<span class="fa fa-trash-alt"></span>
</a>
@endif
</div>
@endif
@endif