@extends(getTemplate().'.view.layout.layout') @section('title') Special Offer - {{ $purchasedCourse->title }} @endsection @section('page')

Your course is ready!

Wait — here's a special offer just for you

{{ $purchasedCourse->title }}

Purchase confirmed — you now have full access

Go to course
@if(count($relatedCourses) > 0)
🎯 Add another course for {{ $discountPercent }}% off — limited time!
@foreach($relatedCourses as $course) @php $originalPrice = $course->price; $discountedPrice = round($originalPrice * (100 - $discountPercent) / 100); $alreadyOwned = in_array($course->id, $ownedCourseIds); @endphp

{{ $course->title }}

@if($alreadyOwned) ✓ You own this @else
{{ currencySign() }}{{ number_format($originalPrice) }} {{ currencySign() }}{{ number_format($discountedPrice) }} -{{ $discountPercent }}%

You save {{ currencySign() }}{{ number_format($originalPrice - $discountedPrice) }}

Add for {{ currencySign() }}{{ number_format($discountedPrice) }} @endif
@endforeach
@else
No additional courses available in this category right now.
@endif
@endsection