feat: Added weekly to billing_period options

This commit is contained in:
IceToast 2022-06-16 14:54:06 +02:00
parent 5c37dbcc51
commit 9e8bd0a2d3
3 changed files with 10 additions and 2 deletions

View file

@ -73,7 +73,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'));
@ -140,7 +140,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>