Viewing file: c49e2e809a19d7a050f1a1f2aa198671af802968.php (10.08 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startPush('style'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/bootstrap-colorpicker.min.css')); ?>"> <?php $__env->stopPush(); ?> <?php $__env->startSection('head'); ?> <?php echo $__env->make('layouts.partials.headersection',['title'=>'Domain Settings'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12"> <div class="container-fluid"> <div class="row justify-content-center"> <div class="col-12 col-lg-8"> <div class="card card-secondary"> <div class="card-header"> <h4><?php echo e(__('Current Domain')); ?></h4> </div> <div class="card-body"> <p><?php echo e(url('/')); ?></p> </div> </div> <div class="card card-secondary"> <div class="card-header"> <h4><?php echo e(__('Requested domain')); ?></h4> <div class="card-header-action"> <a href="#" class="btn btn-success" data-toggle="modal" data-target="#createModal"><i class="<?php echo e(!empty($request) ? 'fa fa-edit' : 'fas fa-plus-circle'); ?>"></i></a> </div> </div> <div class="card-body"> <?php if(!empty($request)): ?> <p> <?php echo e($request->domain ?? ''); ?></p> <?php if($request->status == 1): ?> <span class="badge badge-success"><?php echo e(__('Connected')); ?> </span> <?php elseif($request->status == 2): ?> <span class="badge badge-warning"><?php echo e(__('Pending')); ?> </span> <?php else: ?> <span class="badge badge-danger"><?php echo e(__('Disabled')); ?> </span> <?php endif; ?> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div>
<?php if($info['custom_domain'] == true): ?> <?php if(empty($request->domain)): ?> <div class="modal fade" tabindex="-1" id="createModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form method="POST" class="basicform_with_reload" action="<?php echo e(route('seller.customdomain.store')); ?>"> <?php echo csrf_field(); ?> <div class="modal-card card"> <div class="modal-header"> <h5 class="modal-title" id="customdomain"><?php echo e(__('Add existing domain')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="card-body"> <div id="form-errors"></div> <div class="form-group"> <label><?php echo e(__('Custom domain')); ?></label> <input class="form-control" autofocus="" name="domain" type="text" placeholder="example.com" required=""> <small class="form-text text-muted"><?php echo e(__('Enter the domain you want to connect.')); ?></small> </div> <div class="form-group"> <label><?php echo e(__('Configure your DNS records')); ?></label> <small class="form-text text-muted"><?php echo e($dns->dns_configure_instruction ?? ''); ?></small> <table class="table table-nowrap card-table"> <thead> <tr> <th><?php echo e(__('Type')); ?></th> <th><?php echo e(__('Record')); ?></th> <th><?php echo e(__('Value')); ?></th> </tr> </thead> <tbody> <tr> <td><?php echo e(__('A')); ?></td> <td> </td> <td><?php echo e(env('SERVER_IP')); ?></td> </tr> <tr> <td><?php echo e(__('CNAME')); ?></td> <td><?php echo e(__('www')); ?></td> <td><?php echo e(env('CNAME_DOMAIN')); ?></td> </tr> </tbody> </table> <small class="form-text text-muted"><?php echo e($dns->support_instruction ?? ''); ?></small> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-white" data-dismiss="modal"><?php echo e(__('Cancel')); ?></button> <button type="submit" class="btn btn-primary basicbtn" ><span class="ladda-label"><?php echo e(__('Connect')); ?></span><span class="ladda-spinner"></span></button> </div> </form> </div> </div> </div>
<?php else: ?> <div class="modal fade" tabindex="-1" id="createModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form method="POST" class="basicform_with_reload" accept-charset="UTF-8" action="<?php echo e(route('seller.customdomain.update',$request->id)); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="modal-card card"> <div class="modal-header"> <h5 class="modal-title" id="customdomain"><?php echo e(__('Add existing domain')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="card-body"> <div id="form-errors"></div> <div class="form-group"> <label><?php echo e(__('Custom domain')); ?></label> <input class="form-control" autofocus="" name="domain" type="text" placeholder="example.com" required="" value="<?php echo e($request->domain ?? ''); ?>"> <small class="form-text text-muted"><?php echo e(__('Enter the domain you want to connect.')); ?></small> </div> <div class="form-group"> <label><?php echo e(__('Configure your DNS records')); ?></label> <small class="form-text text-muted"><?php echo e($dns->dns_configure_instruction ?? ''); ?></small> <table class="table table-nowrap card-table"> <thead> <tr> <th><?php echo e(__('Type')); ?></th> <th><?php echo e(__('Record')); ?></th> <th><?php echo e(__('Value')); ?></th> </tr> </thead> <tbody> <tr> <td><?php echo e(__('A')); ?></td> <td> </td> <td><?php echo e(env('SERVER_IP')); ?></td> </tr> <tr> <td><?php echo e(__('CNAME')); ?></td> <td><?php echo e(__('www')); ?></td> <td><?php echo e(env('CNAME_DOMAIN')); ?></td> </tr> </tbody> </table> <small class="form-text text-muted"><?php echo e($dns->support_instruction ?? ''); ?></small> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-white" data-dismiss="modal"><?php echo e(__('Cancel')); ?></button> <button type="submit" class="btn btn-primary basicbtn" data-style="expand-left" data-loading-text="Verify..."><span class="ladda-label"><?php echo e(__('Connect')); ?></span><span class="ladda-spinner"></span></button> </div> </form> </div> </div> </div>
<?php endif; ?> <?php endif; ?>
<?php $__env->stopSection(); ?> <?php $__env->startPush('js'); ?> <script src="<?php echo e(asset('assets/js/form.js')); ?>"></script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Volumes/my-works/laravel/dokans/script/resources/views/seller/domain/config.blade.php ENDPATH**/ ?>
|