blob: 65b45d5da9a325c841e24ec088292b097a086958 (
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
|
@extends('layouts.app')
@section('content')
<div class="container" id="index">
<h1>{{ $title }}</h1>
<div class="row">
@foreach($all_anime as $anime)
<pre>
<?php //var_dump($anime); ?>
</pre>
<div class="col-sm-4 col-lg-3">
<div class="card" style="margin-bottom: 10px;
@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">
<h5 class="card-title">{{ $anime->title }} @if ( ! compare($anime->title, $anime->title_pref) )<br><span class="text-muted">{{ $anime->title_pref }}</span>@endif</h5>
<h6 class="card-subtitle mb-2 text-muted">
score: {{ $anime->score_today }}, 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="{{ $anime->image_url }}" class="img-fluid float-left" style="margin-bottom: 10px; margin-right: 10px;">
</a>
{!! replaceSpecialChars(e($anime->synopsis)) !!}
</p>
<a href="/anime/{{ $anime->mal_id}}" class="card-link" 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
|