Skip to content

Commit

Permalink
Added duration to anime detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
ipkpjersi committed Jun 24, 2024
1 parent 14e2766 commit 08db53e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/views/animedetail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@
<p><strong>Episodes:</strong> {{ $anime->episodes }}</p>
<p><strong>Season:</strong> {{ $anime->season }}</p>
<p><strong>Year:</strong> {{ $anime->year }}</p>
@if (!empty($anime->duration))
<p>
<strong>Duration:</strong>
@if ($anime->episodes > 1)
{{ $anime->duration }} per episode
@else
{{ $anime->duration }}
@endif
</p>
@endif
@if (!empty($anime->synonyms))
@php
$synonyms = explode(', ', $anime->synonyms);
Expand Down

0 comments on commit 08db53e

Please sign in to comment.