One Hat Cyber Team
Your IP :
216.73.216.93
Server IP :
178.63.234.5
Server :
Linux whm01.ins-jo.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Server Software :
Apache
PHP Version :
8.1.32
Buat File
|
Buat Folder
Dir :
~
/
home
/
business
/
www
/
storage
/
framework
/
views
/
Edit File Name :
7c05e982dce40320cd5c3c7beffec4e2de4b0e0d.php
<?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title">vCard Information</h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="#"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#">vCards</a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e($vcard->vcard_name); ?></a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#">Infromation</a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title d-inline-block">vCard Information</div> <a class="btn btn-info btn-sm float-right d-inline-block" href="<?php echo e(route('user.vcard')); ?>"> <span class="btn-label"> <i class="fas fa-backward"></i> </span> Back </a> <a class="btn btn-primary btn-sm float-right mr-2" href="<?php echo e(route('front.user.vcard', [Auth::user()->username, $vcard->id])); ?>" target="_blank"> <span class="btn-label"> <i class="fas fa-eye"></i> </span> Preview </a> </div> <div class="card-body pt-5 pb-5"> <div class="row"> <div class="col-lg-12"> <form id="ajaxForm" class="" action="<?php echo e(route('user.vcard.update')); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <input type="hidden" name="vcard_id" value="<?php echo e($vcard->id); ?>"> <div class="row"> <div class="col-12"> <div class="form-group"> <label class="form-label">Choose a Template</label> <div class="row"> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="1" class="imagecheck-input" <?php echo e($vcard->template == 1 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/1.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="2" class="imagecheck-input" <?php echo e($vcard->template == 2 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/2.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="3" class="imagecheck-input" <?php echo e($vcard->template == 3 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/3.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="4" class="imagecheck-input" <?php echo e($vcard->template == 4 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/4.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="5" class="imagecheck-input" <?php echo e($vcard->template == 5 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/5.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="6" class="imagecheck-input" <?php echo e($vcard->template == 6 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/6.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="7" class="imagecheck-input" <?php echo e($vcard->template == 7 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/7.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="8" class="imagecheck-input" <?php echo e($vcard->template == 8 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/8.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="9" class="imagecheck-input" <?php echo e($vcard->template == 9 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/9.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> <div class="col-2"> <label class="imagecheck mb-4"> <input name="template" type="radio" value="10" class="imagecheck-input" <?php echo e($vcard->template == 10 ? 'checked' : ''); ?>> <figure class="imagecheck-figure"> <img src="<?php echo e(asset('assets/front/img/user/vcard-templates/10.jpg')); ?>" alt="title" class="imagecheck-image"> </figure> </label> </div> </div> <p class="em text-danger em-0" id="errtemplate"></p> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <div class="col-12 mb-2"> <label for="image"><strong>Profile Image</strong></label> </div> <div class="col-md-12 showImage mb-3"> <img src="<?php echo e(!empty($vcard->profile_image) ? asset('assets/front/img/user/vcard/' . $vcard->profile_image) : asset('assets/admin/img/noimage.jpg')); ?>" alt="..." class="img-thumbnail"> </div> <input type="file" name="profile_image" class="image" class="form-control image"> <p id="errprofile_image" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <div class="col-12 mb-2"> <label for="image"><strong>Cover Image</strong></label> </div> <div class="col-md-12 showImage mb-3"> <img src="<?php echo e(!empty($vcard->cover_image) ? asset('assets/front/img/user/vcard/' . $vcard->cover_image) : asset('assets/admin/img/noimage.jpg')); ?>" alt="..." class="img-thumbnail"> </div> <input type="file" name="cover_image" class="image" class="form-control image"> <p id="errcover_image" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <label for="">vCard Name **</label> <input type="text" class="form-control <?php echo e($vcard->direction == 2 ? 'rtl' : ''); ?>" name="vcard_name" value="<?php echo e($vcard->vcard_name); ?>" placeholder="Enter vcard name"> <p class="text-warning mb-0">Use this name to identify sepcific vcard from your vcards list.</p> <p id="errvcard_name" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="">Direction **</label> <select name="direction" class="form-control" id="direction"> <option value="" selected disabled>Select a Direction</option> <option value="1" <?php echo e($vcard->direction == 1 ? 'selected' : ''); ?>>LTR (Left to Right)</option> <option value="2" <?php echo e($vcard->direction == 2 ? 'selected' : ''); ?>>RTL (Right to Left)</option> </select> <p id="errdirection" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="row"> <div class="col-lg-4"> <div class="form-group"> <label for="">Name</label> <input type="text" class="form-control <?php echo e($vcard->direction == 2 ? 'rtl' : ''); ?>" name="name" value="<?php echo e($vcard->name); ?>" placeholder="Enter name"> <p id="errname" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-4"> <div class="form-group"> <label for="">Company Name</label> <input type="text" class="form-control <?php echo e($vcard->direction == 2 ? 'rtl' : ''); ?>" name="company" value="<?php echo e($vcard->company); ?>" placeholder="Enter company"> <p id="errcompany" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-4"> <div class="form-group"> <label for="">Occupation</label> <input type="text" class="form-control <?php echo e($vcard->direction == 2 ? 'rtl' : ''); ?>" name="occupation" value="<?php echo e($vcard->occupation); ?>" placeholder="Enter occupation"> <p id="erroccupation" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <label for="">Email</label> <input type="text" class="form-control ltr" name="email" value="<?php echo e($vcard->email); ?>" placeholder="Enter email"> <p id="erremail" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="">Phone</label> <input type="text" class="form-control ltr" name="phone" value="<?php echo e($vcard->phone); ?>" placeholder="Enter phone"> <p class="text-warning mb-0">Enter Phone Number with <strong class="text-danger">Country Code</strong></p> <p id="errphone" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="">Address</label> <input type="text" class="form-control <?php echo e($vcard->direction == 2 ? 'rtl' : ''); ?>" name="address" value="<?php echo e($vcard->address); ?>" placeholder="Enter address"> <p id="erraddress" class="mb-0 text-danger em"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="">Website URL</label> <input type="text" class="form-control ltr" name="website_url" value="<?php echo e($vcard->website_url); ?>" placeholder="Enter website_url"> <p id="errwebsite_url" class="mb-0 text-danger em"></p> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="form-group"> <label for="summary">Introduction</label> <textarea name="introduction" id="introduction" class="form-control <?php echo e($vcard->direction == 2 ? 'rtl' : ''); ?>" rows="4" placeholder="Enter Introduction"><?php echo e($vcard->introduction); ?></textarea> </div> </div> </div> <div id="app"> <div class="row"> <div class="col-lg-12"> <div class="form-group"> <label for="" class="d-block mb-2">Other Infromation</label> <button class="btn btn-primary" @click="addInformation">Add Information</button> </div> </div> </div> <div class="row no-gutters" v-for="(information, index) in infromations" :key="information.uniqid"> <div class="col-lg-2"> <div class="form-group"> <label for="">Icon **</label> <div class="btn-group d-block"> <button type="button" class="btn btn-primary iconpicker-component"><i :id="'vcard-icp-icon' + index" :class="information.icon"></i></button> <button type="button" :id="'vcard-icp'+information.uniqid" class="vcard-icp vcard-icp-dd btn btn-primary dropdown-toggle" data-selected="fa-car" data-toggle="dropdown" :data-vue_index="index"> </button> <div class="dropdown-menu"></div> </div> <input type="hidden" name="icons[]" v-model="information.icon"> <p class="em text-danger mb-0" :id="'erricons.'+index"></p> </div> </div> <div class="col-lg-1"> <div class="form-group"> <label for="">Link</label><br> <input name="links[]" :value="index" type="checkbox" :checked="information.link == 1 ? true : false"> <p class="em text-danger mb-0" :id="'errlinks.'+index"></p> </div> </div> <div class="col-lg-2"> <div class="form-group"> <label for="">Icon Color</label> <input name="colors[]" :class="'jscolor jscolor' + information.uniqid + ' ltr form-control'" :value="information.color" type="text" @change="setColor($event, index)" > <p class="em text-danger mb-0" :id="'errcolors.'+index"></p> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="">Label</label> <input name="labels[]" class="form-control" :class="{rtl: information.dir == 2}" v-model="information.label" type="text" > <p class="em text-danger mb-0" :id="'errlabels.'+index"></p> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label for="">Value</label> <input name="values[]" class="form-control" :class="{rtl: information.dir == 2}" v-model="information.value" type="text" > <p class="em text-danger mb-0" :id="'errvalues.'+index"></p> </div> </div> <div class="col-lg-1"> <button class="btn btn-danger text-white mt-4" @click="removeInformation(index)"> <i class="fas fa-times"></i> </button> </div> </div> </div> </form> </div> </div> </div> <div class="card-footer"> <div class="form"> <div class="form-group from-show-notify row"> <div class="col-12 text-center"> <button type="submit" id="submitBtn" class="btn btn-success">Submit</button> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> $(document).ready(function() { $("select[name='direction']").on('change', function() { val = $(this).val(); let $formControls = $(".form-control:not(.ltr)"); // if RTL is selected if (val == 2) { $formControls.each(function() { $(this).addClass('rtl'); }); } else { $formControls.each(function() { $(this).removeClass('rtl'); }); } }); }); </script> <?php $__env->stopSection(); ?> <?php $__env->startSection('vuescripts'); ?> <script> $(document).on('change', '.image', function (event) { let $this = $(this); let file = event.target.files[0]; let reader = new FileReader(); reader.onload = function (e) { $(this).prev('.showImage').find('img').attr('src', e.target.result); }; reader.readAsDataURL(file); }) </script> <script> let app = new Vue({ el: '#app', data() { return { infromations: [] } }, methods: { setIcon(value, index) { let information = this.infromations[index]; information.icon = value; this.$set(this.infromations, index, information); }, setColor($event, index) { let information = this.infromations[index]; information.color = $event.target.value; this.$set(this.infromations, index, information); }, addIcpEvent() { let _this = this; this.$nextTick(function () { let _this = this; if ($('.vcard-icp').length > 0) { $('.vcard-icp').each(function(i) { let index = i; let vIndex = $(this).data('vue_index'); $(this).on('iconpickerSelected', function(event){ let val = $("#vcard-icp-icon" + index).attr('class'); $("input[name='icons[]']").eq(index).val(val); _this.setIcon(val, vIndex); }); }); } }) }, uniqid() { let n = Math.floor(Math.random() * 11); let k = Math.floor(Math.random() * 1000000); let m = n + k; return m; }, addInformation() { let _this = this; let uniqid = this.uniqid(); let dir = document.getElementById('direction').value; this.infromations.push({uniqid: uniqid, icon: 'fas fa-heart', color: '000000', label: '', value: '', dir: dir, link: 0}); console.log('informations', this.infromations); // initialize icon picker & color picker for newly added inputs only, also add event to all icon pickers this.$nextTick(function () { $('#vcard-icp' + uniqid).iconpicker(); jscolor.installByClassName("jscolor" + uniqid); _this.addIcpEvent(); }) }, removeInformation(index) { this.infromations.splice(index, 1); } }, mounted() { this.$nextTick(function () { }) }, created() { $.get("<?php echo e(route('user.vcard.information', $vcard->id)); ?>", (datas) => { let _this = this; for (let i = 0; i < datas.length; i++) { datas[i].dir = <?php echo e($vcard->direction); ?>; _this.infromations.push(datas[i]); } // initialize icon picker & color picker, also add event to all icon pickers setTimeout(function() { $('.vcard-icp').iconpicker(); jscolor.installByClassName("jscolor"); _this.addIcpEvent(); }, 1000); }); } }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/business/public_html/resources/views/user/vcard/edit.blade.php ENDPATH**/ ?>
Save