@extends('layouts.admin') @section('content')

{{ $title }}

@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif @if(session('warning'))

{{ session('warning') }}

@endif
@if(!empty($lastSearch)) Clear @endif
@if(!empty($gamelist) && count($gamelist) > 0)
@foreach($gamelist as $game) @endforeach
ID Title Publisher Genre ESRB Release Date Cover Actions
{{ $game['id'] ?? 'N/A' }}
{{ $game['title'] ?? 'N/A' }}
{{ $game['publisher'] ?? 'N/A' }} {{ $game['genre'] ?? 'N/A' }} {{ $game['esrb'] ?? 'N/A' }} @if(!empty($game['releasedate'])) {{ date('Y-m-d', $game['releasedate']) }} @else N/A @endif @if(!empty($game['cover']) && $game['cover'] == 1) Yes @else No @endif Edit
@else

@if(!empty($lastSearch)) No games found matching "{{ $lastSearch }}". @else No games found in the database. @endif

@endif
@endsection