Viewing file: 99b54d8cf0a9d9f1fd36947c83168bcb.php (4.93 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="form-group"> <label for="number"><?php echo app('translator')->get('admin.form.number'); ?></label> <input <?php echo e(isset($number)?'readonly':''); ?> value="<?php echo e(isset($number)?$number->number:old('number')); ?>" type="text" name="number" class="form-control" id="number" placeholder="Enter number"> </div> <div class="form-group"> <label for="platform"><?php echo app('translator')->get('admin.form.platform'); ?>
</label> <select <?php echo e(isset($number)?'disabled':''); ?> class="form-control" name="dynamic_gateway_id" id="from"> <?php if(isset($number)): ?> <option value=""><?php echo e(ucfirst(str_replace('_', ' ', $number->gateway->name))); ?></option> <?php else: ?> <?php $__currentLoopData = $gateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(isset($number) && $number->dynamic_gateway_id==$gateway->id?'selected':(old('from')==$gateway->id?'selected':'')); ?> value="<?php echo e($gateway->id); ?>"><?php echo e(ucfirst(str_replace('_', ' ', $gateway->name))); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?>
</select> <small> <?php echo e(trans('admin.gateway_api_configure')); ?>
<a class="text-danger" target="_blank" href="<?php echo e(route('admin.gateway.index')); ?>"><b>click here <i class="fas fa-external-link-alt"></i></b></a> </small> </div> <div class="form-group"> <label for="purch_price"><?php echo app('translator')->get('admin.form.purchase_price'); ?></label> <input value="<?php echo e(isset($number)?$number->purch_price:old('purch_price')); ?>" type="number" name="purch_price" class="form-control" id="purch_price" placeholder="<?php echo app('translator')->get('admin.form.input.purchase_price'); ?>"> </div> <div class="form-group"> <label for="sell_price"><?php echo app('translator')->get('admin.form.sell_price'); ?></label> <input value="<?php echo e(isset($number)?$number->sell_price:old('sell_price')); ?>" type="number" name="sell_price" class="form-control" id="sell_price" placeholder="<?php echo app('translator')->get('admin.form.input.sell_price'); ?>"> </div>
<div class="row"> <div class="form-group <?php echo e(!auth()->user()->default_number() || (isset($number->is_default) && $number->is_default=='yes')?'col-md-8':'col-md-12'); ?>"> <label for="status"><?php echo app('translator')->get('admin.form.status'); ?></label> <select class="form-control" name="status" id="status"> <option <?php echo e(isset($number) && $number->status=='Active'?'selected':(old('status')=='Active'?'selected':'')); ?> value="active"> <?php echo e(trans('admin.active')); ?></option> <option <?php echo e(isset($number) && $number->status=='Inactive'?'selected':(old('status')=='Inactive'?'selected':'')); ?> value="inactive"> <?php echo e(trans('admin.inactive')); ?></option> </select> </div>
<?php if(!auth()->user()->default_number() || (isset($number->is_default) && $number->is_default=='yes')): ?> <div class="form-group col-md-4 pt-3 mt-4"> <input type="checkbox" name="is_default" <?php echo e(isset($number->is_default) && $number->is_default=='yes'?'checked':''); ?> class="ml-4" id="idDefault"> <label class="ml-2" for="idDefault"><?php echo e(trans('admin.is_default')); ?></label> </div> <?php endif; ?> </div>
<div class="row pt-2 pb-2"> <div class="col-md-12"> <label for=""><?php echo e(trans('Capabilities')); ?></label>
<label class="ml-4" for="sms_capability"><b><?php echo e(trans('admin.sms')); ?></b></label> <input type="checkbox" <?php echo e(isset($number) && $number->sms_capability=='yes'?'checked':''); ?> class="ml-1" id="sms_capability" name="sms_capability">
<label class="ml-4" for="mms_capability"><b><?php echo e(trans('admin.mms')); ?></b></label> <input type="checkbox" <?php echo e(isset($number) && $number->mms_capability=='yes'?'checked':''); ?> class="ml-1" id="mms_capability" name="mms_capability">
<label class="ml-4" for="voice_capability"><b><?php echo e(trans('admin.voice')); ?></b></label> <input type="checkbox" <?php echo e(isset($number) && $number->voice_capability=='yes'?'checked':''); ?> class="ml-1" id="voice_capability" name="voice_capability">
<label class="ml-4" for="whatsapp_capability"><b><?php echo e(trans('admin.whatsapp')); ?></b></label> <input type="checkbox" <?php echo e(isset($number) && $number->whatsapp_capability=='yes'?'checked':''); ?> class="ml-1" id="whatsapp_capability" name="whatsapp_capability"> </div> </div> <?php /**PATH /home/picotech/domains/test.sms.picotech.app/public_html/resources/views/admin/numbers/form.blade.php ENDPATH**/ ?>
|