@extends('layouts.app') @php use Illuminate\Support\Str; @endphp @section('title', $list->title . ' — GameLog') @section('content')
{{-- Header --}}
{{ $list->user->slug ?? $list->user->name }} @if(!$list->is_public) Private @endif

{{ $list->title }}

@auth @if(auth()->id() === $list->user_id)
@csrf @method('DELETE')
@endif @endauth
@if($list->description)

{{ $list->description }}

@else
@endif

{{ $list->listGames->count() }} {{ Str::plural('game', $list->listGames->count()) }}

@if($list->listGames->isEmpty())

No games in this list yet.

@auth @if(auth()->id() === $list->user_id)

Browse games and use "Add to List" to add them here.

@endif @endauth
@else
@foreach($list->listGames as $entry)
@auth @if(auth()->id() === $list->user_id) @endif @endauth
@endforeach
@endif
@push('scripts') @endpush @endsection