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/54ed5f1321979d5b804dcaf8cf7396ca
<ul>
    <?php foreach($newsItems as $newsItem): ?>
        <li <?php if(isset($post) && $post->code_name == $newsItem->code_name): ?> class="active" <?php endif; ?>>
            <?php if(get_class($newsItem) == 'Komma\Kms\Newsletters\Models\Newsletter'): ?>

                <a href="/<?php echo $newsItem->routes->filter(function($route) use ($page) {
                            if( starts_with($route->route, $page->translation->route->route)){
                                return $route->route;
                            }
                        })->first()->route; ?>">
                    <span class="date"><?php echo $newsItem->getDate()->format('d . m . Y'); ?></span>
                    <p><?php echo \Illuminate\Support\Facades\Lang::get('translations.newsletter'); ?>
                        - <?php echo ucfirst(trans('calender.months.'.$newsItem->month)); ?> <?php echo $newsItem->year; ?></p>
                </a>
            <?php else: ?>
                <a href="/<?php echo $newsItem->translations->first()->routes->filter(function($route) use ($page) {
                            if( starts_with($route->route, $page->translation->route->route)){
                                return $route->route;
                            }
                        })->first()->route;; ?>">
                    <span class="date"><?php echo $newsItem->getDate()->format('d . m . Y'); ?></span>
                    <p><?php echo $newsItem->translations->first()->name; ?></p>
                </a>

            <?php endif; ?>
        </li>
    <?php endforeach; ?>
</ul>