summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorhorus2020-04-08 19:10:49 +0200
committerhorus2020-04-08 19:10:49 +0200
commit3484356137e16f98c40e0e3e55b4f3fc0630586c (patch)
tree400f3f0355090676a99d794b10d1ebe3d677f1ef /resources
parent282cf037d94ef2b4f1e664d8fdf13d590fc8eb8d (diff)
downloadsenpai-3484356137e16f98c40e0e3e55b4f3fc0630586c.tar.gz
Adds most surprising anime.
Diffstat (limited to 'resources')
-rw-r--r--resources/views/index_anime.blade.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/resources/views/index_anime.blade.php b/resources/views/index_anime.blade.php
index 05c30a2..4fa6b72 100644
--- a/resources/views/index_anime.blade.php
+++ b/resources/views/index_anime.blade.php
@@ -3,6 +3,34 @@
@section('content')
<div class="container" id="index">
+<h1>Most surprising anime</h1>
+@foreach($most_suprising_anime as $anime)
+ <div class="row">
+ <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>
+ Score diff: {{ $anime->score_today - $anime->score_begin }} Points
+ <br>
+ First score: {{ $anime->score_begin }}
+ <br>
+ Score now: {{ $anime->score_today }}
+ <br>
+ <a href="/anime/{{ $anime->mal_id}}" title="Click for more data">
+ Click for more data
+ </a>
+ </div>
+ </div>
+@endforeach
+
+<br>
+<br>
+<br>
+<br>
+<h1>Top anime this season</h1>
@foreach($all_anime as $anime)
<div class="row">
<div class="col-sm-4 col-lg-3">