@if($data['is_restricted'] == 1) {{__('frontend.age_restriction')}} @endif
    @if(isset($data['genres']) && $data['genres']->isNotEmpty()) @foreach($data['genres'] as $index => $genreResource)
  • {{ $genreResource->name ?? '--' }} @if(!$loop->last) @endif
  • @endforeach @else
  • No genres found
  • @endif
@if($data['your_review'] == null)
@if(Auth::check()) @else {{ __('frontend.rate_this') }} @endif
{{-- @else @if(Auth::check())
@endif --}} @endif
@if($data['movie_access'] == 'pay-per-view' && !\Modules\Entertainment\Models\Entertainment::isPurchased($data['id'],$data['type'])) @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
@php $qualityOptions = []; if($data['type']=='movie'){ $videoLinks = $data['video_links']; $episode_id=''; $type=$data['video_upload_type']; $video_url= $data['video_upload_type']=== 'Local' ? $data['video_url_input'] : $data['video_url_input'] ; if($data['enable_quality']==1){ 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 ]; } } }else{ $episodeData=$data['episodeData']; $videoLinks = $episodeData['video_links']; $episode_id = $episodeData['id']; $type=$episodeData['video_upload_type']; $video_url= $episodeData['video_upload_type']=== 'Local' ? ($episodeData['video_url_input']) : Crypt::encryptString($episodeData['video_url_input']) ; 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); if ($data['type'] == 'movie' && isset($data['subtitle_info'])) { $subtitleInfoJson = json_encode($data['subtitle_info']->toArray(request())); } elseif ($data['type'] == 'tvshow' && isset($episodeData) && isset($episodeData['subtitle_info'])) { $subtitleInfoJson = json_encode($episodeData['subtitle_info']->toArray(request())); } else { $subtitleInfoJson = json_encode([]); } $Isepisodepurhcase = false; if(isset($episodeData) && isset($episodeData['access']) && $episodeData['access'] == 'pay-per-view') { $Isepisodepurhcase = \Modules\Entertainment\Models\Entertainment::isPurchased($episode_id,'episode'); } @endphp @if($data['movie_access'] != 'pay-per-view' || \Modules\Entertainment\Models\Entertainment::isPurchased($data['id'],$data['type']) )
@if( isset($episodeData) && isset($episodeData['access']) && $episodeData['access'] == 'pay-per-view' && !$Isepisodepurhcase ) {{ __('frontend.watch_now') }} @else @endif
@endif {{-- @dd($data); --}}
  • @php $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