diff options
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/views/layouts/sidebar.blade.php | 4 | ||||
| -rw-r--r-- | resources/views/list_anime.blade.php | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 4584b38..1182091 100644 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -9,7 +9,11 @@ </label> <select name="season" id="season_switcher" class="custom-select" required> @foreach( getChangeSeasonOptions() as $season ) + @if ( $season->season_name == getSeason() && $season->season_year == date("Y") ) + <option selected value="{{ $season->season_name }}-{{ $season->season_year }}">{{ $season->season_name }} {{ $season->season_year }}</option> + @else <option value="{{ $season->season_name }}-{{ $season->season_year }}">{{ $season->season_name }} {{ $season->season_year }}</option> + @endif @endforeach </select> </div> diff --git a/resources/views/list_anime.blade.php b/resources/views/list_anime.blade.php index 49a1935..957073f 100644 --- a/resources/views/list_anime.blade.php +++ b/resources/views/list_anime.blade.php @@ -31,7 +31,11 @@ </label> <select name="season" id="season_switcher" class="custom-select" required> @foreach( getChangeSeasonOptions() as $season ) + @if ( $season->season_name == getSeason() && $season->season_year == date("Y") ) + <option selected value="{{ $season->season_name }}-{{ $season->season_year }}">{{ $season->season_name }} {{ $season->season_year }}</option> + @else <option value="{{ $season->season_name }}-{{ $season->season_year }}">{{ $season->season_name }} {{ $season->season_year }}</option> + @endif @endforeach </select> </div> |
