-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54066fd
commit 28c0306
Showing
6 changed files
with
36 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use App\Models\ExternalFeedItem; | ||
|
||
class ExternalFeedItemsController | ||
{ | ||
public function __invoke() | ||
{ | ||
$externalFeedItems = ExternalFeedItem::query() | ||
->orderBy('created_at', 'desc') | ||
->paginate(20); | ||
|
||
return view('front.pages.externalFeedItems.index', compact('externalFeedItems')); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
resources/views/front/pages/externalFeedItems/index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<x-page title="From our team and products" background="/backgrounds/blogs.jpg"> | ||
<h1>From our team and products</h1> | ||
|
||
|
||
@foreach($externalFeedItems as $externalFeedItem) | ||
@include('front.pages.insights.partials.externalFeedItem') | ||
@endforeach | ||
|
||
{{ $externalFeedItems->links() }} | ||
</x-page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters