Feuerwehr-eppingen/storage/framework/views/4ac5e61b8bcd7ea3952f107cda376d40da8d2255.php

63 lines
2.5 KiB
PHP

<div class="pull-right btn-group">
<?php echo e($model->department); ?>
<?php if(!isset($model->deleted_at)): ?>
<?php echo $__env->make('inc.forms.button', [
'url' => '#',
'style' => 'btn-success',
'class' => 'show-modal',
'icon' => 'fa fa-info',
'label' => __("admin.details"),
'data' => [
'id' => $model->id,
'type' => (isset($model->type) ? $model->type : $url),
'title' => __("models.".$modeltype)
]
], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endif; ?>
<?php if(Access::hasAnyEditPermission($url, $model['user_id']) && !isset($model->deleted_at)): ?>
<?php echo $__env->make('inc.forms.button', [
'url' => '#',
'style' => 'btn-info',
'class' => 'edit-modal',
'icon' => 'fa fa-edit',
'label' => __("admin.edit"),
'data' => [
'id' => $model->id,
'type' => (isset($model->type) ? $model->type : $url),
'title' => __("models.".$modeltype)
]
], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endif; ?>
<?php if(Access::hasAnyDeletePermission($url, $model['user_id']) && !isset($model->deleted_at)): ?>
<?php echo $__env->make('inc.forms.button', [
'url' => '#',
'style' => 'btn-danger',
'class' => 'delete-modal',
'icon' => 'fa fa-trash-alt',
'label' => __("admin.delete"),
'data' => [
'id' => $model->id,
'type' => (isset($model->type) ? $model->type : $url),
'title' => __("models.".$modeltype)
]
], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endif; ?>
<?php if( Auth::user()->can('Administrator')
&& isset($model->deleted_at)): ?>
<?php echo $__env->make('inc.forms.button', [
'url' => '#',
'style' => 'btn-warning',
'class' => 'restore-modal',
'icon' => 'glyphicon glyphicon-edit',
'label' => __("admin.restore"),
'data' => [
'id' => $model->id,
'type' => (isset($model->type) ? $model->type : $url),
'title' => __("models.".$modeltype)
]
], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endif; ?>
</div>