From 972cd677ab19a6603214f8d61c5f4014a7e5ac4e Mon Sep 17 00:00:00 2001 From: Developer Date: Sat, 27 Jun 2026 04:03:30 +0200 Subject: feat: add sort buttons to cinema listing Order options: Hacker News Mentions (default), Rating, Number of Votes, Accolades, Release Date. Active sort is highlighted in primary color. --- resources/views/cinema.blade.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'resources/views') diff --git a/resources/views/cinema.blade.php b/resources/views/cinema.blade.php index af09b91..ea2bdeb 100644 --- a/resources/views/cinema.blade.php +++ b/resources/views/cinema.blade.php @@ -114,6 +114,22 @@ html { +
+ Sort by: + @foreach ([ + ['ref_count', 'Hacker News Mentions'], + ['score', 'Rating'], + ['num_votes', 'Number of Votes'], + ['num_accolades', 'Accolades'], + ['start_year', 'Release Date'], + ] as [$key, $label]) + @if ( (isset($order) ? $order : 'ref_count') == $key ) + {{ $label }} + @else + {{ $label }} + @endif + @endforeach +
-- cgit v1.2.3