64 lines
1.8 KiB
PHP
64 lines
1.8 KiB
PHP
<div class="pull-right">
|
|
<?php
|
|
$disabled = "";
|
|
if($model->published)
|
|
{
|
|
$icon = "far fa-check-square fa-2x";
|
|
$style = "";
|
|
$value = "1";
|
|
}
|
|
else
|
|
{
|
|
$icon = "far fa-square fa-2x";
|
|
$style = "";
|
|
$value = "0";
|
|
}
|
|
?>
|
|
<?php if(( Auth::user()->can('Administrator')
|
|
|| Auth::user()->can(__("permissions.:model edit (all)", ['model' => ucfirst($url)]))
|
|
|| ((Auth::user()->id == $model['user_id']) && Auth::user()->can(__("permissions.:model edit (own)", ['model' => ucfirst($url)]))))
|
|
&& !isset($model->deleted_at)): ?>
|
|
|
|
<?php else: ?>
|
|
<?php
|
|
$disabled = "disabled";
|
|
?>
|
|
<?php endif; ?>
|
|
|
|
<?php if($model->published): ?>
|
|
<a href="<?php echo e(URL::Post($model)); ?>" target="_blank" title="www.Feuerwehr-Eppingen.de">
|
|
<i class="fa fa-globe"></i>
|
|
</a>
|
|
<?php endif; ?>
|
|
|
|
<?php if($model->publication('stadtanzeiger')->isPublished()): ?>
|
|
<i class="fa fa-book" title="<?php echo app('translator')->getFromJson("admin.news"); ?>"></i>
|
|
<?php endif; ?>
|
|
|
|
<?php if($model->publication('facebook')->isPublished()): ?>
|
|
<a href="<?php echo e(URL::Facebook($model)); ?>" target="_blank" title="Facebook">
|
|
<i class="fab fa-facebook"></i>
|
|
</a>
|
|
<?php endif; ?>
|
|
|
|
<?php if($model->publication('twitter')->isPublished()): ?>
|
|
<a href="<?php echo e(URL::Twitter($model)); ?>" target="_blank" title="Twitter">
|
|
<i class="fab fa-twitter"></i>
|
|
</a>
|
|
<?php endif; ?>
|
|
|
|
<?php echo $__env->make('inc.forms.button', [
|
|
'url' => '#',
|
|
'style' => $style,
|
|
'class' => 'publish-modal '.$disabled,
|
|
'icon' => $icon,
|
|
'label' => '',
|
|
'value' => $value,
|
|
'data' => [
|
|
'id' => $model->id,
|
|
'type' => $model->type
|
|
]
|
|
], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
|
</div>
|
|
|