@extends('themes::themexingkong.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 @push('header') @endpush @section('content')

{{ $currentMovie->name }}

{{ $currentMovie->origin_name }}

{!! $currentMovie->categories->map(function ($category) { return '' . $category->name . ''; })->implode(', ') !!} {!! $currentMovie->regions->map(function ($region) { return '' . $region->name . ''; })->implode(', ') !!} {{ $currentMovie->publish_year }}

Ngôn ngữ: {{ $currentMovie->language }} {{ $currentMovie->quality }}

Diễn viên: {!! $currentMovie->actors->map(function ($actor) { return '' . $actor->name . ''; })->implode(', ') !!}

Đạo diễn: {!! $currentMovie->directors->map(function ($director) { return '' . $director->name . ''; })->implode(', ') !!}

@if ($watch_url) Xem Phim @endif @if (strpos($currentMovie->trailer_url, 'youtube')) Trailer @endif
@if ($watch_url)

Xem phim {{ $currentMovie->name }}

    @php $currentMovie->episodes ->sortBy([['name', 'desc'], ['type', 'desc']]) ->sortByDesc('name', SORT_NATURAL) ->unique('name') ->take(8) ->map(function ($episode) { echo '
  • Tập ' . $episode->name . '
  • '; }); @endphp
@endif @include('themes::themexingkong.inc.related_movie') @include('themes::themexingkong.inc.comment')
@include('themes::themexingkong.inc.right_bar') @if (strpos($currentMovie->trailer_url, 'youtube')) @php try { parse_str(parse_url($currentMovie->trailer_url, PHP_URL_QUERY), $parse_url); $trailer_id = $parse_url['v']; } catch (\Throwable $th) { $trailer_id = ''; } @endphp @endif @endsection @push('scripts') {!! setting('site_scripts_facebook_sdk') !!} @endpush