summaryrefslogtreecommitdiff
path: root/resources/views/list_anime.blade.php
blob: fc17a1d860a9a0a788d08181f345af36c201f6c2 (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
74
@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>


<!--
		<div class="col-sm-4 col-lg-3">
			<a href="/anime/{{ $anime->mal_id}}" title="Click for more data">
				<img src="{{ $anime->image_url }}" class="img-fluid" style="margin-bottom: 10px;">	
			</a>
		</div>
		<div class="col-sm-8 col-lg-9">
			<h2>{{ $anime->title_pref }}</h2>
			{!! replaceSpecialChars(e($anime->synopsis)) !!}
			<br>
			<br>
			<a href="/anime/{{ $anime->mal_id}}" title="Click for more data">
				Click for more data
			</a>
		</div>
-->
			<!--{!! str_replace("%%br%%", "<br>", e($anime->synopsis)) !!}-->
@endforeach
	</div>

@if ($all_anime instanceof \Illuminate\Pagination\LengthAwarePaginator)
	{{ $all_anime->links() }}
@endif

</div>
@endsection