summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/views/cinema.blade.php8
1 files changed, 6 insertions, 2 deletions
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 )
- <a class="btn btn-sm btn-primary my-1" href="{{ url()->current() }}?order={{ $key }}">{{ $label }}</a>
+ @if ( (isset($direction) ? $direction : 'desc') == 'desc' )
+ <a class="btn btn-sm btn-primary my-1" href="{{ url()->current() }}?order={{ $key }}&amp;direction=asc">{{ $label }} &#x25B2;</a>
+ @else
+ <a class="btn btn-sm btn-primary my-1" href="{{ url()->current() }}?order={{ $key }}&amp;direction=desc">{{ $label }} &#x25BC;</a>
+ @endif
@else
- <a class="btn btn-sm btn-outline-secondary my-1" href="{{ url()->current() }}?order={{ $key }}">{{ $label }}</a>
+ <a class="btn btn-sm btn-outline-secondary my-1" href="{{ url()->current() }}?order={{ $key }}&amp;direction=desc">{{ $label }}</a>
@endif
@endforeach
</div>