blob: 32ad79bae6b20018e6f229dc375ee3bb021e36a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
@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>
@endif
</div>
<div class="row">
@foreach($all_anime as $anime)
@if ( $anime->season_name != getSeason() && "airing_anime" == \Request::route()->getName() )
@once
</div>
<div class="jumbotron">
<h2>Continuing from earlier Seasons</h2>
</div>
<div class="row">
@endonce
@endif
<div class="col-sm-12 col-lg-4 col-xl-3 d-flex align-items-stretch">
<div class="card" style="margin-bottom: 10px; width: 100%;
@if( "surprising_anime" == \Request::route()->getName() )
@if ( 0 < $anime->score_today - $anime->score_begin )
border-color: green;
@else
border-color: red;
@endif
@endif
">
<div class="card-body d-flex flex-column">
<h5 class="card-title">{{ $anime->title }} @if ( ! compare($anime->title, $anime->title_pref) )<br><span class="text-muted hide-sm">{{ $anime->title_pref }}</span>@endif</h5>
<h6 class="card-subtitle mb-2 text-muted">
score: {{ $anime->score_today ? $anime->score_today : "n/a" }}, members: {{ $anime->members }}
@if( "surprising_anime" == \Request::route()->getName())
<br>
@if ( 0 < $anime->score_today - $anime->score_begin )
Rose
@else
Fell
@endif
from {{ $anime->score_begin }} to {{ $anime->score_today }} (diff: {{ $anime->score_today - $anime->score_begin }})
@endif
</h6>
<p class="card-text">
<a href="/anime/{{ $anime->mal_id}}" title="Click for more data">
<img src="{{ camo($anime->image_url) }}" class="img-fluid float-left-xl mal-img" data-img-src="{{ $anime->image_url }}" style="margin-bottom: 10px; margin-right: 10px;">
</a>
<span class="hide-synopsis-sm">
{!! replaceSpecialChars(e($anime->synopsis)) !!}
</span>
</p>
<a href="/anime/{{ $anime->mal_id}}" class="card-link btn btn-primary mt-auto" title="Click for more data">More</a>
</div>
</div>
</div>
@endforeach
</div>
@if ($all_anime instanceof \Illuminate\Pagination\LengthAwarePaginator)
{{ $all_anime->links() }}
@endif
</div>
@endsection
|