Просмотр файла resources/views/messages/_new.blade.php

Размер файла: 811B
@foreach ($messages as $message)
    <?php
        $author = $message->author_id ? $message->author->getName() : __('messages.system');
        $login = $message->author->exists ? $message->author->login : $message->author_id;
    ?>
    <li>
        <a class="app-notification__item" href="/messages/talk/{{ $login }}">
            <span class="app-notification__icon avatar-mini">{{ $message->author->getAvatarImage() }}</span>
            <div>
                <p class="app-notification__author">{{ $author }}</p>
                <p class="app-notification__meta">{{ dateFixed($message->last_created_at) }}</p>
            </div>

            <div class="app-notification__cnt">
                <span class="badge badge-info">{{ $message->cnt }}</span>
            </div>
        </a>
    </li>
@endforeach