@php $startTopicId = $start_topic_id ?? null; $auth = $auth ?? ''; $purchaseCheck = $purchaseCheck ?? ''; if ($auth && $purchaseCheck !== false) { $route = route('play.course', [ 'slug' => $course->slug, 'topic_id' => $topic->id, 'type' => $topic->topic_type?->slug, 'chapter_id' => $chapterId ?? null, ]); } else { $route = '#'; } @endphp