Core implementation: controllers, views, routes, models, import command
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Top Rated Games — GameLog')
|
||||
|
||||
@section('content')
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10">
|
||||
<h1 class="text-2xl font-bold text-white mb-2">Top Rated</h1>
|
||||
<p class="text-slate-500 mb-8">The highest-rated games on GameLog.</p>
|
||||
|
||||
@if($games->isEmpty())
|
||||
<div class="text-center py-24 text-slate-500">
|
||||
<p>No games rated yet.</p>
|
||||
</div>
|
||||
@else
|
||||
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4">
|
||||
@foreach($games as $game)
|
||||
<x-game-card :game="$game" />
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="mt-8">{{ $games->links() }}</div>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user