progress
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user