A lot of things
This commit is contained in:
40
resources/views/activity/featured-entries.blade.php
Normal file
40
resources/views/activity/featured-entries.blade.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php /** @var \App\Models\Entry $entry */ ?>
|
||||
@if($featuredEntries->isNotEmpty())
|
||||
<section class="home-section">
|
||||
<div class="home-section-header">
|
||||
<h2 class="home-section-title">
|
||||
<i data-lucide="star" size="16"></i>
|
||||
Featured entries
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div class="featured-entries-grid">
|
||||
@foreach($featuredEntries as $entry)
|
||||
<a href="{{ route('entries.show', [ 'section' => $entry->type, 'entry' => $entry ]) }}" class="featured-entry-card">
|
||||
<div class="featured-entry-cover">
|
||||
@if($entry->main_image)
|
||||
<img src="{{ Storage::url($entry->main_image) }}"
|
||||
alt="{{ $entry->title }}"
|
||||
loading="lazy">
|
||||
@endif
|
||||
<span class="featured-entry-star">
|
||||
{{ \App\View\Components\EntryCard::ENTRY_TYPES_BADGE[ $entry->type ] }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="featured-entry-body">
|
||||
@if(!empty($entry->getRealPlatform()))
|
||||
<span class="featured-entry-platform">{{ $entry->getRealPlatform()->name }}</span>
|
||||
@endif
|
||||
<div class="featured-entry-title">{{ $entry->title }}</div>
|
||||
<div class="featured-entry-meta">
|
||||
@if($entry->user_id)
|
||||
<x-xf-username-link :user-id="$entry->user_id"/>
|
||||
@endif
|
||||
· {{ $entry->featured_at->format('M Y') }}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
Reference in New Issue
Block a user