diff options
| author | horus | 2020-09-16 11:13:53 +0200 |
|---|---|---|
| committer | horus | 2020-09-16 11:13:53 +0200 |
| commit | a5ff13269db053896b604fc29181d60e208d0463 (patch) | |
| tree | a10820fcb0fba116ab0105ef1538d9a6f7069f4b /resources/views/list_anime.blade.php | |
| parent | 98736ba280573b66eb3d5bf026ed943dc8ceb663 (diff) | |
| download | senpai-a5ff13269db053896b604fc29181d60e208d0463.tar.gz | |
Major improvement.
Diffstat (limited to 'resources/views/list_anime.blade.php')
| -rw-r--r-- | resources/views/list_anime.blade.php | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/resources/views/list_anime.blade.php b/resources/views/list_anime.blade.php new file mode 100644 index 0000000..fc17a1d --- /dev/null +++ b/resources/views/list_anime.blade.php @@ -0,0 +1,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 |
