diff --git a/app/Http/Controllers/ShowTweetsController.php b/app/Http/Controllers/ShowTweetsController.php
index 3045f49..ed7cacd 100644
--- a/app/Http/Controllers/ShowTweetsController.php
+++ b/app/Http/Controllers/ShowTweetsController.php
@@ -32,4 +32,14 @@ class ShowTweetsController extends Controller
]);
}
+ public function all() {
+ $tweets = Tweet::where('mission_id', 0)
+ ->orderBy('tweet_date', 'desc')
+ ->get();
+
+ return view('all-tweets', [
+ 'tweets' => $tweets
+ ]);
+ }
+
}
diff --git a/resources/views/all-tweets.blade.php b/resources/views/all-tweets.blade.php
new file mode 100644
index 0000000..ecdde19
--- /dev/null
+++ b/resources/views/all-tweets.blade.php
@@ -0,0 +1,13 @@
+@extends('layouts.app')
+
+@section('content')
+
+@endsection
diff --git a/resources/views/import.blade.php b/resources/views/import.blade.php
index a753daa..40a09d3 100644
--- a/resources/views/import.blade.php
+++ b/resources/views/import.blade.php
@@ -1,5 +1,13 @@
@extends('layouts.app')
@section('content')
+
+
+
+
Show Tweets
+
See all tweets from players, even ones that don't match a hashtag. Only tweets that have been imported into the system are shown.
+
+
+
@endsection
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index 633d2ed..ea4ca9a 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -41,6 +41,7 @@
@endif
Teams
@can('admin')
+ Import Tweet
SMS
@endcan
Slideshow
diff --git a/routes/web.php b/routes/web.php
index c61a604..5ae60d1 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -43,6 +43,7 @@ Route::post('/twitter/stream', 'TwitterController@input');
Route::get('/mission/{mission}', 'ShowTweetsController@mission')->name('mission');
Route::get('/team/{team}', 'ShowTweetsController@team')->name('team');
+Route::get('/tweets', 'ShowTweetsController@all')->name('tweets');
Route::get('/sms', 'SMSController@index')->name('sms');
Route::post('/sms/save-numbers', 'SMSController@save')->name('sms-save');