feat: Added weekly to billing_period options

This commit is contained in:
IceToast 2022-06-16 14:54:06 +02:00 committed by IceToast
parent f9d5238ea2
commit 681928c3ad
No known key found for this signature in database
GPG key ID: 1464353E063A5B97
3 changed files with 10 additions and 2 deletions

View file

@ -72,7 +72,7 @@ class ProductController extends Controller
"nodes.*" => "required|exists:nodes,id",
"eggs.*" => "required|exists:eggs,id",
"disabled" => "nullable",
"billing_period" => "required|in:hourly,daily,monthly",
"billing_period" => "required|in:hourly,daily,weekly,monthly",
]);
$disabled = ! is_null($request->input('disabled'));
@ -139,7 +139,7 @@ class ProductController extends Controller
"nodes.*" => "required|exists:nodes,id",
"eggs.*" => "required|exists:eggs,id",
"disabled" => "nullable",
"billing_period" => "required|in:hourly,daily,monthly",
"billing_period" => "required|in:hourly,daily,weekly,monthly",
]);
$disabled = ! is_null($request->input('disabled'));

View file

@ -177,6 +177,10 @@
<option value="daily" @if ($product->billing_period == 'daily') selected
@endif>
{{__('Daily')}}
</option>
<option value="weekly" @if ($product->billing_period == 'weekly') selected
@endif>
{{__('Weekly')}}
</option>
<option value="monthly" @if ($product->billing_period == 'monthly') selected
@endif>

View file

@ -179,6 +179,10 @@
<option value="daily" @if ($product->billing_period == 'daily') selected
@endif>
{{__('Daily')}}
</option>
<option value="weekly" @if ($product->billing_period == 'weekly') selected
@endif>
{{__('Weekly')}}
</option>
<option value="monthly" @if ($product->billing_period == 'monthly') selected
@endif>