-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subscription: Allow changing currency (#952)
* Subscription: Allow changing currency --------- Co-authored-by: spitfire305 <[email protected]>
- Loading branch information
1 parent
0022418
commit 6de7679
Showing
7 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
resources/views/settings/subscription/currency/_blocked.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<x-grid type="1/1"> | ||
<x-alert type="warning"> | ||
<p> | ||
{!! __('settings.subscription.helpers.currency_blocked', ['email' => '<a href="mailto' . config('app.email') . '">' . config('app.email') . '</a>'])!!} | ||
{!! __('settings.subscription.helpers.currency_block', ['email' => '<a href="mailto' . config('app.email') . '">' . config('app.email') . '</a>'])!!} | ||
</p> | ||
</x-alert> | ||
</x-grid> |
14 changes: 14 additions & 0 deletions
14
resources/views/settings/subscription/currency/_form.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
<x-grid type="1/1"> | ||
@if (auth()->user()->subscription('kanka')?->ended()) | ||
@include('settings.subscription.currency._reset') | ||
@endif | ||
|
||
<x-forms.field field="currency" :label="__('settings.subscription.fields.currency')"> | ||
<x-forms.select name="currency" :options="$currencies" :selected="auth()->user()->currency()" /> | ||
</x-forms.field> | ||
|
||
@if (auth()->user()->subscription('kanka')?->ended()) | ||
<x-forms.field field="reset_billing" :required="true" :label=" __('settings.subscription.fields.reset')"> | ||
<input type="hidden" name="reset_billing" value="0" /> | ||
<x-checkbox :text="__('settings.subscription.fields.reset_billing')"> | ||
<input type="checkbox" name="reset_billing" value="1" required/> | ||
</x-checkbox> | ||
</x-forms.field> | ||
@endif | ||
|
||
</x-grid> |
7 changes: 7 additions & 0 deletions
7
resources/views/settings/subscription/currency/_reset.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<x-grid type="1/1"> | ||
<x-alert type="warning"> | ||
<p> | ||
{!! __('settings.subscription.helpers.currency_reset') !!} | ||
</p> | ||
</x-alert> | ||
</x-grid> |