Add RSS of Announcements feed to Dashboard page
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
@extends('admin.app')
|
||||
|
||||
@section('content')
|
||||
<section class="content-header">
|
||||
<h1 class="pull-left">Dashboard</h1>
|
||||
</section>
|
||||
<section class="content-header"></section>
|
||||
<div class="content">
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@@ -29,6 +27,22 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="col-sm-12">
|
||||
<h3>announcements</h3>
|
||||
@foreach($feed->item as $item)
|
||||
<div>
|
||||
<strong>{!! $item->title !!}</strong>
|
||||
<p>{!! $item->description !!}</p>
|
||||
<p class="pull-right">{!! Carbon::now()->diffForHumans(new Carbon($item->pubDate), true) !!}</p>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user