Almost complete site

Add dark / light theme

Add social sharing on meme pages

Add approving / pending admin section

Improve design

Add pagination on profiles

Make front end date time user friendly

Finish rough draft of site

And Much more...

Still need to fix a few minor things before it goes live. Almost
complete.
This commit is contained in:
dev 2021-07-26 19:39:11 -07:00
parent 52a9007882
commit dbfda5cf9e
39 changed files with 54195 additions and 663 deletions

View file

@ -3,6 +3,7 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Meme;
class DashboardController extends Controller
{
@ -23,6 +24,12 @@ class DashboardController extends Controller
*/
public function index()
{
return view('dashboard');
if (\Auth::user()->is_admin === 1) {
$memes_pending = Meme::withoutGlobalScope('approved')->where('is_approved', 0)->get();
}
$data = [
'memes_pending' => $memes_pending ?? null,
];
return view('dashboard', ['data' => $data]);
}
}