Viewing file: 23f384fc22a3d20b754af0154cf48e1d.php (26.07 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('offline_payment_methods')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('breadcrumbs'); ?> <div class="row mb-2 mt-4"> <div class="col-sm-6"> <h1 class="m-0"><?php echo e(__('settings')); ?></h1> </div> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>"><?php echo e(__('home')); ?></a></li> <li class="breadcrumb-item"><?php echo e(__('settings')); ?></li> <li class="breadcrumb-item active"><?php echo e(__('payment_gateway_setting')); ?></li> </ol> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('website-settings'); ?> <div class="row"> <div class="col-md-8"> <div class="card"> <div class="card-header"> <h3 class="card-title line-height-36"><?php echo e(__('offline_payment_methods')); ?></h3> </div> <div class="card-body table-responsive p-0"> <table class="table text-nowrap table-bordered"> <thead> <tr> <th><?php echo e(__('name')); ?></th> <th><?php echo e(__('payment_type')); ?></th> <th width="10%"><?php echo e(__('status')); ?></th> <th width="15%"><?php echo e(__('action')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $manual_payment_gateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td> <?php echo e($payment->name); ?>
</td> <td><?php echo e(ucfirst(Str::replace('_', ' ', $payment->type))); ?></td> <td tabindex="0"> <a href="#"> <label class="switch "> <input data-id="<?php echo e($payment->id); ?>" type="checkbox" class="success status-switch" <?php echo e($payment->status == 1 ? 'checked' : ''); ?>> <span class="slider round"></span> </label> </a> </td> <td> <a href="javascript:void(0)" onclick="contactDetail(<?php echo e(json_encode($payment)); ?>)" class="btn btn-warning mt-0 mr-2"><i class="fas fa-eye"></i></a> <a href="<?php echo e(route('settings.payment.manual.edit', $payment->id)); ?>" class="btn btn-info mt-0 mr-2"><i class="fas fa-edit"></i></a> <form action="<?php echo e(route('settings.payment.manual.delete', $payment->id)); ?>" class="d-inline" method="POST"> <?php echo method_field('DELETE'); ?> <?php echo csrf_field(); ?> <button data-toggle="tooltip" data-placement="top" title="<?php echo e(__('delete')); ?>" onclick="return confirm('<?php echo e(__('are_you_sure_want_to_delete_this_item')); ?>');" class="btn bg-danger"><i class="fas fa-trash"></i></button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="10" class="text-center"> <?php if (isset($component)) { $__componentOriginal56c81c662798cf576554b4d425b3acba = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal56c81c662798cf576554b4d425b3acba = $attributes; } ?> <?php $component = App\View\Components\Admin\NotFound::resolve(['word' => 'language','route' => ''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.not-found'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Admin\NotFound::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal56c81c662798cf576554b4d425b3acba)): ?> <?php $attributes = $__attributesOriginal56c81c662798cf576554b4d425b3acba; ?> <?php unset($__attributesOriginal56c81c662798cf576554b4d425b3acba); ?> <?php endif; ?> <?php if (isset($__componentOriginal56c81c662798cf576554b4d425b3acba)): ?> <?php $component = $__componentOriginal56c81c662798cf576554b4d425b3acba; ?> <?php unset($__componentOriginal56c81c662798cf576554b4d425b3acba); ?> <?php endif; ?> </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> <div class="col-md-4"> <?php if(!empty($manual_payment)): ?> <div class="card"> <div class="card-header"> <h3 class="card-title line-height-36"><?php echo e(__('edit')); ?> <?php echo e(__('payment')); ?></h3> <a href="<?php echo e(route('settings.payment.manual')); ?>" class="btn bg-primary float-right d-flex align-items-center justify-content-center"><i class="fas fa-arrow-left mr-1"></i><?php echo e(__('back')); ?>
</a> </div> <div class="card-body"> <form class="form-horizontal" action="<?php echo e(route('settings.payment.manual.update', $manual_payment->id)); ?>" method="POST"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'name','for' => 'name','required' => true] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <input id="name" type="text" name="name" placeholder="<?php echo e(__('enter')); ?> <?php echo e(__('name')); ?>" value="<?php echo e(old('name', $manual_payment->name)); ?>" class="form-control <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>"> <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"> <strong><?php echo e($message); ?></strong> </span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group"> <label for="name" class="col-form-label"> <?php echo e(__('payment_type')); ?>
</label> <select name="type" class="form-control <?php $__errorArgs = ['type']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>"> <option <?php echo e($manual_payment->type == 'bank_payment' ? 'selected' : ''); ?>
value="bank_payment"><?php echo e(__('bank_payment')); ?></option> <option <?php echo e($manual_payment->type == 'cash_payment' ? 'selected' : ''); ?>
value="cash_payment"><?php echo e(__('cash_payment')); ?></option> <option <?php echo e($manual_payment->type == 'check_payment' ? 'selected' : ''); ?>
value="check_payment"><?php echo e(__('check_payment')); ?></option> <option <?php echo e($manual_payment->type == 'custom_payment' ? 'selected' : ''); ?>
value="custom_payment"><?php echo e(__('custom_payment')); ?></option> </select> <?php $__errorArgs = ['type']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group"> <label for="description" class="pt-2"><?php echo e(__('description')); ?><span class="text-red font-weight-bold">*</span></label> <textarea name="description" id="description" class="form-control <?php $__errorArgs = ['description']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" cols="30" rows="10"><?php echo e(old('description', $manual_payment->description)); ?></textarea> <?php $__errorArgs = ['description']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"> <strong><?php echo e(__($message)); ?></strong> </span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group m-auto"> <button type="submit" class="btn btn-success"> <i class="fas fa-plus mr-1"></i> <?php echo e(__('save')); ?>
</button> </div> </form> </div> </div> <?php endif; ?> <?php if(empty($manual_payment)): ?> <div class="card"> <div class="card-header"> <h3 class="card-title line-height-36"><?php echo e(__('create')); ?> <?php echo e(__('payment')); ?></h3> </div> <div class="card-body"> <form class="form-horizontal" action="<?php echo e(route('settings.payment.manual.store')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'name','for' => 'name','required' => true] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <input id="name" type="text" name="name" placeholder="<?php echo e(__('enter')); ?> <?php echo e(__('name')); ?>" value="<?php echo e(old('name')); ?>" class="form-control <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>"> <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"> <strong><?php echo e($message); ?></strong> </span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group"> <label for="name" class="col-form-label"> <?php echo e(__('payment_type')); ?>
</label> <select name="type" class="form-control <?php $__errorArgs = ['type']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>"> <option value="bank_payment"><?php echo e(__('bank_payment')); ?></option> <option value="cash_payment"><?php echo e(__('cash_payment')); ?></option> <option value="check_payment"><?php echo e(__('check_payment')); ?></option> <option value="custom_payment"><?php echo e(__('custom_payment')); ?></option> </select> <?php $__errorArgs = ['type']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group"> <label for="description" class="pt-2"><?php echo e(__('description')); ?><span class="text-red font-weight-bold">*</span></label> <textarea name="description" id="description" class="form-control <?php $__errorArgs = ['description']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" cols="30" rows="10"><?php echo e(old('description')); ?></textarea> <?php $__errorArgs = ['description']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"> <strong><?php echo e(__($message)); ?></strong> </span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group m-auto"> <button type="submit" class="btn btn-success"> <i class="fas fa-plus mr-1"></i> <?php echo e(__('save')); ?>
</button> </div> </form> </div> </div> <?php endif; ?> </div>
<div class="modal fade" id="contactModal"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title"><?php echo e(__('details')); ?></h5> <button type="button" class="close" onclick="HideModal()" data-bs-dismiss="modal"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="form-group"> <label><?php echo e(__('name')); ?></label> <input class="form-control" id="contact-modal-name" readonly> </div> <div class="form-group"> <label><?php echo e(__('payment_type')); ?></label> <input type="text" class="form-control text-capitalize" id="contact-modal-type" readonly> </div> <div class="form-group"> <label><?php echo e(__('description')); ?></label> <textarea class="form-control" rows="10" id="contact-modal-description" readonly></textarea> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?> <script src="<?php echo e(asset('backend')); ?>/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script> <script src="<?php echo e(asset('backend')); ?>/dist/js/ckeditor.js"></script>
<script> $('.status-switch').on('change', function() { var status = $(this).prop('checked') == true ? 1 : 0; var id = $(this).data('id'); $.ajax({ type: "GET", dataType: "json", url: '<?php echo e(route('settings.payment.manual.status')); ?>', data: { 'status': status, 'id': id }, success: function(response) { toastr.success(response.message, 'Success'); } }); });
ClassicEditor .create(document.querySelector('#description')) .catch(error => { console.error(error); });
function HideModal() { $("#contactModal").modal('hide'); }
function contactDetail(contact) { $('#contact-modal-name').val(contact.name); $('#contact-modal-type').val(contact.type.replace('_', ' ')); $('#contact-modal-description').val(contact.description); $('#contactModal').modal('show'); } </script> <?php $__env->stopSection(); ?>
<?php $__env->startSection('style'); ?> <link rel="stylesheet" href="<?php echo e(asset('backend')); ?>/plugins/datatables-responsive/css/responsive.bootstrap4.min.css"> <style> .ck-editor__editable_inline { min-height: 250px; }
.switch { position: relative; display: inline-block; width: 35px; height: 19px; }
/* Hide default HTML checkbox */ .switch input { display: none; }
/* The slider */ .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 15px; width: 15px; left: 3px; bottom: 2px; background-color: white; -webkit-transition: .4s; transition: .4s; }
input.success:checked+.slider { background-color: #28a745; }
input:checked+.slider:before { -webkit-transform: translateX(15px); -ms-transform: translateX(15px); transform: translateX(15px); }
/* Rounded sliders */ .slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; } </style> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.settings.setting-layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\add listing 8-9-25\addListing\resources\views/admin/settings/pages/payment-manual.blade.php ENDPATH**/ ?>
|