29 lines
1.3 KiB
PHP
29 lines
1.3 KiB
PHP
<?php if(count($publications)): ?>
|
|
<?php $__currentLoopData = $publications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $department => $platforms): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div>
|
|
<h3>
|
|
<?php echo app('translator')->getFromJson('models.department'); ?> <?php echo e($department); ?>
|
|
|
|
</h3>
|
|
<div>
|
|
<?php if(key_exists('Stadtanzeiger', $platforms)): ?>
|
|
<?php $__currentLoopData = $platforms['Stadtanzeiger']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<hr>
|
|
<h5>
|
|
<?php echo e($post->title); ?>
|
|
|
|
</h5>
|
|
<p><?php echo $post->content; ?></p>
|
|
<?php if(isset($post->image)): ?>
|
|
<img src="<?php echo e($message->embed($post->image)); ?>" width="100px"/>
|
|
<?php endif; ?>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
<?php else: ?>
|
|
<?php echo app('translator')->getFromJson('admin.No publications planned for today'); ?>;
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
<?php else: ?>
|
|
<?php echo app('translator')->getFromJson('admin.No publications planned for today'); ?>;
|
|
<?php endif; ?>
|