Skip to content

Commit a460b36

Browse files
committed
Pricing wip
1 parent 6329dd2 commit a460b36

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

resources/views/settings/subscription/tiers/actions/_elemental.blade.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@
66
@endphp
77
@if ($user->hasPayPal())
88
@if (!$user->isElemental())
9-
<a class="btn2 btn-block btn-sm btn-primary" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
9+
<a class="btn2 btn-block btn-primary" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
1010
{{ __('tiers.actions.subscribe.choose', ['tier' => $tier->name]) }}
1111
</a>
1212
@endif
1313
@else
1414
@if($user->subscribedToPrice($tier->monthlyPlans(), 'kanka'))
15-
<a class="btn2 btn-block btn-sm disabled">
15+
<a class="btn2 btn-block disabled">
1616
{{ __('tiers.current') }}
1717
</a>
1818
@elseif ($user->subscribedToPrice($tier->plans(), 'kanka'))
19-
<a class="btn2 btn-block btn-sm disabled">
19+
<a class="btn2 btn-block disabled">
2020
{{ __('settings.subscription.subscription.actions.downgrading') }}
2121
</a>
2222
@else
23-
<a class="btn2 btn-block btn-sm btn-primary price-monthly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'monthly']) }}">
23+
<a class="btn2 btn-block btn-primary price-monthly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'monthly']) }}">
2424
{{ __('tiers.actions.subscribe.choose', ['tier' => $tier->name]) }}
2525
</a>
2626
@endif
2727

2828
@if($user->subscribedToPrice($tier->yearlyPlans(), 'kanka'))
29-
<a class="btn2 btn-block btn-sm disabled price-yearly">
29+
<a class="btn2 btn-block disabled price-yearly">
3030
{{ __('tiers.current') }}
3131
</a>
3232
@else
33-
<a class="btn2 btn-block btn-sm btn-primary price-yearly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
33+
<a class="btn2 btn-block btn-primary price-yearly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
3434
{{ __('tiers.actions.subscribe.choose', ['tier' => $tier->name]) }}
3535
</a>
3636
@endif

resources/views/settings/subscription/tiers/actions/_kobold.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php /** @var \App\Models\TierPrice $current */?>
22
@if (!$user->hasPayPal())
33
@if(empty($current))
4-
<span class="btn2 btn-block btn-sm">
4+
<span class="btn2 btn-block">
55
{{ __('tiers.current') }}
66
</span>
77
@else
8-
<a class="btn2 btn-block btn-sm btn-error " data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => 1]) }}">
8+
<a class="btn2 btn-block btn-error " data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => 1]) }}">
99
{{ __('settings.subscription.subscription.actions.cancel') }}
1010
</a>
1111
@endif

resources/views/settings/subscription/tiers/actions/_owlbear.blade.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@
66
@endphp
77
@if ($user->hasPayPal())
88
@if (!$user->isWyvern() && !$user->isElemental())
9-
<a class="btn2 btn-block btn-sm btn-primary" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
9+
<a class="btn2 btn-block btn-primary" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
1010
{{ __('tiers.actions.subscribe.choose', ['tier' => $tier->name]) }}
1111
</a>
1212
@endif
1313
@else
1414
@if ($user->isElemental())
15-
<a class="btn2 btn-block btn-sm disabled">
15+
<a class="btn2 btn-block disabled">
1616
{{ __('settings.subscription.subscription.actions.downgrading') }}
1717
</a>
1818
@else
1919
@if($user->subscribedToPrice($tier->monthlyPlans(), 'kanka'))
20-
<a class="btn2 btn-block btn-sm disabled price-monthly">
20+
<a class="btn2 btn-block disabled price-monthly">
2121
{{ __('tiers.current') }}
2222
</a>
2323
@else
24-
<a class="btn2 btn-block btn-sm btn-primary price-monthly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'monthly']) }}">
24+
<a class="btn2 btn-block btn-primary price-monthly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'monthly']) }}">
2525
{{ __('tiers.actions.subscribe.choose', ['tier' => $tier->name]) }}
2626
</a>
2727
@endif
2828

2929
@if($user->subscribedToPrice($tier->yearlyPlans(), 'kanka'))
30-
<a class="btn2 btn-block btn-sm disabled price-yearly">
30+
<a class="btn2 btn-block disabled price-yearly">
3131
{{ __('tiers.current') }}
3232
</a>
3333
@else
34-
<a class="btn2 btn-block btn-sm btn-primary price-yearly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
34+
<a class="btn2 btn-block btn-primary price-yearly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
3535
{{ __('tiers.actions.subscribe.choose', ['tier' => $tier->name]) }}
3636
</a>
3737
@endif

resources/views/settings/subscription/tiers/actions/_wyvern.blade.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@
66
@endphp
77
@if ($user->hasPayPal())
88
@if (!$user->isWyvern() && !$user->isElemental())
9-
<a class="btn2 btn-block btn-sm btn-primary" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
9+
<a class="btn2 btn-block btn-primary" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
1010
{{ __('tiers.actions.subscribe.choose', ['tier' => $tier->name]) }}
1111
</a>
1212
@endif
1313
@else
1414
@if($user->subscribedToPrice($tier->monthlyPlans(), 'kanka'))
15-
<a class="btn2 btn-block btn-sm disabled">
15+
<a class="btn2 btn-block disabled">
1616
{{ __('tiers.current') }}
1717
</a>
1818
@elseif ($user->subscribedToPrice($tier->plans(), 'kanka'))
19-
<a class="btn2 btn-block btn-sm disabled">
19+
<a class="btn2 btn-block disabled">
2020
{{ __('settings.subscription.subscription.actions.downgrading') }}
2121
</a>
2222
@else
23-
<a class="btn2 btn-block btn-sm btn-primary price-monthly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'monthly']) }}">
23+
<a class="btn2 btn-block btn-primary price-monthly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'monthly']) }}">
2424
{{ __('tiers.actions.subscribe.choose', ['tier' => $tier->name]) }}
2525
</a>
2626
@endif
2727

2828

2929
@if($user->subscribedToPrice($tier->yearlyPlans(), 'kanka'))
30-
<a class="btn2 btn-block btn-sm disabled">
30+
<a class="btn2 btn-block disabled">
3131
{{ __('tiers.current') }}
3232
</a>
3333
@else
34-
<a class="btn2 btn-block btn-sm btn-primary price-yearly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
34+
<a class="btn2 btn-block btn-primary price-yearly" data-toggle="dialog" data-target="subscribe-confirm" data-url="{{ route('settings.subscription.change', ['tier' => $tier, 'period' => 'yearly']) }}">
3535
{{ __('tiers.actions.subscribe.choose', ['tier' => $tier->name]) }}
3636
</a>
3737
@endif

0 commit comments

Comments
 (0)