@php $locale = request()->locale ?? app()->getLocale(); $storeRoute = 'bundle.store'; $updateRoute = 'bundle.update'; $thumbnailRemove = 'bundle.thumbnail.delete'; $translate = 'bundle.translate'; if (isInstructor()) { $storeRoute = 'instructor.bundle.store'; $updateRoute = 'instructor.bundle.update'; $thumbnailRemove = 'instructor.bundle.thumbnail.delete'; $translate = 'instructor.bundle.translate'; } elseif (isOrganization()) { $storeRoute = 'organization.bundle.store'; $updateRoute = 'organization.bundle.update'; $thumbnailRemove = 'organization.bundle.thumbnail.delete'; $translate = 'organization.bundle.translate'; } $translations = []; $bundle = $bundle ?? null; if ($bundle && $locale) { $translations = parse_translation($bundle, $locale); } $backendSetting = get_theme_option(key: 'backend_general') ?? null; $platformFee = $backendSetting['platform_fee'] ?? 0; $bundlePrice = isset($bundle) ? $bundle->price - $bundle->platform_fee : null; @endphp @if (is_active($translate) === 'active')