2025-02-01 15:31:47 +02:00
|
|
|
<div class="ratings">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-3 offset-2">
|
|
|
|
|
<img src="{{ asset('/img/star_rating.png') }}" alt="">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-7">
|
2025-02-10 01:58:12 +02:00
|
|
|
@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
|
2025-02-01 15:31:47 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="text-center">
|
2025-02-10 01:58:12 +02:00
|
|
|
<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>
|
2025-02-01 15:31:47 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|