Skip to content

Commit 8815e5f

Browse files
committed
Add discount banner
1 parent 8ca212b commit 8815e5f

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
2+
<div class="bg-gradient-to-r from-zinc-200 to-slate-300 dark:from-zinc-700 dark:to-slate-800 border border-zinc-500 rounded-lg p-6 mb-6">
3+
<div class="flex items-start">
4+
<div class="flex-shrink-0">
5+
<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
6+
<path stroke-linecap="round" stroke-linejoin="round" d="M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z" />
7+
</svg>
8+
</div>
9+
<div class="ml-4 flex-1">
10+
<h3 class="font-medium">
11+
Discounted Licenses!
12+
</h3>
13+
<p class="mt-1 text-sm">
14+
As a thank you for your support of NativePHP, you can get a <b>Pro</b> or <b>Max</b> license at a
15+
significant discount.
16+
</p>
17+
<div class="mt-4">
18+
<a href="{{ route('pricing') }}" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-black hover:bg-zinc-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
19+
Get your discount
20+
</a>
21+
</div>
22+
</div>
23+
</div>
24+
</div>
25+
</div>

resources/views/customer/licenses/index.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
{{-- Wall of Love Callout for Early Adopters --}}
2323
<livewire:wall-of-love-banner />
2424

25+
<x-discounts-banner />
26+
2527
{{-- Content --}}
2628
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
2729
@if($licenses->count() > 0)

resources/views/pricing.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ class="absolute inset-0 -z-10 h-full w-full object-cover"
607607
</section>
608608

609609
{{-- Pricing Section --}}
610-
<livewire:mobile-pricing />
610+
<livewire:mobile-pricing :discounted="auth()->check()" />
611611

612612
{{-- Ultra Section --}}
613613
<x-ultra-plan />

0 commit comments

Comments
 (0)