71 lines
3.2 KiB
PHP
71 lines
3.2 KiB
PHP
@foreach ($rss_posts as $key => $post)
|
|
<div class="card mb-1 shadow border-0">
|
|
<div class="card-body">
|
|
<div class="d-grid d-md-flex justify-content-md-between">
|
|
<div class="w-100 mb-2">
|
|
<h3 class="h5 mb-1 fw fw-semibold font-family-roboto-condensed">
|
|
{{ $post->title }}
|
|
</h3>
|
|
|
|
@if ($post->entities_keywords->count() > 0)
|
|
<div class="d-flex flex-wrap mb-2 gap-1">
|
|
|
|
|
|
{{-- @endif --}}
|
|
@if ($post->impact_level == 'high')
|
|
<h4
|
|
class="font-family-roboto-condensed mb-0 pb-1 d-inline badge bg-danger border-danger text-white border small fw-bold text-uppercase">
|
|
🔥 High Impact
|
|
</h4>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="mb-1 text-wrap d-flex flex-wrap gap-1 small">
|
|
<span class="word-wrap-break-word small">More about:</span> @foreach ($post->entities_keywords as $keyword)
|
|
@if ($keyword->type == 'entity')
|
|
<a class="word-wrap-break-word small"
|
|
href="{{ get_route_search_result($keyword->value_lowercased) }}">#{{ $keyword->value_lowercased }}</a>
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
|
|
<div class="small">
|
|
@if ($post->category)
|
|
<span class="d-inline text-secondary small">{{ $post->category->name }}</span>
|
|
<i class="bi bi-dot"></i>
|
|
@endif
|
|
|
|
<span class="d-inline text-secondary small">
|
|
@if ($post->published_at->isBetween(now()->subDays(1), now()))
|
|
{{ $post->published_at->diffForHumans() }}
|
|
@else
|
|
{{ $post->published_at->format('d M') }}
|
|
@endif
|
|
|
|
</span>
|
|
|
|
<i class="bi bi-dot"></i>
|
|
<span class="d-inline text-secondary small">
|
|
{{ get_domain_from_url($post->post_url) }}
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="text-end d-flex justify-content-center justify-content-md-end w-100">
|
|
<div class="align-self-center d-flex d-md-grid gap-1">
|
|
<open-news-bite
|
|
this-class="btn btn-outline-secondary btn-sm rounded-pill px-3 text-decoration-none"
|
|
title="{{ $post->title }}" bite="{{ $post->bites }}"
|
|
min-read="{{ min_read($post->bites, 'bite') }}"></open-news-bite>
|
|
<a class="btn btn-outline-secondary btn-sm rounded-pill px-3 text-decoration-none"
|
|
target="_blank" rel="nofollow noopener noreferrer" href="{{ $post->post_url }}">👉 Read
|
|
full
|
|
article</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endforeach
|