feat: ✨ Added weekly to billing_period options
This commit is contained in:
parent
5c37dbcc51
commit
9e8bd0a2d3
|
@ -73,7 +73,7 @@ class ProductController extends Controller
|
||||||
"nodes.*" => "required|exists:nodes,id",
|
"nodes.*" => "required|exists:nodes,id",
|
||||||
"eggs.*" => "required|exists:eggs,id",
|
"eggs.*" => "required|exists:eggs,id",
|
||||||
"disabled" => "nullable",
|
"disabled" => "nullable",
|
||||||
"billing_period" => "required|in:hourly,daily,monthly",
|
"billing_period" => "required|in:hourly,daily,weekly,monthly",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$disabled = !is_null($request->input('disabled'));
|
$disabled = !is_null($request->input('disabled'));
|
||||||
|
@ -140,7 +140,7 @@ class ProductController extends Controller
|
||||||
"nodes.*" => "required|exists:nodes,id",
|
"nodes.*" => "required|exists:nodes,id",
|
||||||
"eggs.*" => "required|exists:eggs,id",
|
"eggs.*" => "required|exists:eggs,id",
|
||||||
"disabled" => "nullable",
|
"disabled" => "nullable",
|
||||||
"billing_period" => "required|in:hourly,daily,monthly",
|
"billing_period" => "required|in:hourly,daily,weekly,monthly",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$disabled = !is_null($request->input('disabled'));
|
$disabled = !is_null($request->input('disabled'));
|
||||||
|
|
|
@ -177,6 +177,10 @@
|
||||||
<option value="daily" @if ($product->billing_period == 'daily') selected
|
<option value="daily" @if ($product->billing_period == 'daily') selected
|
||||||
@endif>
|
@endif>
|
||||||
{{__('Daily')}}
|
{{__('Daily')}}
|
||||||
|
</option>
|
||||||
|
<option value="weekly" @if ($product->billing_period == 'weekly') selected
|
||||||
|
@endif>
|
||||||
|
{{__('Weekly')}}
|
||||||
</option>
|
</option>
|
||||||
<option value="monthly" @if ($product->billing_period == 'monthly') selected
|
<option value="monthly" @if ($product->billing_period == 'monthly') selected
|
||||||
@endif>
|
@endif>
|
||||||
|
|
|
@ -179,6 +179,10 @@
|
||||||
<option value="daily" @if ($product->billing_period == 'daily') selected
|
<option value="daily" @if ($product->billing_period == 'daily') selected
|
||||||
@endif>
|
@endif>
|
||||||
{{__('Daily')}}
|
{{__('Daily')}}
|
||||||
|
</option>
|
||||||
|
<option value="weekly" @if ($product->billing_period == 'weekly') selected
|
||||||
|
@endif>
|
||||||
|
{{__('Weekly')}}
|
||||||
</option>
|
</option>
|
||||||
<option value="monthly" @if ($product->billing_period == 'monthly') selected
|
<option value="monthly" @if ($product->billing_period == 'monthly') selected
|
||||||
@endif>
|
@endif>
|
||||||
|
|
Loading…
Reference in a new issue