From 33b69f87babac5116db923b906512411488eb28a Mon Sep 17 00:00:00 2001
From: Developer
Date: Sat, 27 Jun 2026 04:05:43 +0200
Subject: feat: add ascending/descending sort direction toggle to cinema
Active sort button toggles direction on click, showing ▲ for asc and ▼ for desc.
Default direction is desc for all sort options.
---
resources/views/cinema.blade.php | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
(limited to 'resources/views')
diff --git a/resources/views/cinema.blade.php b/resources/views/cinema.blade.php
index ea2bdeb..eb6b085 100644
--- a/resources/views/cinema.blade.php
+++ b/resources/views/cinema.blade.php
@@ -124,9 +124,13 @@ html {
['start_year', 'Release Date'],
] as [$key, $label])
@if ( (isset($order) ? $order : 'ref_count') == $key )
- {{ $label }}
+ @if ( (isset($direction) ? $direction : 'desc') == 'desc' )
+ {{ $label }} ▲
+ @else
+ {{ $label }} ▼
+ @endif
@else
- {{ $label }}
+ {{ $label }}
@endif
@endforeach
--
cgit v1.2.3