feat: ✨ Added weekly to billing_period options
This commit is contained in:
parent
f9d5238ea2
commit
681928c3ad
3 changed files with 10 additions and 2 deletions
|
@ -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'));
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue