HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/punjabcabs/storage/framework/views/8c748b98581714ea7753fb002ba26690e5601f39.php
<?php $__env->startSection('title', 'Payment Settings '); ?>

<?php $__env->startSection('content'); ?>

<div class="content-area py-1">
    <div class="container-fluid">

        <div class="row bg-title">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <h4 class="page-title"><?php echo app('translator')->get('admin.settings'); ?></h4>
                <a href="<?php echo e(route('admin.settings')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light"><?php echo app('translator')->get('admin.member.site_settings'); ?></a>
                <a href="<?php echo e(route('admin.settings.payment')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light active"><?php echo app('translator')->get('admin.payment_settings'); ?></a>
                <a href="<?php echo e(route('admin.profile')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light"><?php echo app('translator')->get('admin.account_settings'); ?></a>
                <a href="<?php echo e(route('admin.password')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light"><?php echo app('translator')->get('admin.change_password'); ?></a>
            </div>
        </div>

        <form action="<?php echo e(route('admin.settings.payment.store')); ?>" method="POST">
                <?php echo e(csrf_field()); ?>

        <div class="panel panel-info">
            <div class="panel-heading"><?php echo app('translator')->get('admin.member.payment_modes'); ?></div>
            <div class="panel-wrapper collapse in" aria-expanded="true">
                <div class="panel-body">
                    <blockquote class="card-blockquote">
                        <i class="fa fa-3x fa-cc-stripe pull-right"></i>
                        <div class="form-group row">
                            <div class="col-xs-4">
                                <label for="stripe_secret_key" class="col-form-label">
                                    Stripe (Card Payments)
                                </label>
                            </div>
                            <div class="col-xs-6">
                                <input <?php if(Setting::get('CARD') == 1): ?> checked  <?php endif; ?>  name="CARD" id="stripe_check" onchange="cardselect()" type="checkbox" class="js-switch" data-color="#43b968">
                            </div>
                        </div>
                        <div id="card_field" <?php if(Setting::get('CARD') == 0): ?> style="display: none;" <?php endif; ?>>
                            <div class="form-group row">
                                <label for="stripe_secret_key" class="col-xs-4 col-form-label">Stripe Secret key</label>
                                <div class="col-xs-8">
                                    <input class="form-control" type="text" value="<?php echo e(Setting::get('stripe_secret_key', '')); ?>" name="stripe_secret_key" id="stripe_secret_key"  placeholder="Stripe Secret key">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="stripe_publishable_key" class="col-xs-4 col-form-label">Stripe Publishable key</label>
                                <div class="col-xs-8">
                                    <input class="form-control" type="text" value="<?php echo e(Setting::get('stripe_publishable_key', '')); ?>" name="stripe_publishable_key" id="stripe_publishable_key"  placeholder="Stripe Publishable key">
                                </div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <div class="col-xs-4">
                                <label for="cash-payments" class="col-form-label">
                                    Cash Payments
                                </label>
                            </div>
                            <div class="col-xs-6">
                                <input <?php if(Setting::get('CASH') == 1): ?> checked  <?php endif; ?> name="CASH" id="cash-payments" onchange="cash_disable()" type="checkbox" class="js-switch" data-color="#43b968">
                            </div>
                        </div>
                    </blockquote>
                </div>
            </div>
        </div>
        <div class="panel panel-info" style="margin-bottom: 64px;">
            <div class="panel-heading"><?php echo app('translator')->get('admin.member.payment_settings'); ?></div>
            <div class="panel-wrapper collapse in" aria-expanded="true">
                <div class="panel-body">
                <blockquote class="card-blockquote">
                <div class="form-group row">
                    <label for="transaction_percentage" class="col-xs-3 col-form-label">Transaction Percentage(%)</label>
                    <div class="col-xs-8">
                        <input class="form-control"
                            type="number"
                            value="<?php echo e(Setting::get('transaction_percentage', '0')); ?>"
                            id="transaction_percentage"
                            name="transaction_percentage"
                            min="0"
                            max="100"
                            placeholder="GST Percentage">
                    </div>
                </div>
                <div class="form-group row">
                    <label for="tax_percentage" class="col-xs-3 col-form-label">GST Percentage(%)</label>
                    <div class="col-xs-8">
                        <input class="form-control"
                            type="text"
                            value="<?php echo e(Setting::get('tax_percentage', '0')); ?>"
                            id="tax_percentage"
                            name="tax_percentage"
                            min="0"
                            max="100"
                            placeholder="GST Percentage">
                    </div>
                </div>
                <div class="form-group row">
                    <label for="sro_levy" class="col-xs-3 col-form-label">SRO levy (<?php echo e(currency()); ?>)</label>
                    <div class="col-xs-8">
                        <input class="form-control"
                            type="text"
                            value="<?php echo e(Setting::get('sro_levy', '0')); ?>"
                            id="sro_levy"
                            name="sro_levy"
                            min="0"
                            max="100"
                            placeholder="SRO levy">
                    </div>
                </div>
                <div class="form-group row">
                    <label for="commission_enable" class="col-xs-3 col-form-label">Commission Enable</label>
                    <div class="col-xs-8">
                        <select class="form-control" id="commission_enable" name="commission_enable">
                            <option value="1" <?php if(Setting::get('commission_enable', 0) == 1): ?> selected <?php endif; ?>>Enable</option>
                            <option value="0" <?php if(Setting::get('commission_enable', 0) == 0): ?> selected <?php endif; ?>>Disable</option>
                        </select>
                    </div>
                </div>
                <div class="form-group row">
                    <label for="commission_percentage" class="col-xs-3 col-form-label"><?php echo app('translator')->get('admin.member.commission_percentage'); ?>(%)</label>
                    <div class="col-xs-8">
                        <input class="form-control"
                            type="text"
                            value="<?php echo e(Setting::get('commission_percentage', '0')); ?>"
                            id="commission_percentage"
                            name="commission_percentage"
                            min="0"
                            max="100"
                            placeholder="Commission percentage">
                    </div>
                </div>
                <div class="form-group row">
                    <label for="cancellation_min" class="col-xs-3 col-form-label">Cancellation Time(min)</label>
                    <div class="col-xs-8">
                        <input class="form-control"
                            type="number"
                            value="<?php echo e(Setting::get('cancellation_min', '0')); ?>"
                            id="cancellation_min"
                            name="cancellation_min"
                            placeholder="Cancellation Time" required>
                    </div>
                </div>
                <div class="form-group row">
                    <label for="cancellation_fare" class="col-xs-3 col-form-label">Cancellation Charge</label>
                    <div class="col-xs-8">
                        <input class="form-control"
                            type="text"
                            value="<?php echo e(Setting::get('cancellation_fare', '0')); ?>"
                            id="cancellation_fare"
                            name="cancellation_fare"
                            min="0"
                            max="4"
                            placeholder="Cancellation Charge" required>
                    </div>
                </div>
                
                        <div class="form-group row">
                            <label for="booking_prefix" class="col-xs-3 col-form-label"><?php echo app('translator')->get('admin.member.booking_id_prefix'); ?></label>
                            <div class="col-xs-8">
                                <input class="form-control"
                                    type="text"
                                    value="<?php echo e(Setting::get('booking_prefix', '0')); ?>"
                                    id="booking_prefix"
                                    name="booking_prefix"
                                    min="0"
                                    max="4"
                                    placeholder="Booking ID Prefix">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="wheelchair_service" class="col-xs-3 col-form-label">Select Wheelchair Service</label>
                            <div class="col-xs-8">
                                <select class="form-control" id="wheelchair_service" name="wheelchair_service" required>
                                    <option value="">Select Service model</option>
                                    <?php $__empty_1 = true; $__currentLoopData = $wheelservices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $Type): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); $__empty_1 = false; ?>
                                    <option value="<?php echo e($Type->id); ?>" <?php if(Setting::get('wheelchair_service') == $Type->id): ?> selected <?php endif; ?>><?php echo e($Type->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); if ($__empty_1): ?>
                                    <option>- Please Create a Service Type -</option>
                                    <?php endif; ?>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="wheelchair_discount" class="col-xs-3 col-form-label">Wheelchair Discount (%)</label>
                            <div class="col-xs-8">
                                <input class="form-control"
                                    type="number"
                                    value="<?php echo e(Setting::get('wheelchair_discount', '0')); ?>"
                                    id="wheelchair_discount"
                                    name="wheelchair_discount"
                                    min="5"
                                    max="100"
                                    placeholder="Wheelchair Discount" required>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="base_price" class="col-xs-3 col-form-label">
                                <?php echo app('translator')->get('admin.member.currency'); ?> ( <strong><?php echo e(Setting::get('currency', '$')); ?> </strong>)
                            </label>
                            <div class="col-xs-8">
                                <select name="currency" class="form-control" required>
                                    <option <?php if(Setting::get('currency') == "$"): ?> selected <?php endif; ?> value="$">US Dollar (USD)</option>
                                    <option <?php if(Setting::get('currency') == "₹"): ?> selected <?php endif; ?> value="₹"> Indian Rupee (INR)</option>
                                    <option <?php if(Setting::get('currency') == "د.ك"): ?> selected <?php endif; ?> value="د.ك">Kuwaiti Dinar (KWD)</option>
                                    <option <?php if(Setting::get('currency') == "د.ب"): ?> selected <?php endif; ?> value="د.ب">Bahraini Dinar (BHD)</option>
                                    <option <?php if(Setting::get('currency') == "﷼"): ?> selected <?php endif; ?> value="﷼">Omani Rial (OMR)</option>
                                    <option <?php if(Setting::get('currency') == "£"): ?> selected <?php endif; ?> value="£">British Pound (GBP)</option>
                                    <option <?php if(Setting::get('currency') == "€"): ?> selected <?php endif; ?> value="€">Euro (EUR)</option>
                                    <option <?php if(Setting::get('currency') == "CHF"): ?> selected <?php endif; ?> value="CHF">Swiss Franc (CHF)</option>
                                    <option <?php if(Setting::get('currency') == "ل.د"): ?> selected <?php endif; ?> value="ل.د">Libyan Dinar (LYD)</option>
                                    <option <?php if(Setting::get('currency') == "B$"): ?> selected <?php endif; ?> value="B$">Bruneian Dollar (BND)</option>
                                    <option <?php if(Setting::get('currency') == "S$"): ?> selected <?php endif; ?> value="S$">Singapore Dollar (SGD)</option>
                                    <option <?php if(Setting::get('currency') == "A$"): ?> selected <?php endif; ?> value="A$"> Australian Dollar (AUD)</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="zipcode" class="col-xs-12 col-form-label"></label>
                            <div class="col-xs-10">
                                <button type="submit" class="btn btn-success"> <i class="fa fa-check"></i> <?php echo app('translator')->get('admin.member.update_site_settings'); ?></button>
                                <a href="<?php echo e(route('admin.index')); ?>" class="btn btn-inverse waves-effect waves-light"><?php echo app('translator')->get('admin.member.cancel'); ?></a>
                            </div>
                        </div>
                    </blockquote>

                </div>
            </div>
        </div>
        
        </form>
        
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script type="text/javascript">
function cash_disable(){
    if($('#cash-payments').is(":checked")) {
        
    } else {
        if($('#stripe_check').is(":checked")) {
            $("#card_field").fadeIn(700);
        } else {
            $('#cash-payments').trigger('click');
        }
    }
}
function cardselect()
{
    if($('#stripe_check').is(":checked")) {
        $("#card_field").fadeIn(700);
    } else {
        if($('#cash-payments').is(":checked")) {
            $("#card_field").fadeOut(700);
        } else {
            $('#cash-payments').trigger('click');
            $("#card_field").fadeOut(700);
        }
    }
}

</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>