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

ALL


@php $filterLink = fn (?string $value) => request()->fullUrlWithQuery(['filter' => $value, 'page' => null]); @endphp {{-- Render pagination links --}} @if ($pictures->lastPage() > 1) @endif
@if ($pictures->isEmpty())
No pictures match that filter — try another page, or clear the filter.
@endif
@php // A logged-in voter may only tick the curator column tied to // their own account — admins keep full access to every pick, // including Last Selected / People's choice, which aren't // owned by any single voter. $authUser = auth()->user(); $canEditAllPicks = (bool) $authUser?->isAdmin(); @endphp @foreach($pictures as $value)
@php // The importer's auto-generated description HTML carries a // literal "||" straight after the artist name — stripped here // at render time rather than in the database, since this field // is written automatically by the Wufoo import and shouldn't // need a one-off manual fix to stay clean. $description = str_replace('||', '', (string) $value->description); @endphp
{!! $description !!}
@php $resized = $value->link; $resized = str_replace('.','-resized.',$resized); $img_name = explode('/',$value->link); $img_name = end($img_name); @endphp
@foreach ($voterFields as $voterField) @php $ownsThisPick = $authUser && $voterField->user_id === $authUser->id; @endphp @endforeach

@endforeach
{{-- Render pagination links --}} @if ($pictures->lastPage() > 1) @endif

@stop