diff options
Diffstat (limited to 'resources/views/list_anime.blade.php')
| -rw-r--r-- | resources/views/list_anime.blade.php | 45 |
1 files changed, 38 insertions, 7 deletions
diff --git a/resources/views/list_anime.blade.php b/resources/views/list_anime.blade.php index 32ad79b..df1971f 100644 --- a/resources/views/list_anime.blade.php +++ b/resources/views/list_anime.blade.php @@ -1,15 +1,46 @@ @extends('layouts.app') @section('content') + <div class="container" id="index"> -<div class="jumbotron"> - <h1>{{ $title }}</h1> - @if ( "airing_anime" == \Request::route()->getName() ) - <p class="lead text-muted"> - @php echo getSeason() @endphp @php echo date("Y") @endphp - </p> +<div class="page-header"> + <div class="row"> + @if ( "airing_anime" == \Request::route()->getName() || "season" == \Request::route()->getName() ) + <div class="col-6"> + @endif + + <h1>{{ $title }}</h1> + @if ( "airing_anime" == \Request::route()->getName() ) + <p class="lead text-muted"> + {{ getSeason() }} {{ date("Y") }} + </p> + @endif + + @if ( "airing_anime" == \Request::route()->getName() || "season" == \Request::route()->getName() ) + </div> + @endif + + @if ( "airing_anime" == \Request::route()->getName() || "season" == \Request::route()->getName() ) + <!-- Change Season --> + <div class="col-6"> + <form id="season_change" action="/changeSeason/" method="get"> + <div class="form-group"> + <label for="season_switcher"> + <h3>Change Season</h3> + </label> + <select name="season" id="season_switcher" class="custom-select" required> + @foreach( getChangeSeasonOptions() as $season ) + <option value="{{ $season->season_name }}-{{ $season->season_year }}">{{ $season->season_name }} {{ $season->season_year }}</option> + @endforeach + </select> + </div> + <button class="btn btn-primary" type="submit"> Go! </button> + </form> + </div> @endif + + </div> </div> <div class="row"> @foreach($all_anime as $anime) @@ -17,7 +48,7 @@ @once </div> - <div class="jumbotron"> + <div id="continuing" class="jumbotron" style="margin-top: 2rem;"> <h2>Continuing from earlier Seasons</h2> </div> |
