@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']))
@if($data['purchase_type'] === 'rental')
{!! __('messages.rental_info', [
'days' => $data['available_for'],
'hours' => $data['access_duration']
]) !!}
@else
{!! __('messages.purchase_info', [
'days' => $data['available_for'],
]) !!}
@endif
@if($data['purchase_type'] === 'rental')
@if($data['discount'] > 0)
{{ __('messages.rent_button', ['price' => Currency::format($data['price'] - ($data['price'] * ($data['discount'] / 100)), 2)]) }}
{{ Currency::format($data['price'], 2) }}
@else
{{ __('messages.rent_button', ['price' => Currency::format($data['price'], 2)]) }}
@endif
@else
@if($data['discount'] > 0)
{{ __('messages.one_time_button', ['price' => Currency::format($data['price'] - ($data['price'] * ($data['discount'] / 100)), 2)]) }}
{{ Currency::format($data['price'], 2) }}
@else
{{ __('messages.one_time_button', ['price' => Currency::format($data['price'], 2)]) }}
@endif
@endif
@endif
{{ $data['name'] }}
{!! $data['description'] !!}
@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']) )
@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