Viewing file: form.blade.php (20.52 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="row"> <div class="col-12 col-sm-12"> <div class="nav h-100" id="vert-tabs-tab">
<a class="nav-link active left-nav-link-plan" id="basic-info-nav"> {{trans('admin.basic_info')}} </a>
<a class="nav-link left-nav-link-plan" id="features-nav"> {{trans('admin.features')}} </a>
<a class="nav-link left-nav-link-plan" id="pricing-nav"> {{trans('admin.pricing')}} </a>
<a class="nav-link left-nav-link-plan" id="coverage-area-nav"> {{trans('admin.coverage_area')}} </a>
<a class="nav-link left-nav-link-plan" id="permission-nav"> {{trans('admin.permission')}} </a>
</div> </div>
<div class="col-12 col-sm-12 mt-3"> <div class="tab-content" id="vert-tabs-tabContent"> <div class="tab-pane text-left fade show active tab_panel" id="basic-info" role="tabpanel" aria-labelledby="vert-tabs-basic-info-tab"> <div class="form-group"> <label for=""> {{trans('admin.plan_title')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Enter a clear and descriptive name for this plan (e.g., 'Basic Plan', 'Premium Plan'). This will be displayed to customers when they choose a subscription."></i> </label> <input type="text" name="title" class="form-control" placeholder="{{trans('admin.enter_plan_title')}}" value="{{isset($plan)?$plan->title:(old('title')?old('title'):'')}}"> </div> <div class="form-group"> <label for=""> {{trans('admin.short_description')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Provide a brief summary of what this plan offers. Keep it concise and highlight the main benefits (e.g., 'Perfect for small businesses')."></i> </label> <input type="text" name="short_description" class="form-control" placeholder="{{trans('admin.enter_plan_description')}}" value="{{isset($plan)?$plan->short_description:(old('short_description')?old('short_description'):'')}}"> </div>
<div class="form-group"> <label for=""> {{trans('admin.plan_price')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Set the subscription price for this plan. Enter the amount customers will pay per billing cycle (e.g., 29.99 for monthly billing)."></i> </label> <input type="number" name="price" class="form-control" placeholder="{{trans('admin.enter_plan_price')}}" value="{{isset($plan)?$plan->price:(old('price')?old('price'):'')}}"> </div>
<div class="form-group"> <label for=""> {{trans('admin.recurring_type')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Choose how often customers will be billed: Weekly (every 7 days), Monthly (every 30 days), Yearly (every 365 days), or Custom (specify your own date range)."></i> </label> <select class="form-control" name="recurring_type" id="recurring_type"> <option {{isset($plan) && $plan->recurring_type=='weekly'?'selected':(old('recurring_type')=='weekly'?'selected':'')}} value="weekly">{{trans('admin.weekly')}}</option> <option {{isset($plan) && $plan->recurring_type=='monthly'?'selected':(old('recurring_type')=='monthly'?'selected':'')}} value="monthly">{{trans('admin.monthly')}}</option> <option {{isset($plan) && $plan->recurring_type=='yearly'?'selected':(old('recurring_type')=='yearly'?'selected':'')}} value="yearly">{{trans('admin.yearly')}}</option> <option {{isset($plan) && $plan->recurring_type=='custom'?'selected':(old('recurring_type')=='custom'?'selected':'')}} value="custom">{{trans('admin.custom')}}</option> </select> </div> <div class="form-group {{isset($plan) && $plan->recurring_type=='custom'?'':'d-none'}}" id="customRecurring"> <label> {{trans('admin.date_range')}}: <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Select the start and end date for the custom billing period. This is only used when 'Custom' recurring type is selected."></i> </label> <div class="input-group"> <div class="input-group-prepend"> <span class="input-group-text"> <i class="far fa-calendar-alt"></i> </span> </div> <input type="text" name="custom_date" value="{{isset($plan) && isset($date)?$date:''}}" class="form-control float-right" id="reservation"> </div> </div> </div>
<div class="tab-pane fade tab_panel" id="features" role="tabpanel" aria-labelledby="vert-tabs-features-tab"> <div class="form-group mb-0"> <label class="text-label"> {{trans('admin.sms_sending_limit')}} (<small>Per Month</small>) <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Set the maximum number of SMS messages a customer can send per month with this plan. Check 'Unlimited' to allow unlimited sending."></i> </label> <div class="is-unlimited float-right"> <div class="form-group"> <div class="form-check form-check-inline"> <label class="form-check-label font-weight-bold"> {{trans('admin.unlimited')}} <input data-name="sms_sending_limit" {{isset($plan) && $plan->unlimited_sms_send=='yes'?'checked':''}} name="unlimited_sms_send" type="checkbox" class="form-check-input isUnlimited" value="yes"> </label> </div> </div> </div> <input style="display: {{isset($plan) && $plan->unlimited_sms_send=='yes'?'none':'block'}}" value="{{old('sms_sending_limit')?old('sms_sending_limit'):(isset($plan)?$plan->sms_sending_limit:0)}}" type="number" name="sms_sending_limit" class="form-control" placeholder="Ex: 5" required min="0" step="0.001"> </div>
<div class="form-group mb-0 pt-3"> <label class="text-label"> {{trans('admin.maximum_contact_limit')}}* <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Define how many contacts a customer can store in their account. This limits the total number of phone numbers they can save. Check 'Unlimited' for no restrictions."></i> </label> <div class="is-unlimited float-right"> <div class="form-group"> <div class="form-check form-check-inline"> <label class="form-check-label font-weight-bold"> {{trans('admin.unlimited')}} <input data-name="max_contact" {{isset($plan) && $plan->unlimited_contact=='yes'?'checked':''}} name="unlimited_contact" type="checkbox" class="form-check-input isUnlimited" value="yes"> </label> </div> </div> </div> <input style="display: {{isset($plan) && $plan->unlimited_contact=='yes'?'none':'block'}}" value="{{old('max_contact')?old('max_contact'):(isset($plan)?$plan->max_contact:0)}}" type="number" name="max_contact" class="form-control" placeholder="Ex: 5" required min="0" step="0.001"> </div>
<div class="form-group mb-0 pt-3"> <label class="text-label"> {{trans('admin.contact_group_limit')}}* <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Set the maximum number of contact groups a customer can create. Groups help organize contacts (e.g., 'VIP Customers', 'Newsletter'). Check 'Unlimited' for no limit."></i> </label> <div class="is-unlimited float-right"> <div class="form-group"> <div class="form-check form-check-inline"> <label class="form-check-label font-weight-bold"> {{trans('admin.unlimited')}} <input data-name="contact_group_limit" {{isset($plan) && $plan->unlimited_contact_group=='yes'?'checked':''}} name="unlimited_contact_group" type="checkbox" class="form-check-input isUnlimited" value="yes"> </label> </div> </div> </div> <input style="display: {{isset($plan) && $plan->unlimited_contact_group=='yes'?'none':'block'}}" value="{{old('contact_group_limit')?old('contact_group_limit'):(isset($plan)?$plan->contact_group_limit:0)}}" type="number" name="contact_group_limit" class="form-control" placeholder="Ex: 5" required min="0" step="0.001"> </div>
<div class="form-group"> <div> <span> <strong>{{trans('admin.dlt_technology')}}</strong> <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Enable DLT (Distributed Ledger Technology) for regulatory compliance. Required in some countries for commercial SMS sending. Turn this on if your customers need DLT registration."></i> </span> <label class="switch ml-3"> <input name="is_dlt" type="checkbox"> <span class="slider"></span> </label> </div> </div>
</div>
<div class="tab-pane fade tab_panel" id="pricing" role="tabpanel" aria-labelledby="vert-tabs-pricing-tab"> <div class="form-group"> <label for=""> {{trans('admin.sms_unit_price')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Set the price per SMS when customers buy additional credits (top-up). This is the cost per message when they exceed their monthly limit or need extra credits."></i> </label> <input type="number" placeholder="{{trans('admin.unit_sms_price_TopUp')}}" name="sms_unit_price" value="{{isset($plan)?$plan->sms_unit_price:(old('sms_unit_price')?old('sms_unit_price'):'')}}" class="form-control"> </div> <div class="form-group"> <label for=""> {{trans('admin.free_sms_credit')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Enter the number of free SMS credits included when a customer first subscribes to this plan. This is a one-time bonus to help them get started."></i> </label> <input type="number" name="free_sms_credit" placeholder="{{trans('admin.free_sms_for_this_plan')}}" value="{{isset($plan)?$plan->free_sms_credit:(old('free_sms_credit')?old('free_sms_credit'):'')}}" class="form-control"> </div> </div>
<div class="tab-pane fade tab_panel" id="coverage-area" role="tabpanel" aria-labelledby="vert-tabs-coverage-area-tab"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for=""> {{trans('admin.select_an_coverage')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Select which countries and messaging services are available with this plan. You can choose multiple coverage areas. Create new coverage options if needed."></i> </label> <select name="coverage[]" class="form-control coverage_select2"> @foreach($coverages as $coverage) @php $country_name=isset(getCountryCode()[strtoupper($coverage->country)]['name'])?getCountryCode()[strtoupper($coverage->country)]['name']:''; @endphp <option value="{{$coverage->id}}">{{isset($country_name)?$country_name:''}}</option> @endforeach </select> <small class="float-right"> <a target="_blank" href="{{route('admin.coverage.create')}}">{{trans('admin.create_coverage')}}</a> </small> </div> </div> </div> </div>
<div class="tab-pane fade tab_panel" id="permission" role="tabpanel" aria-labelledby="vert-tabs-permission-tab"> <div class="row">
<div class="col-md-12"> <div class="form-group"> <label for=""> {{trans('admin.enableFor')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Choose who can subscribe to this plan: 'Customer' for end-users or 'Reseller' for partners who will resell your SMS services."></i> </label> <select name="enable_for" class="form-control"> <option {{isset($plan) && $plan->enable_for=='customer'?'selected':''}} value="customer">{{trans('admin.customers.customer')}}</option> <option {{isset($plan) && $plan->enable_for=='reseller'?'selected':''}} value="reseller">{{trans('admin.reseller')}}</option> </select> </div> </div>
<div class="col-md-6 mt-2"> <div class="form-group"> <label for=""> {{trans('admin.api_availability')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Enable API access for this plan. When set to 'Yes', customers can send SMS programmatically through your API. Choose 'No' to restrict to web interface only."></i> </label> <select name="api_availability" class="form-control"> <option {{isset($plan) && $plan->api_availability=='no'?'selected':(old('api_availability') && old('api_availability')=='no'?'selected':'')}} value="no">{{trans('admin.no')}}</option> <option {{isset($plan) && $plan->api_availability=='yes'?'selected':(old('api_availability') && old('api_availability')=='yes'?'selected':'')}} value="yes">{{trans('admin.yes')}}</option> </select> </div> </div>
<div class="col-md-6 mt-2"> <div class="form-group"> <label for=""> {{trans('admin.sender_id_verification')}} <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Require sender ID verification for this plan. When 'Yes', customers must verify their sender IDs before sending messages. This helps prevent spam and ensures compliance."></i> </label> <select name="sender_id_verification" class="form-control"> <option {{isset($plan) && $plan->sender_id_verification=='no'?'selected':(old('sender_id_verification') && old('sender_id_verification')=='no'?'selected':'')}} value="no">{{trans('admin.no')}}</option> <option {{isset($plan) && $plan->sender_id_verification=='yes'?'selected':(old('sender_id_verification') && old('sender_id_verification')=='yes'?'selected':'')}} value="yes">{{trans('admin.yes')}}</option> </select> </div> </div>
<div class="col-md-6 mt-2"> <div class="form-group"> <div> <span> <strong>{{trans('admin.form.status')}}</strong> <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Enable or disable this plan. When enabled, customers can see and subscribe to this plan. When disabled, it will be hidden from the pricing page."></i> </span> <label class="switch ml-3"> <input name="status" type="checkbox"> <span class="slider"></span> </label> </div> </div> </div>
<div class="col-md-6 mt-2"> <div class="form-group"> <div> <span> <strong>{{trans('admin.Set_As_Popular')}}</strong> <i class="fas fa-info-circle text-info ml-1" data-toggle="tooltip" data-placement="right" title="Mark this plan as 'Popular' or 'Recommended'. Popular plans are highlighted on the pricing page to attract more customers. Only mark your best-value plan as popular."></i> </span> <label class="switch ml-3"> <input name="set_as_popular" type="checkbox"> <span class="slider"></span> </label> </div> </div> </div> </div> </div> <div class="form-group mt-2"> <button type="button" disabled class="btn btn-sm btn-danger" id="previous_btn"> {{trans('admin.previous')}} </button>
<button type="button" class="btn btn-sm btn-primary float-right" id="next_btn"> {{trans('admin.Click_For_Next_Step')}} </button>
<button type="submit" class="btn btn-primary d-none submitBtn float-right"> @lang('admin.form.button.submit') </button> </div> </div> </div> </div>
|