@php $checkSequenceContent = $file->checkSequenceContent(); $sequenceContentHasError = (!empty($checkSequenceContent) and (!empty($checkSequenceContent['all_passed_items_error']) or !empty($checkSequenceContent['access_after_day_error']))); @endphp
@php $fileIcon = !empty($file) ? $file->getIconXByType() : 'document'; @endphp @svg("iconsax-lin-{$fileIcon}", ['height' => 20, 'width' => 20, 'class' => 'text-gray-500'])
{{ $file->title }}
@if($file->accessibility == 'free') {{ trans('public.free') }} @endif
{!! nl2br(clean($file->description)) !!}
@if(!empty($user) and $hasBought)
checkPassedItem())) ? 'checked' : '' }} >
@endif
{{ trans('public.volume') }} {{ ($file->volume > 0) ? $file->getVolume() : '-' }}
@if(!empty($checkSequenceContent) and $sequenceContentHasError) @elseif($file->accessibility == 'paid') @if(!empty($user) and $hasBought) @if($file->downloadable) {{ trans('home.download') }} @else {{ trans('public.play') }} @endif @else @endif @else @if($file->downloadable) {{ trans('home.download') }} @else @if(!empty($user) and $hasBought) {{ trans('public.play') }} @elseif($file->storage == 'upload_archive') {{ trans('public.play') }} @elseif(in_array($file->storage, ['iframe', 'google_drive', 'dropbox'])) {{ trans('public.play') }} @elseif($file->isVideo()) @else {{ trans('public.play') }} @endif @endif @endif