@@ -31,7 +31,11 @@ class="inline-flex items-center gap-2 rounded-full bg-emerald-100 px-4 py-1.5 te
3131 <span class =" absolute inline-flex size-full animate-ping rounded-full bg-emerald-400 opacity-75" ></span >
3232 <span class =" relative inline-flex size-2 rounded-full bg-emerald-500" ></span >
3333 </span >
34- Early Bird Pricing Available
34+ @if ($priceIncreased )
35+ Now Available
36+ @else
37+ Early Bird Pricing Available
38+ @endif
3539 </div >
3640
3741 {{-- Title --}}
@@ -124,7 +128,7 @@ class="mt-8 flex flex-col items-center gap-4 sm:flex-row"
124128 href =" #pricing"
125129 class =" inline-flex items-center gap-2 rounded-xl bg-emerald-600 px-8 py-4 font-semibold text-white transition hover:bg-emerald-700"
126130 >
127- Get Early Bird Access &mdash ; $101
131+ Get Access &mdash ; ${{ $currentPrice } }
128132 <svg
129133 xmlns =" http://www.w3.org/2000/svg"
130134 viewBox =" 0 0 20 20"
@@ -146,6 +150,14 @@ class="text-sm font-medium text-gray-500 transition hover:text-gray-700 dark:tex
146150 </a >
147151 @endif
148152 </div >
153+
154+ @unless ($alreadyOwned )
155+ <x-course .countdown
156+ :deadline =" $priceIncreaseAt"
157+ :expired =" $priceIncreased"
158+ class =" mx-auto mt-8 w-full max-w-sm rounded-xl bg-gray-100 p-4 dark:bg-mirage"
159+ />
160+ @endunless
149161 </div >
150162 </section >
151163
@@ -504,8 +516,23 @@ class="mx-auto mt-10 grid max-w-3xl gap-6 sm:grid-cols-2"
504516 </div >
505517
506518 {{-- Pro Tier --}}
507- <div class =" relative overflow-hidden rounded-3xl bg-gradient-to-br from-emerald-50 to-teal-50 p-8 ring-2 ring-emerald-300 dark:from-emerald-950/40 dark:to-teal-950/40 dark:ring-emerald-700" >
508- <div class =" absolute right-6 top-6 rounded-full bg-emerald-600 px-3 py-1 text-xs font-bold text-white" >
519+ <div
520+ class =" relative overflow-hidden rounded-3xl bg-gradient-to-br from-emerald-50 to-teal-50 p-8 ring-2 ring-emerald-300 dark:from-emerald-950/40 dark:to-teal-950/40 dark:ring-emerald-700"
521+ x-data =" {
522+ deadline: new Date('{{ $priceIncreaseAt } } ').getTime(),
523+ expired: {{ $priceIncreased ? ' true' : ' false' } } ,
524+ init() {
525+ const check = () => {
526+ if (Date.now() >= this.deadline) {
527+ this.expired = true
528+ }
529+ }
530+ check()
531+ setInterval(check, 1000)
532+ },
533+ }"
534+ >
535+ <div x-show =" !expired" class =" absolute right-6 top-6 rounded-full bg-emerald-600 px-3 py-1 text-xs font-bold text-white" >
509536 EARLY BIRD
510537 </div >
511538
@@ -522,12 +549,30 @@ class="mx-auto mt-10 grid max-w-3xl gap-6 sm:grid-cols-2"
522549 <p class =" mt-1 text-sm text-gray-600 dark:text-gray-400" >You have full access to all content.</p >
523550 </div >
524551 @else
525- <div class =" mt-4 flex items-baseline gap-2" >
526- <span class =" text-5xl font-bold text-gray-900 dark:text-white" >$101</span >
527- <span class =" text-2xl text-gray-400 line-through" >$299</span >
528- <span class =" text-sm text-gray-500 dark:text-gray-400" >one-time</span >
552+ {{-- $199 pricing (before deadline) --}}
553+ <div x-show =" !expired" x-cloak >
554+ <div class =" mt-4 flex items-baseline gap-2" >
555+ <span class =" text-5xl font-bold text-gray-900 dark:text-white" >$199</span >
556+ <span class =" text-2xl text-gray-400 line-through" >$299</span >
557+ <span class =" text-sm text-gray-500 dark:text-gray-400" >one-time</span >
558+ </div >
559+ <p class =" mt-2 text-sm text-gray-500 dark:text-gray-400" >Early bird pricing. Lock it in now &mdash ; full access forever.</p >
560+
561+ <x-course .countdown
562+ :deadline =" $priceIncreaseAt"
563+ :expired =" $priceIncreased"
564+ class =" mt-4 rounded-xl bg-white/60 p-4 dark:bg-white/5"
565+ />
566+ </div >
567+
568+ {{-- $299 pricing (after deadline) --}}
569+ <div x-show =" expired" x-cloak >
570+ <div class =" mt-4 flex items-baseline gap-2" >
571+ <span class =" text-5xl font-bold text-gray-900 dark:text-white" >$299</span >
572+ <span class =" text-sm text-gray-500 dark:text-gray-400" >one-time</span >
573+ </div >
574+ <p class =" mt-2 text-sm text-gray-500 dark:text-gray-400" >One price. Full access forever.</p >
529575 </div >
530- <p class =" mt-2 text-sm text-gray-500 dark:text-gray-400" >Early bird pricing. Lock it in now &mdash ; full access forever.</p >
531576 @endif
532577
533578 <ul class =" mt-8 space-y-3" >
@@ -558,7 +603,7 @@ class="flex w-full items-center justify-center gap-2 rounded-xl bg-emerald-600 p
558603 </button >
559604 </form >
560605
561- <p class =" mt-4 text-center text-xs text-gray-500 dark:text-gray-400" >
606+ <p x-show = " !expired " class =" mt-4 text-center text-xs text-gray-500 dark:text-gray-400" >
562607 Early bird pricing won't last forever. Lock in the lowest price today.
563608 </p >
564609 @endunless
0 commit comments