<!-- package container -->
<div class="package-container">

    <p>News Board</p>

    @forelse($blogs as $blog)
    <!-- Blog -->
    <div class="message" onclick="location.href='{{ route('user.blog.page', ['id' => $blog->slug]) }}'">
        <div>
            <img src="{{ asset('assets') }}/{{ $blog->image }}" alt="">
            <div>
                <div>
                    <p>{{ $blog->name }}</p>
                    <iconify-icon width="15" height="15" icon="ep:d-arrow-right"></iconify-icon>
                </div>
                <div>
                    <p>{{ $blog->created_at->format('d M Y') }}</p>
                    <p class="label unread">unread</p>
                </div>
            </div>
        </div>
    </div>
    <!-- end blog -->
    @empty
    {{ $emptyMessage  }}
    @endforelse
</div>