@php $bundle = $bundlesPurchase?->courseBundle ?? []; $currency = $bundle?->currency ?? 'USD-$'; $currencySymbol = get_currency_symbol($currency); $checkMethod = check_method_name($bundle, 'checkExpiredPurchaseWithSubscription'); if ($checkMethod) { $purchaseExpired = $bundle->checkExpiredPurchaseWithSubscription( $bundlesPurchase->id, $bundlesPurchase?->bundle_id, ); } @endphp @if ($bundle->courses()->count() > 0) @php $thumbnail = $bundle?->thumbnail && fileExists('lms/courses/bundles', $bundle?->thumbnail) == true ? asset('storage/lms/courses/bundles/' . $bundle?->thumbnail) : asset('lms/assets/images/placeholder/thumbnail612.jpg'); $bundleTranslations = parse_translation($bundle); @endphp
course-thumb @if ($bundlesPurchase->subscription_id) {{ translate('Subscription') }} @endif
{{ $bundleTranslations['title'] ?? $bundle?->title }}
@if (!$bundlesPurchase->subscription_id)
{{ $currencySymbol }}{{ $bundlesPurchase->price }}
@endif
@if (isset($purchaseExpired) && $purchaseExpired) {{ translate('Subscription Plan Expired') }} @else {{ translate('Continue') }} @endif
@else @endif