⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.162
Server IP:
147.93.29.146
Server:
Linux server.tagooz.co 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
webstoremaker
/
www
/
storage
/
framework
/
views
/
View File Name :
f65d9c64bae569374ff774add9ffc52517c53320.php
<?php $setLang = \App\Models\User\Language::where([ ['code', request()->input('language')], ['user_id',Auth::id()] ])->first(); $userDefaultLang = \App\Models\User\Language::where([ ['user_id',Auth::id()], ['is_default',1] ])->first(); $userLanguages = \App\Models\User\Language::where('user_id',Auth::id())->get(); ?> <?php if(!empty($setLang) && $setLang->rtl == 1): ?> <?php $__env->startSection('styles'); ?> <style> form input, form textarea, form select, select { direction: rtl; } form .note-editor.note-frame .note-editing-area .note-editable { direction: rtl; text-align: right; } </style> <?php $__env->stopSection(); ?> <?php endif; ?> <?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title"><?php echo e(__('Form Builder')); ?></h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="<?php echo e(route('user-dashboard')); ?>"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('Quote Management')); ?></a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('Form Builder')); ?></a> </li> </ul> </div> <div class="row" id="app"> <div class="col-lg-7"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-lg-8"> <div class="card-title"><?php echo e(__('Input Fields')); ?></div> </div> <div class="col-lg-4"> <?php if(!is_null($userDefaultLang)): ?> <?php if(!empty($userLanguages)): ?> <select name="userLanguage" class="form-control" onchange="window.location='<?php echo e(url()->current() . '?language='); ?>'+this.value"> <option value="" selected disabled><?php echo e(__('Select a Language')); ?></option> <?php $__currentLoopData = $userLanguages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($lang->code); ?>" <?php echo e($lang->code == request()->input('language') ? 'selected' : ''); ?>><?php echo e($lang->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php endif; ?> <?php endif; ?> </div> </div> </div> <div class="card-body"> <p class="text-warning">** <?php echo e(__('Do not create')); ?> <strong class="text-danger"><?php echo e(__('Name & Email')); ?></strong> <?php echo e(__('input field, it will be in the Request a Quote form By default.')); ?></p> <?php if(count($inputs) > 0): ?> <div id="sortable"> <?php $__currentLoopData = $inputs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $input): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($input->type == 1): ?> <form class="ui-state-default" action="<?php echo e(route('user.quote.inputDelete')); ?>" method="post" data-id="<?php echo e($input->id); ?>"> <?php echo e(csrf_field()); ?> <input type="hidden" name="input_id" value="<?php echo e($input->id); ?>"> <div class="form-group"> <label for=""><?php echo e($input->label); ?> <?php if($input->required == 1): ?> <span>**</span> <?php elseif($input->required == 0): ?> (<?php echo e(__('Optional')); ?>) <?php endif; ?></label> <div class="row"> <div class="col-md-10"> <input class="form-control" type="text" name="" value="" placeholder="<?php echo e($input->placeholder); ?>"> </div> <div class="col-md-1"> <a class="btn btn-warning btn-sm" href="<?php echo e(route('user.quote.inputEdit', $input->id) . '?language=' . request()->input('language')); ?>"> <i class="fas fa-edit"></i> </a> </div> <div class="col-md-1"> <button class="btn btn-danger btn-sm" type="submit"> <i class="fa fa-times"></i> </button> </div> </div> </div> </form> <?php elseif($input->type == 2): ?> <form class="ui-state-default" action="<?php echo e(route('user.quote.inputDelete')); ?>" method="post" data-id="<?php echo e($input->id); ?>"> <?php echo e(csrf_field()); ?> <input type="hidden" name="input_id" value="<?php echo e($input->id); ?>"> <div class="form-group"> <label for=""><?php echo e($input->label); ?> <?php if($input->required == 1): ?> <span>**</span> <?php elseif($input->required == 0): ?> (<?php echo e(__('Optional')); ?>) <?php endif; ?></label> <div class="row"> <div class="col-md-10"> <select class="form-control" name=""> <option value="" selected disabled><?php echo e($input->placeholder); ?></option> <?php $__currentLoopData = $input->quote_input_options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value=""><?php echo e($option->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-md-1"> <a class="btn btn-warning btn-sm" href="<?php echo e(route('user.quote.inputEdit', $input->id) . '?language=' . request()->input('language')); ?>"> <i class="fas fa-edit"></i> </a> </div> <div class="col-md-1"> <button class="btn btn-danger btn-sm" type="submit"> <i class="fa fa-times"></i> </button> </div> </div> </div> </form> <?php elseif($input->type == 3): ?> <form class="ui-state-default" action="<?php echo e(route('user.quote.inputDelete')); ?>" method="post" data-id="<?php echo e($input->id); ?>"> <?php echo e(csrf_field()); ?> <input type="hidden" name="input_id" value="<?php echo e($input->id); ?>"> <div class="form-group"> <label for=""><?php echo e($input->label); ?> <?php if($input->required == 1): ?> <span>**</span> <?php elseif($input->required == 0): ?> (<?php echo e(__('Optional')); ?>) <?php endif; ?></label> <div class="row"> <div class="col-md-10"> <?php $__currentLoopData = $input->quote_input_options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="custom-control custom-checkbox"> <input type="checkbox" id="customRadio<?php echo e($option->id); ?>" name="customRadio" class="custom-control-input"> <label class="custom-control-label" for="customRadio<?php echo e($option->id); ?>"><?php echo e($option->name); ?></label> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="col-md-1"> <a class="btn btn-warning btn-sm" href="<?php echo e(route('user.quote.inputEdit', $input->id) . '?language=' . request()->input('language')); ?>"> <i class="fas fa-edit"></i> </a> </div> <div class="col-md-1"> <button type="submit" class="btn btn-danger btn-sm"> <i class="fa fa-times"></i> </button> </div> </div> </div> </form> <?php elseif($input->type == 4): ?> <form class="ui-state-default" action="<?php echo e(route('user.quote.inputDelete')); ?>" method="post" data-id="<?php echo e($input->id); ?>"> <?php echo e(csrf_field()); ?> <input type="hidden" name="input_id" value="<?php echo e($input->id); ?>"> <div class="form-group"> <label for=""><?php echo e($input->label); ?> <?php if($input->required == 1): ?> <span>**</span> <?php elseif($input->required == 0): ?> (<?php echo e(__('Optional')); ?>) <?php endif; ?></label> <div class="row"> <div class="col-md-10"> <textarea class="form-control" name="" rows="5" cols="80" placeholder="<?php echo e($input->placeholder); ?>"></textarea> </div> <div class="col-md-1"> <a class="btn btn-warning btn-sm" href="<?php echo e(route('user.quote.inputEdit', $input->id) . '?language=' . request()->input('language')); ?>"> <i class="fas fa-edit"></i> </a> </div> <div class="col-md-1"> <button type="submit" class="btn btn-danger btn-sm"> <i class="fa fa-times"></i> </button> </div> </div> </div> </form> <?php elseif($input->type == 6): ?> <form class="ui-state-default" action="<?php echo e(route('user.quote.inputDelete')); ?>" method="post" data-id="<?php echo e($input->id); ?>"> <?php echo e(csrf_field()); ?> <input type="hidden" name="input_id" value="<?php echo e($input->id); ?>"> <div class="form-group"> <label for=""><?php echo e($input->label); ?> <?php if($input->required == 1): ?> <span>**</span> <?php elseif($input->required == 0): ?> (<?php echo e(__('Optional')); ?>) <?php endif; ?></label> <div class="row"> <div class="col-md-10"> <input type="text" class="form-control datepicker" autocomplete="off" placeholder="<?php echo e($input->placeholder); ?>"> </div> <div class="col-md-1"> <a class="btn btn-warning btn-sm" href="<?php echo e(route('user.quote.inputEdit', $input->id) . '?language=' . request()->input('language')); ?>"> <i class="fas fa-edit"></i> </a> </div> <div class="col-md-1"> <button type="submit" class="btn btn-danger btn-sm"> <i class="fa fa-times"></i> </button> </div> </div> </div> </form> <?php elseif($input->type == 7): ?> <form class="ui-state-default" action="<?php echo e(route('user.quote.inputDelete')); ?>" method="post" data-id="<?php echo e($input->id); ?>"> <?php echo e(csrf_field()); ?> <input type="hidden" name="input_id" value="<?php echo e($input->id); ?>"> <div class="form-group"> <label for=""><?php echo e($input->label); ?> <?php if($input->required == 1): ?> <span>**</span> <?php elseif($input->required == 0): ?> (<?php echo e(__('Optional')); ?>) <?php endif; ?></label> <div class="row"> <div class="col-md-10"> <input type="text" class="form-control timepicker" autocomplete="off" placeholder="<?php echo e($input->placeholder); ?>"> </div> <div class="col-md-1"> <a class="btn btn-warning btn-sm" href="<?php echo e(route('user.quote.inputEdit', $input->id) . '?language=' . request()->input('language')); ?>"> <i class="fas fa-edit"></i> </a> </div> <div class="col-md-1"> <button type="submit" class="btn btn-danger btn-sm"> <i class="fa fa-times"></i> </button> </div> </div> </div> </form> <?php elseif($input->type == 5): ?> <form class="ui-state-default" action="<?php echo e(route('user.quote.inputDelete')); ?>" method="post" data-id="<?php echo e($input->id); ?>"> <?php echo e(csrf_field()); ?> <input type="hidden" name="input_id" value="<?php echo e($input->id); ?>"> <div class="form-group"> <label for=""><?php echo e($input->label); ?> <?php if($input->required == 1): ?> <span>**</span> <?php elseif($input->required == 0): ?> (<?php echo e(__('Optional')); ?>) <?php endif; ?></label> <div class="row"> <div class="col-md-10"> <input type="file"> </div> <div class="col-md-1"> <a class="btn btn-warning btn-sm" href="<?php echo e(route('user.quote.inputEdit', $input->id) . '?language=' . request()->input('language')); ?>"> <i class="fas fa-edit"></i> </a> </div> <div class="col-md-1"> <button type="submit" class="btn btn-danger btn-sm"> <i class="fa fa-times"></i> </button> </div> </div> </div> </form> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?> </div> </div> </div> <div class="col-lg-5"> <div class="card"> <div class="card-header"> <div class="card-title"><?php echo e(__('Create Input')); ?></div> </div> <form id="ajaxForm" action="<?php echo e(route('user.quote.form.store')); ?>" method="post" enctype="multipart/form-data"> <?php echo e(csrf_field()); ?> <input type="hidden" name="language_id" value="<?php echo e($lang_id); ?>"> <div class="form-group"> <label for=""><strong><?php echo e(__('Field Type')); ?></strong></label> <div class=""> <div class="form-check form-check-inline"> <input name="type" class="form-check-input" type="radio" id="inlineRadio1" value="1" v-model="type" @change="typeChange()"> <label class="form-check-label" for="inlineRadio1"><?php echo e(__('Text Field')); ?></label> </div> <div class="form-check form-check-inline"> <input name="type" class="form-check-input" type="radio" id="inlineRadio2" value="2" v-model="type" @change="typeChange()"> <label class="form-check-label" for="inlineRadio2"><?php echo e(__('Select')); ?></label> </div> <div class="form-check form-check-inline"> <input name="type" class="form-check-input" type="radio" id="inlineRadio3" value="3" v-model="type" @change="typeChange()"> <label class="form-check-label" for="inlineRadio3"><?php echo e(__('Checkbox')); ?></label> </div> <div class="form-check form-check-inline"> <input name="type" class="form-check-input" type="radio" id="inlineRadio4" value="4" v-model="type" @change="typeChange()"> <label class="form-check-label" for="inlineRadio4"><?php echo e(__('Textarea')); ?></label> </div> <div class="form-check form-check-inline"> <input name="type" class="form-check-input" type="radio" id="inlineRadio6" value="6" v-model="type" @change="typeChange()"> <label class="form-check-label" for="inlineRadio6"><?php echo e(__('Datepicker')); ?></label> </div> <div class="form-check form-check-inline"> <input name="type" class="form-check-input" type="radio" id="inlineRadio7" value="7" v-model="type" @change="typeChange()"> <label class="form-check-label" for="inlineRadio7"><?php echo e(__('Timepicker')); ?></label> </div> <div class="form-check form-check-inline"> <input name="type" class="form-check-input" type="radio" id="inlineRadio5" value="5" v-model="type" @change="typeChange()"> <label class="form-check-label" for="inlineRadio5"><?php echo e(__('File')); ?></label> </div> </div> <p id="errtype" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label>Required</label> <div class="selectgroup w-100"> <label class="selectgroup-item"> <input type="radio" name="required" value="1" class="selectgroup-input" checked> <span class="selectgroup-button"><?php echo e(__('Yes')); ?></span> </label> <label class="selectgroup-item"> <input type="radio" name="required" value="0" class="selectgroup-input"> <span class="selectgroup-button"><?php echo e(__('No')); ?></span> </label> </div> <p id="errrequired" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for=""><strong><?php echo e(__('Label Name')); ?></strong></label> <div class=""> <input type="text" class="form-control" name="label" value="" placeholder="<?php echo e(__('Enter Label Name')); ?>"> </div> <p id="errlabel" class="mb-0 text-danger em"></p> </div> <div class="form-group" v-if="placeholdershow"> <label for=""><strong><?php echo e(__('Placeholder')); ?></strong></label> <div class=""> <input type="text" class="form-control" name="placeholder" value="" placeholder="<?php echo e(__('Enter Placeholder')); ?>"> </div> <p id="errplaceholder" class="mb-0 text-danger em"></p> </div> <div class="form-group" v-if="counter > 0" id="optionarea"> <label for=""><strong><?php echo e(__('Options')); ?></strong></label> <div class="row mb-2 counterrow" v-for="n in counter" :id="'counterrow'+n"> <div class="col-md-10"> <input type="text" class="form-control" name="options[]" value="" placeholder="<?php echo e(__('Option label')); ?>"> </div> <div class="col-md-1"> <button type="button" class="btn btn-danger btn-md text-white btn-sm" @click="removeOption(n)"><i class="fa fa-times"></i></button> </div> </div> <p id="erroptions.0" class="mb-2 text-danger em"></p> <button type="button" class="btn btn-success btn-sm text-white" @click="addOption()"><i class="fa fa-plus"></i> <?php echo e(__('Add Option')); ?></button> </div> <div class="form-group text-center"> <button id="submitBtn" type="submit" class="btn btn-primary btn-sm"><?php echo e(__('ADD FIELD')); ?></button> </div> </form> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> "use strict"; var orderUpdateUrl = "<?php echo e(route('user.quote.orderUpdate')); ?>"; </script> <script src="<?php echo e(asset('assets/front/user/js/quote.js')); ?>"></script> <?php $__env->stopSection(); ?> <?php echo $__env->make('user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/webstoremaker/public_html/resources/views/user/quote/form.blade.php ENDPATH**/ ?>