@if($data['is_restricted']==1) {{__('frontend.age_restriction')}} @endif
    @foreach($data['genres'] as $gener)
  • {{ $gener['name'] }}
  • @endforeach
@if($data['access'] == 'pay-per-view' && !\Modules\Entertainment\Models\Entertainment::isPurchased($data['id'],'episode')) @endif

{{ $data['name'] }}

{!! $data['description'] !!}

  • {{ \Carbon\Carbon::parse($data['release_date'])->format('Y') }}
  • {{ $data['language'] }}
  • {{ $data['duration'] ? formatDuration($data['duration']) : '--' }}
  • @if($data['imdb_rating'] ) {{ $data['imdb_rating'] }} (IMDb) @endif
  • @if($data['content_rating']) {{ $data['content_rating'] }} @endif
@php $qualityOptions = []; if($data['enable_quality']==1){ $videoLinks = $data['video_links']; foreach($videoLinks as $link) { $qualityOptions[$link->quality] = [ 'value' => $link->type === 'Local' ? setBaseUrlWithFileName($link->url) : Crypt::encryptString($link->url), 'type' => $link->type // Add the type here ]; } } $qualityOptionsJson = json_encode($qualityOptions); $subtitleInfoJson = $data['subtitle_info'] ? json_encode($data['subtitle_info']->toArray(request())) : json_encode([]); @endphp
  • @if($data['access'] != 'pay-per-view' || \Modules\Entertainment\Models\Entertainment::isPurchased($data['id'],'episode') )
  • @php $video_url = $data['video_url_input']; $video_upload_type = $data['video_upload_type']; $plan_type = getActionPlan('video-cast'); @endphp @if(!empty($plan_type) && ($video_upload_type == "Local" || $video_upload_type == "URL")) @php $video_url11 = ($video_upload_type == "URL") ? Crypt::decryptString($video_url) : $video_url; @endphp
  • @endif @endif