This commit is contained in:
2025-02-10 01:58:12 +02:00
parent 25d99e7b72
commit 87bbfc33d3
242 changed files with 38662 additions and 99 deletions
+25 -3
View File
@@ -6,14 +6,36 @@
<img src="{{ asset('/img/star_rating.png') }}" alt="">
</div>
<div class="col-md-7">
{{ $movie->vote_average }} <br>
<small>{{ $movie->vote_count }} votes</small>
@if(isset($movie))
{{ $movie->vote_average }} <br>
<small>{{ $movie->vote_count }} votes</small>
@else
{{ $show->vote_average }} <br>
<small>{{ $show->vote_count }} votes</small>
@endif
</div>
</div>
</div>
<div class="col-md-12">
<div class="text-center">
<div class="my-rating" data-id="{{ $movie->id }}" data-type="movie" {{ auth()->check() ? ($movie->ratingBy(auth()->user()) ? 'data-rating='.$movie->ratingBy(auth()->user()) : '') : '' }}></div>
<div
class="my-rating"
@if(isset($movie))
data-id="{{ $movie->id }}"
@else
data-id="{{ $show->id }}"
@endif
data-type="movie"
@if(auth()->check())
@if(isset($movie))
{{ $movie->ratingBy(auth()->user()) ? 'data-rating='.$movie->ratingBy(auth()->user()) : '' }}
@else
{{ $show->ratingBy(auth()->user()) ? 'data-rating='.$show->ratingBy(auth()->user()) : '' }}
@endif
@endif
>
</div>
</div>
</div>
</div>