@foreach($data as $index => $value)
@if($value['access'] == 'pay-per-view' && !\Modules\Entertainment\Models\Entertainment::isPurchased($value['season_id'],'season'))
@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($value['purchase_type'] === 'rental')
@if($value['discount'] > 0)
{{ __('messages.rent_button', ['price' => Currency::format($value['price'] - ($value['price'] * ($value['discount'] / 100)), 2)]) }}
{{ Currency::format($value['price'], 2) }}
@else
{{ __('messages.rent_button', ['price' => Currency::format($value['price'], 2)]) }}
@endif
@else
@if($value['discount'] > 0)
{{ __('messages.one_time_button', ['price' => Currency::format($value['price'] - ($value['price'] * ($value['discount'] / 100)), 2)]) }}
{{ Currency::format($value['price'], 2) }}
@else
{{ __('messages.one_time_button', ['price' => Currency::format($value['price'], 2)]) }}
@endif
@endif
@else
@foreach($value['episodes']->toArray(request()) as $episodeIndex => $episode)
-
@include('frontend::components.card.card_episode', ['data' => $episode, 'index' => $episodeIndex])
@endforeach
@endif
Unlimited
{{ \Carbon\Carbon::now()->format('d-m-Y') }} to
{{ \Carbon\Carbon::now()->addDays($value['available_for'])->format('d-m-Y') }}
- • You have {{ $value['available_for'] }} days to start watching once purchased. Unlimited validity to finish once started streaming.
- • You can watch this content multiple times until the expiration period.
- • This is a non-refundable transaction.
- • This content is only available for purchase and not part of Premium Subscription.
- • You can play your content on supported devices.
{{ $value['available_for'] }} Days
{{ $value['access_duration'] }} Hours
- • You have {{ $value['available_for'] }} days to start watching once rented.
- • After starting, the video will be available for {{ $value['access_duration'] }} hours.
- • This is a non-refundable transaction.
- • This content is not part of the Premium Subscription plan.
- • Accessible only on supported devices.
@if($value['total_episodes'] > 5)
@endif
@endforeach