@extends('themes::themexiaoyakankan.layout')
@php
$watch_url = '';
if (!$currentMovie->is_copyright && count($currentMovie->episodes) && $currentMovie->episodes[0]['link'] != '') {
$watch_url = $currentMovie->episodes
->sortBy([['server', 'asc']])
->groupBy('server')
->first()
->sortByDesc('name', SORT_NATURAL)
->groupBy('name')
->last()
->sortByDesc('type')
->first()
->getUrl();
}
@endphp
@section('content')
{{ $currentMovie->name }}
Quốc gia:{!! $currentMovie->regions->map(function ($region) {
return '
' . $region->name . '';
})->implode(', ') !!}
Năm:{{ $currentMovie->publish_year }}
Đạo diễn:{!! $currentMovie->directors->map(function ($director) {
return '
' . $director->name . '';
})->implode(', ') !!}
Diễn viên:{!! $currentMovie->actors->map(function ($director) {
return '
' . $director->name . '';
})->implode(', ') !!}
Nội dung: {!! strip_tags($currentMovie->content) !!}
@if ($currentMovie->showtimes)
Lịch chiếu : {{$currentMovie->showtimes}}
@endif
@if ($currentMovie->notify )
Thông báo : {{$currentMovie->notify}}
@endif
Đánh giá
({{$currentMovie->getRatingStar()}}
sao
/
{{$currentMovie->getRatingCount()}} đánh giá)
@if($watch_url)
Xem phim
@endif
@if ($currentMovie->trailer_url && strpos($currentMovie->trailer_url, 'youtube'))
@php
parse_str( parse_url( $currentMovie->trailer_url, PHP_URL_QUERY ), $my_array_of_vars );
$video_id = $my_array_of_vars['v'] ?? null;
@endphp
Trailer
@endif
Bình luận
Có thể bạn thích
@foreach ($movie_related as $movie)
@include('themes::themexiaoyakankan.inc.section.movie_card')
@endforeach
@push('scripts')