HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/zuiderbos.komma.pro/app/storage/views/ec3e773038e6db319d802b186ff7cc64
<?php foreach($news as $item): ?>

    <?php if(get_class($item) == 'Komma\Kms\Newsletters\Models\Newsletter'): ?>
        <article>

            <a href="/<?php echo $item->routes->filter(function($route) use ($page) {
                            if( starts_with($route->route, $page->translation->route->route)){
                                return $route->route;
                            }
                        })->first()->route; ?>">
                <figure <?php if($item->images->count() != 0): ?> style="background-image: url('<?php echo $item->images->first()->medium_image_url; ?>');" <?php endif; ?>>
                </figure>

                <div class="content">
<?php /*                    <span class="icon"></span>*/ ?>
                    <h3><?php echo \Illuminate\Support\Facades\Lang::get('translations.newsletter'); ?> - <?php echo ucfirst(trans('calender.months.'.$item->month)); ?> <?php echo $item->year; ?></h3>

                    <span class="date">
                    <?php echo KommaLang::get('writenOn'); ?>

                        <?php echo $item->getDate()->format('j'); ?> <?php echo \Illuminate\Support\Facades\Lang::get('calender.months.'.$item->getDate()->format('n')); ?> <?php echo $item->getDate()->format('Y'); ?>

            </span>
                </div>
            </a>

        </article>
    <?php else: ?>
        <article>
            <a href="/<?php echo $item->translations->first()->routes->filter(function($route) use ($page) {
                            if( starts_with($route->route, $page->root->translation->route->route)){
                                return $route->route;
                            }
                        })->first()->route;; ?>">
                <figure <?php if($item->images->count() != 0): ?> style="background-image: url('<?php echo $item->images->first()->medium_image_url; ?>');" <?php endif; ?>>
                </figure>

                <div class="content">
<?php /*                    <span class="icon"></span>*/ ?>
                    <h3><?php echo $item->translations->first()->name; ?></h3>

                    <span class="date">
                    <?php echo KommaLang::get('writenOn'); ?>

                        <?php echo $item->getDate()->format('j'); ?> <?php echo \Illuminate\Support\Facades\Lang::get('calender.months.'.$item->getDate()->format('n')); ?> <?php echo $item->getDate()->format('Y'); ?>

            </span>
                </div>
            </a>
        </article>
    <?php endif; ?>
<?php endforeach; ?>