Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jun 11, 2024
1 parent 606e681 commit 31a3e12
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/InsightsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ public function index()
unset($posts[0]);
}

$insights = ExternalFeedItem::query()
$externalFeedItems = ExternalFeedItem::query()
->orderBy('created_at', 'desc')
->limit(6)
->get();

return view('front.pages.insights.index', [
'posts' => $posts,
'firstPost' => $firstPost ?? null,
'insights' => $insights,
'externalFeedItems' => $externalFeedItems,
]);
}

Expand Down
4 changes: 2 additions & 2 deletions resources/views/front/pages/insights/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
From our team & products
</h2>

@foreach($insights as $insight)
@include('front.pages.insights.partials.insightListItem')
@foreach($externalFeedItems as $externalFeedItem)
@include('front.pages.insights.partials.externalFeedItems')
@endforeach


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div>
<a href="{{ $externalFeedItem->url }}">
{{ $externalFeedItem->title }}

<div>
<time
datetime="{{ $externalFeedItem->created_at->format('Y-m-d') }}">{{ $externalFeedItem->created_at->format('d F Y') }}</time> {{ $externalFeedItem->website }}

</div>
</a>
</div>

This file was deleted.

0 comments on commit 31a3e12

Please sign in to comment.