diff options
| author | horus | 2020-09-17 23:37:00 +0200 |
|---|---|---|
| committer | horus | 2020-09-17 23:37:00 +0200 |
| commit | 0c521f4907ee74cda8d4b6810a5ccb21c175f857 (patch) | |
| tree | 4c334a83f6281d0f23deb35077157811eae3ab16 /resources | |
| parent | 0e3b6263b4756ad93bb619ec34b7b121b87a097f (diff) | |
| download | senpai-0c521f4907ee74cda8d4b6810a5ccb21c175f857.tar.gz | |
add season to anime model
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/views/anime.blade.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/resources/views/anime.blade.php b/resources/views/anime.blade.php index 2bc0692..0e9da1e 100644 --- a/resources/views/anime.blade.php +++ b/resources/views/anime.blade.php @@ -25,10 +25,12 @@ </div> </div> +@if ( ! is_null($anime["score"]) ) <p> <h2>Score History</h2> <canvas id="score_chart"></canvas> </p> +@endif <p> <h2>Popularity History</h2> <canvas id="popularity_chart"></canvas> @@ -52,6 +54,7 @@ </div> <script> window.onload = function() { +@if ( ! is_null($anime["score"]) ) new Chart(document.getElementById('score_chart'), { type: 'line', data: { @@ -77,6 +80,9 @@ new Chart(document.getElementById('score_chart'), { } } }); + +@endif + new Chart(document.getElementById('rank_chart'), { type: 'line', data: { |
