Skip to content
Snippets Groups Projects
Unverified Commit 5e7e4009 authored by Robb Lewis's avatar Robb Lewis
Browse files

Fetch log

parent 53d18b1b
No related branches found
No related tags found
No related merge requests found
<?php
namespace App\Http\Controllers;
use App\FetchLog;
class LogController extends Controller
{
public function index()
{
$logs = FetchLog::all();
return view('admin.logs', compact(
'logs'
));
}
}
Loading
Loading
@@ -104,4 +104,42 @@ h1 {
footer {
text-align: right;
margin-bottom: 20px;
}
\ No newline at end of file
}
/* Activity feed from http://bootsnipp.com/snippets/Zlkg2 */
.activity-feed {
padding: 15px;
}
.activity-feed .feed-item {
position: relative;
padding-bottom: 20px;
padding-left: 30px;
border-left: 2px solid #e4e8eb;
}
.activity-feed .feed-item:last-child {
border-color: transparent;
}
.activity-feed .feed-item:after {
content: "";
display: block;
position: absolute;
top: 0;
left: -6px;
width: 10px;
height: 10px;
border-radius: 6px;
background: #fff;
border: 1px solid #f37167;
}
.activity-feed .feed-item .date {
position: relative;
top: -5px;
color: #8c96a3;
text-transform: uppercase;
font-size: 13px;
}
.activity-feed .feed-item .text {
position: relative;
top: -3px;
}
@extends('layouts.main')
@section('content')
<div class="row">
<div class="col-md-9">
<h1>Tweet Fetch Log</h1>
<div class="activity-feed">
@forelse ($logs as $log)
<div class="feed-item">
@if ($log->count)
<div class="date">{!! $log->created_at !!}</div>
<div class="text">Imported {!! $log->count !!} tweets</div>
@else
<div class="date">{!! $log->created_at !!} - No Tweets Found</div>
@endif
</div>
@empty
NO LOGS
@endforelse
</div>
</div>
<div class="col-md-3"></div>
</div>
@endsection
\ No newline at end of file
Loading
Loading
@@ -6,6 +6,10 @@ Auth::routes();
 
Route::get('logout', '\App\Http\Controllers\Auth\LoginController@logout');
 
Route::group(['middleware' => ['auth']], function() {
Route::get('logs', 'LogController@index');
});
Route::group(['middleware' => ['private']], function() {
Route::get('/home', function() {
return redirect('/');
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment