File manager - Edit - /var/www/payraty/accounting_main/storage/framework/views/8d158ecfc07c8cfcc70f0b7de7cfc13a.php
Back
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Retainer Detail')); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('css-page'); ?> <style> #card-element { border: 1px solid #a3afbb !important; border-radius: 10px !important; padding: 10px !important; } </style> <?php $__env->stopPush(); ?> <?php $__env->startPush('script-page'); ?> <script src="https://js.stripe.com/v3/"></script> <script src="https://js.paystack.co/v1/inline.js"></script> <script src="https://api.ravepay.co/flwv3-pug/getpaidx/api/flwpbf-inline.js"></script> <script src="https://checkout.razorpay.com/v1/checkout.js"></script> <script type="text/javascript"> <?php if( $retainer->getDue() > 0 && !empty($company_payment_setting) && $company_payment_setting['is_stripe_enabled'] == 'on' && !empty($company_payment_setting['stripe_key']) && !empty($company_payment_setting['stripe_secret'])): ?> var stripe = Stripe('<?php echo e($company_payment_setting['stripe_key']); ?>'); var elements = stripe.elements(); // Custom styling can be passed to options when creating an Element. var style = { base: { // Add your base input styles here. For example: fontSize: '14px', color: '#32325d', }, }; // Create an instance of the card Element. var card = elements.create('card', { style: style }); // Add an instance of the card Element into the `card-element` <div>. card.mount('#card-element'); // Create a token or display an error when the form is submitted. var form = document.getElementById('payment-form'); form.addEventListener('submit', function(event) { event.preventDefault(); stripe.createToken(card).then(function(result) { if (result.error) { $("#card-errors").html(result.error.message); show_toastr('error', result.error.message, 'error'); } else { // Send the token to your server. stripeTokenHandler(result.token); } }); }); function stripeTokenHandler(token) { // Insert the token ID into the form so it gets submitted to the server var form = document.getElementById('payment-form'); var hiddenInput = document.createElement('input'); hiddenInput.setAttribute('type', 'hidden'); hiddenInput.setAttribute('name', 'stripeToken'); hiddenInput.setAttribute('value', token.id); form.appendChild(hiddenInput); // Submit the form form.submit(); } <?php endif; ?> <?php if(isset($company_payment_setting['paystack_public_key'])): ?> $(document).on("click", "#pay_with_paystack", function() { $('#paystack-payment-form').ajaxForm(function(res) { var amount = res.total_price; if (res.flag == 1) { // var paystack_callback = "<?php echo e(url('/retainer/paystack')); ?>"; var handler = PaystackPop.setup({ key: '<?php echo e($company_payment_setting['paystack_public_key']); ?>', email: res.email, amount: res.total_price * 100, currency: res.currency, ref: 'pay_ref_id' + Math.floor((Math.random() * 1000000000) + 1 ), // generates a pseudo-unique reference. Please replace with a reference you generated. Or remove the line entirely so our API will generate one for you metadata: { custom_fields: [{ display_name: "Email", variable_name: "email", value: res.email, }] }, callback: function(response) { window.location.href = '<?php echo e(url('customer/retainer/paystack')); ?>' + '/' + '<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>' + '/' + amount + '/' + response.reference; // window.location.href = '<?php echo e(route('customer.retainer.paystack', ['response.reference', \Illuminate\Support\Facades\Crypt::encrypt($retainer->id), 'amount'])); ?>' ; // window.location.href = paystack_callback + '/' + response.reference + '/' + '<?php echo e(encrypt($retainer->id)); ?>' + '?amount=' + amount; }, onClose: function() { alert('window closed'); } }); handler.openIframe(); } else if (res.flag == 2) { toastrs('Error', res.msg, 'msg'); } else { toastrs('Error', res.message, 'msg'); } }).submit(); }); <?php endif; ?> <?php if(isset($company_payment_setting['flutterwave_public_key'])): ?> // Flaterwave Payment $(document).on("click", "#pay_with_flaterwave", function() { $('#flaterwave-payment-form').ajaxForm(function(res) { if (res.flag == 1) { var amount = res.total_price; var API_publicKey = '<?php echo e($company_payment_setting['flutterwave_public_key']); ?>'; var nowTim = "<?php echo e(date('d-m-Y-h-i-a')); ?>"; var flutter_callback = "<?php echo e(url('/retainer/flaterwave')); ?>"; var x = getpaidSetup({ PBFPubKey: API_publicKey, customer_email: '<?php echo e(Auth::user()->email); ?>', amount: res.total_price, currency: '<?php echo e(App\Models\Utility::getValByName('site_currency')); ?>', txref: nowTim + '__' + Math.floor((Math.random() * 1000000000)) + 'fluttpay_online-' + '<?php echo e(date('Y-m-d')); ?>' + '?amount=' + amount, meta: [{ metaname: "payment_id", metavalue: "id" }], onclose: function() {}, callback: function(response) { var txref = response.tx.txRef; if ( response.tx.chargeResponseCode == "00" || response.tx.chargeResponseCode == "0" ) { window.location.href = '<?php echo e(url('customer/retainer/flaterwave')); ?>' + '/' + '<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>' + '/' + txref; // window.location.href = flutter_callback + '/' + txref + '/' + '<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>'; } else { // redirect to a failure page. } x .close(); // use this to close the modal immediately after payment. } }); } else if (res.flag == 2) { toastrs('Error', res.msg, 'msg'); } else { toastrs('Error', data.message, 'msg'); } }).submit(); }); <?php endif; ?> <?php if(isset($company_payment_setting['razorpay_public_key'])): ?> // Razorpay Payment $(document).on("click", "#pay_with_razorpay", function() { $('#razorpay-payment-form').ajaxForm(function(res) { if (res.flag == 1) { var amount = res.total_price; // var razorPay_callback = '<?php echo e(url('/retainer/razorpay')); ?>'; var totalAmount = res.total_price * 100; var coupon_id = res.coupon; var options = { "key": "<?php echo e($company_payment_setting['razorpay_public_key']); ?>", // your Razorpay Key Id "amount": totalAmount, "name": 'Plan', "currency": '<?php echo e(App\Models\Utility::getValByName('site_currency')); ?>', "description": "", "handler": function(response) { window.location.href = '<?php echo e(url('customer/retainer/razorpay')); ?>' + '/' + '<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>' + '/' + amount; // window.location.href = '<?php echo e(route('customer.retainer.razorpay', ['response.razorpay_payment_id', \Illuminate\Support\Facades\Crypt::encrypt($retainer->id)])); ?>' ; // window.location.href = razorPay_callback + '/' + response.razorpay_payment_id + '/' + '<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>' + '?amount=' + amount; }, "theme": { "color": "#528FF0" } }; var rzp1 = new Razorpay(options); rzp1.open(); } else if (res.flag == 2) { toastrs('Error', res.msg, 'msg'); } else { toastrs('Error', data.message, 'msg'); } }).submit(); }); <?php endif; ?> $('.cp_link').on('click', function() { var value = $(this).attr('data-link'); var $temp = $("<input>"); $("body").append($temp); $temp.val(value).select(); document.execCommand("copy"); $temp.remove(); show_toastr('success', '<?php echo e(__('Link Copy on Clipboard')); ?>', 'success') }); </script> <script> $(document).on('click', '#shipping', function() { var url = $(this).data('url'); var is_display = $("#shipping").is(":checked"); $.ajax({ url: url, type: 'get', data: { 'is_display': is_display, }, success: function(data) { // console.log(data); } }); }) </script> <?php $__env->stopPush(); ?> <?php $__env->startSection('breadcrumb'); ?> <?php if(\Auth::guard('customer')->check()): ?> <li class="breadcrumb-item"><a href="<?php echo e(route('customer.dashboard')); ?>"><?php echo e(__('Dashboard')); ?></a></li> <?php else: ?> <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Dashboard')); ?></a></li> <?php endif; ?> <?php if(\Auth::user()->type == 'company'): ?> <li class="breadcrumb-item"><a href="<?php echo e(route('retainer.index')); ?>"><?php echo e(__('Retainer ')); ?></a></li> <?php else: ?> <li class="breadcrumb-item"><a href="<?php echo e(route('customer.retainer')); ?>"><?php echo e(__('Retainer ')); ?></a></li> <?php endif; ?> <li class="breadcrumb-item"><?php echo e(Auth::user()->retainerNumberFormat($retainer->retainer_id)); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startSection('action-btn'); ?> <div class="float-end"> <?php if($retainer->is_convert == 0): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('convert invoice retainer')): ?> <?php echo Form::open([ 'method' => 'get', 'class' => ' btn btn-sm btn-primary align-items-center', 'route' => ['retainer.convert', $retainer->id], 'id' => 'proposal-form-' . $retainer->id, ]); ?> <a href="#" class="bs-pass-para" data-bs-toggle="tooltip" title="<?php echo e(__('Convert into Invoice')); ?>" data-original-title="<?php echo e(__('Convert to Invoice')); ?>" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('You want to confirm convert to invoice. Press Yes to continue or Cancel to go back')); ?>" data-confirm-yes="document.getElementById('proposal-form-<?php echo e($retainer->id); ?>').submit();"> <i class="ti ti-exchange text-white"></i> <?php echo Form::close(); ?> </a> <?php endif; ?> <?php else: ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('convert invoice retainer')): ?> <a href="<?php echo e(route('invoice.show', \Crypt::encrypt($retainer->converted_invoice_id))); ?>" class=" btn btn-primary btn-sm align-items-center" data-bs-toggle="tooltip" title="<?php echo e(__('Already convert to Invoice')); ?>"> <i class="ti ti-eye text-white"></i> </a> <?php endif; ?> <?php endif; ?> <a href="#" class="btn btn-sm btn-primary cp_link" data-link="<?php echo e(route('pay.retainerpay', \Illuminate\Support\Facades\Crypt::encrypt($retainer->id))); ?>" data-bs-toggle="tooltip" title="<?php echo e(__('Copy Retainer')); ?>" data-original-title="<?php echo e(__('Click to copy Retainer link')); ?>"> <span class="btn-inner--icon text-white"><i class="ti ti-file"></i></span> </a> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Send Invoice')): ?> <?php if($retainer->status != 4): ?> <div class="row"> <div class="card "> <div class="card-body"> <div class="row timeline-wrapper"> <div class="col-md-6 col-lg-4 col-xl-4"> <div class="timeline-icons"><span class="timeline-dots"></span> <i class="ti ti-plus text-primary"></i> </div> <h6 class="text-primary my-3"><?php echo e(__('Create Retainer')); ?></h6> <p class="text-muted text-sm mb-3"><i class="ti ti-clock mr-2"></i><?php echo e(__('Created on ')); ?><?php echo e(\Auth::user()->dateFormat($retainer->issue_date)); ?> </p> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Edit Invoice')): ?> <a href="<?php echo e(route('retainer.edit', \Crypt::encrypt($retainer->id))); ?>" class="btn btn-sm btn-primary" data-bs-toggle="tooltip" data-original-title="<?php echo e(__('Edit')); ?>"><i class="ti ti-edit mr-2"></i><?php echo e(__('Edit')); ?></a> <?php endif; ?> </div> <div class="col-md-6 col-lg-4 col-xl-4"> <div class="timeline-icons"><span class="timeline-dots"></span> <i class="ti ti-mail text-warning"></i> </div> <h6 class="text-warning my-3"><?php echo e(__('Send Retainer')); ?></h6> <p class="text-muted text-sm mb-3"> <?php if($retainer->status != 0): ?> <i class="ti ti-clock mr-2"></i><?php echo e(__('Sent on')); ?> <?php echo e(\Auth::user()->dateFormat($retainer->send_date)); ?> <?php else: ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Send Invoice')): ?> <small><?php echo e(__('Status')); ?> : <?php echo e(__('Not Sent')); ?></small> <?php endif; ?> <?php endif; ?> </p> <?php if($retainer->status == 0): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('send bill')): ?> <a href="<?php echo e(route('retainer.sent', $retainer->id)); ?>" class="btn btn-sm btn-warning" data-bs-toggle="tooltip" data-original-title="<?php echo e(__('Mark Sent')); ?>"><i class="ti ti-send mr-2"></i><?php echo e(__('Send')); ?></a> <?php endif; ?> <?php endif; ?> </div> <div class="col-md-6 col-lg-4 col-xl-4"> <div class="timeline-icons"><span class="timeline-dots"></span> <i class="ti ti-file-invoice text-info"></i> </div> <h6 class="text-info my-3"><?php echo e(__('Get Paid')); ?></h6> <p class="text-muted text-sm mb-3"><?php echo e(__('Status')); ?> : <?php echo e(__('Awaiting payment')); ?> </p> <?php if($retainer->status != 0 && $retainer->is_convert == 0): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create payment invoice')): ?> <a href="#" data-url="<?php echo e(route('retainer.payment', $retainer->id)); ?>" data-ajax-popup="true" data-title="<?php echo e(__('Add Payment')); ?>" class="btn btn-sm btn-info" data-original-title="<?php echo e(__('Add Payment')); ?>"><i class="ti ti-file-invoice mr-2"></i><?php echo e(__('Add Payment')); ?></a> <br> <?php endif; ?> <?php endif; ?> </div> </div> </div> </div> </div> <?php endif; ?> <?php endif; ?> <?php if(\Auth::user()->type == 'company'): ?> <?php if($retainer->status != 0): ?> <div class="row justify-content-between align-items-center mb-3"> <div class="col-md-12 d-flex align-items-center justify-content-between justify-content-md-end"> <?php if(!empty($invoicePayment)): ?> <div class="all-button-box mx-2 mr-2"> <a href="#" class="btn btn-sm btn-primary" data-url="<?php echo e(route('invoice.credit.note', $invoice->id)); ?>" data-ajax-popup="true" data-title="<?php echo e(__('Add Credit Note')); ?>"> <?php echo e(__('Add Credit Note')); ?> </a> </div> <?php endif; ?> <?php if($retainer->status != 4): ?> <!-- <div class="all-button-box mr-2"> <a href="<?php echo e(route('retainer.payment.reminder', $retainer->id)); ?>" class="btn btn-sm btn-primary"><?php echo e(__('Receipt Reminder')); ?></a> </div> --> <?php endif; ?> <div class="all-button-box mr-2"> <a href="<?php echo e(route('retainer.resent', $retainer->id)); ?>" class="btn btn-sm btn-primary"><?php echo e(__('Resend Retainer')); ?></a> </div> <div class="all-button-box"> <a href="<?php echo e(route('retainer.pdf', Crypt::encrypt($retainer->id))); ?>" target="_blank" class="btn btn-sm btn-primary"><?php echo e(__('Download')); ?></a> </div> </div> </div> <?php endif; ?> <?php else: ?> <div class="row justify-content-between align-items-center mb-3"> <div class="col-md-12 d-flex align-items-center justify-content-between justify-content-md-end"> <div class="all-button-box mx-2"> <a href="#" class="btn btn-xs btn-primary btn-icon-only width-auto" data-url="<?php echo e(route('customer.retainer.send', $retainer->id)); ?>" data-ajax-popup="true" data-title="<?php echo e(__('Send Retainer')); ?>"> <?php echo e(__('Send Mail')); ?> </a> </div> <div class="all-button-box mx-2"> <a href="<?php echo e(route('retainer.pdf', Crypt::encrypt($retainer->id))); ?>" target="_blank" class="btn btn-xs btn-primary btn-icon-only width-auto"> <?php echo e(__('Download')); ?> </a> </div> <?php if( $retainer->is_convert == 0 && $retainer->getDue() > 0 && !empty($company_payment_setting) && ($company_payment_setting['is_stripe_enabled'] == 'on' || $company_payment_setting['is_paypal_enabled'] == 'on' || $company_payment_setting['is_paystack_enabled'] == 'on' || $company_payment_setting['is_flutterwave_enabled'] == 'on' || $company_payment_setting['is_razorpay_enabled'] == 'on' || $company_payment_setting['is_mercado_enabled'] == 'on' || $company_payment_setting['is_paytm_enabled'] == 'on' || $company_payment_setting['is_mollie_enabled'] == 'on' || $company_payment_setting['is_paypal_enabled'] == 'on' || $company_payment_setting['is_skrill_enabled'] == 'on' || $company_payment_setting['is_coingate_enabled'] == 'on' || $company_payment_setting['is_paymentwall_enabled'] == 'on' || $company_payment_setting['is_toyyibpay_enabled'] == 'on' || $company_payment_setting['is_payfast_enabled'] == 'on' || $company_payment_setting['is_bank_enabled'] == 'on' || $company_payment_setting['is_iyzipay_enabled'] == 'on' || $company_payment_setting['is_paytab_enabled'] == 'on' || $company_payment_setting['is_benefit_enabled'] == 'on' || $company_payment_setting['is_cashfree_enabled'] == 'on' || $company_payment_setting['is_aamarpay_enabled'] == 'on' || $company_payment_setting['is_paytr_enabled'] == 'on')): ?> <div class="all-button-box"> <a href="#" class="btn btn-xs btn-primary btn-icon-only width-auto" data-bs-toggle="modal" data-bs-target="#paymentModal"> <?php echo e(__('Pay Now')); ?> </a> </div> <?php endif; ?> </div> </div> <?php endif; ?> <div class="row"> <!-- <div class="col-12"> --> <div class="card"> <div class="card-body"> <div class="invoice"> <div class="invoice-print"> <div class="row invoice-title mt-2"> <div class="col-xs-12 col-sm-12 col-nd-6 col-lg-6 col-12"> <h2><?php echo e(__('Retainer')); ?></h2> </div> <div class="col-xs-12 col-sm-12 col-nd-6 col-lg-6 col-12 text-end"> <h3 class="invoice-number"> <?php echo e(Auth::user()->retainerNumberFormat($retainer->retainer_id)); ?></h3> </div> <div class="col-12"> <hr> </div> </div> <div class="row"> <div class="col text-end"> <div class="d-flex align-items-center justify-content-end"> <div class="me-4"> <small> <strong><?php echo e(__('Issue Date')); ?> :</strong><br> <?php echo e(\Auth::user()->dateFormat($retainer->issue_date)); ?><br><br> </small> </div> </div> </div> </div> <div class="row"> <?php if(!empty($customer->billing_name)): ?> <div class="col"> <small class="font-style"> <strong><?php echo e(__('Billed To')); ?> :</strong><br> <?php echo e(!empty($customer->billing_name) ? $customer->billing_name : ''); ?><br> <?php echo e(!empty($customer->billing_address) ? $customer->billing_address : ''); ?><br> <?php echo e(!empty($customer->billing_city) ? $customer->billing_city : '' . ', '); ?>, <?php echo e(!empty($customer->billing_state) ? $customer->billing_state : ', '); ?> <?php echo e(!empty($customer->billing_zip) ? $customer->billing_zip : ''); ?><br> <?php echo e(!empty($customer->billing_country) ? $customer->billing_country : ''); ?><br> <?php echo e(!empty($customer->billing_phone) ? $customer->billing_phone : ''); ?><br> <strong><?php echo e(__('Tax Number ')); ?> : </strong><?php echo e(!empty($customer->tax_number) ? $customer->tax_number : ''); ?> </small> </div> <?php endif; ?> <?php if(App\Models\Utility::getValByName('shipping_display') == 'on'): ?> <div class="col "> <small> <strong><?php echo e(__('Shipped To')); ?> :</strong><br> <?php echo e(!empty($customer->shipping_name) ? $customer->shipping_name : ''); ?><br> <?php echo e(!empty($customer->shipping_address) ? $customer->shipping_address : ''); ?><br> <?php echo e(!empty($customer->shipping_city) ? $customer->shipping_city : '' . ', '); ?>, <?php echo e(!empty($customer->shipping_state) ? $customer->shipping_state : '' . ', '); ?> <?php echo e(!empty($customer->shipping_zip) ? $customer->shipping_zip : ''); ?><br> <?php echo e(!empty($customer->shipping_country) ? $customer->shipping_country : ''); ?><br> <?php echo e(!empty($customer->shipping_phone) ? $customer->shipping_phone : ''); ?><br> <strong><?php echo e(__('Tax Number ')); ?> : </strong><?php echo e(!empty($customer->tax_number) ? $customer->tax_number : ''); ?> </small> </div> <?php endif; ?> <div class="col"> <div class="float-end mt-3"> <?php echo DNS2D::getBarcodeHTML( route('pay.invoice', \Illuminate\Support\Facades\Crypt::encrypt($retainer->id)), 'QRCODE', 2, 2, ); ?> </div> </div> </div> <div class="row mt-3"> <div class="col"> <small> <strong><?php echo e(__('Status')); ?> :</strong><br> <?php if($retainer->status == 0): ?> <span class="badge fix_badge rounded px-3 p-1 bg-primary "><?php echo e(__(\App\Models\Retainer::$statues[$retainer->status])); ?></span> <?php elseif($retainer->status == 1): ?> <span class="badge fix_badge rounded px-3 p-1 bg-info"><?php echo e(__(\App\Models\Retainer::$statues[$retainer->status])); ?></span> <?php elseif($retainer->status == 2): ?> <span class="badge fix_badge rounded px-3 p-1 bg-secondary"><?php echo e(__(\App\Models\Retainer::$statues[$retainer->status])); ?></span> <?php elseif($retainer->status == 3): ?> <span class="badge fix_badge rounded px-3 p-1 bg-warning"><?php echo e(__(\App\Models\Retainer::$statues[$retainer->status])); ?></span> <?php elseif($retainer->status == 4): ?> <span class="badge fix_badge rounded px-3 p-1 bg-danger"><?php echo e(__(\App\Models\Retainer::$statues[$retainer->status])); ?></span> <?php endif; ?> </small> </div> <?php if(!empty($customFields) && count($retainer->customField) > 0): ?> <?php $__currentLoopData = $customFields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col text-md-right"> <small> <strong><?php echo e($field->name); ?> :</strong><br> <?php echo e(!empty($retainer->customField) ? $retainer->customField[$field->id] : '-'); ?> <br><br> </small> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <div class="row mt-4"> <div class="col-md-12"> <div class="font-weight-bold"><?php echo e(__('Product Summary')); ?></div> <small><?php echo e(__('All items here cannot be deleted.')); ?></small> <div class="table-responsive mt-2"> <table class="table mb-0 table-striped"> <tr> <th data-width="40" class="text-dark">#</th> <th class="text-dark"><?php echo e(__('Product')); ?></th> <th class="text-dark"><?php echo e(__('Quantity')); ?></th> <th class="text-dark"><?php echo e(__('Rate')); ?></th> <th class="text-dark"><?php echo e(__('Discount')); ?></th> <th class="text-dark"><?php echo e(__('Tax')); ?></th> <th class="text-dark"><?php echo e(__('Description')); ?></th> <th class="text-right text-dark" width="12%"><?php echo e(__('Price')); ?><br> <small class="text-danger font-weight-bold"><?php echo e(__('before tax & discount')); ?></small> </th> </tr> <?php $totalQuantity = 0; $totalRate = 0; $totalTaxPrice = 0; $totalDiscount = 0; $taxesData = []; ?> <?php $__currentLoopData = $iteams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $iteam): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(!empty($iteam->tax)): ?> <?php $taxes = App\Models\Utility::tax($iteam->tax); $totalQuantity += $iteam->quantity; $totalRate += $iteam->price; $totalDiscount += $iteam->discount; foreach ($taxes as $taxe) { $taxDataPrice = App\Models\Utility::taxRate($taxe->rate, $iteam->price, $iteam->quantity); if (array_key_exists($taxe->name, $taxesData)) { $taxesData[$taxe->name] = $taxesData[$taxe->name] + $taxDataPrice; } else { $taxesData[$taxe->name] = $taxDataPrice; } } ?> <?php endif; ?> <tr> <td><?php echo e($key + 1); ?></td> <td><?php echo e(!empty($iteam->product) ? $iteam->product->name : ''); ?></td> <td><?php echo e($iteam->quantity); ?> (<?php echo e($iteam->product->unit->name); ?>)</td> <td><?php echo e(\Auth::user()->priceFormat($iteam->price)); ?></td> <td> <?php echo e(\Auth::user()->priceFormat($iteam->discount)); ?> </td> <td> <?php if(!empty($iteam->tax)): ?> <table> <?php $totalTaxRate = 0;?> <?php $__currentLoopData = $taxes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $taxPrice = App\Models\Utility::taxRate($tax->rate, $iteam->price, $iteam->quantity); $totalTaxPrice += $taxPrice; ?> <tr> <td><?php echo e($tax->name . ' (' . $tax->rate . '%)'); ?></td> <td><?php echo e(\Auth::user()->priceFormat($taxPrice)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </table> <?php else: ?> - <?php endif; ?> </td> <td><?php echo e(!empty($iteam->description) ? $iteam->description : '-'); ?></td> <td class="text-right"> <?php echo e(\Auth::user()->priceFormat($iteam->price * $iteam->quantity)); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tfoot> <tr> <td></td> <td><b><?php echo e(__('Total')); ?></b></td> <td><b><?php echo e($totalQuantity); ?></b></td> <td><b><?php echo e(\Auth::user()->priceFormat($totalRate)); ?></b></td> <td> <b><?php echo e(\Auth::user()->priceFormat($totalDiscount)); ?></b> </td> <td><b><?php echo e(\Auth::user()->priceFormat($totalTaxPrice)); ?></b></td> <td></td> </tr> <tr> <td colspan="6"></td> <td class="text-right"><b><?php echo e(__('Sub Total')); ?></b></td> <td class="text-right"> <?php echo e(\Auth::user()->priceFormat($retainer->getSubTotal())); ?></td> </tr> <tr> <td colspan="6"></td> <td class="text-right"><b><?php echo e(__('Discount')); ?></b></td> <td class="text-right"> <?php echo e(\Auth::user()->priceFormat($retainer->getTotalDiscount())); ?></td> </tr> <?php if(!empty($taxesData)): ?> <?php $__currentLoopData = $taxesData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $taxName => $taxPrice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td colspan="6"></td> <td class="text-right"><b><?php echo e($taxName); ?></b></td> <td class="text-right"> <?php echo e(\Auth::user()->priceFormat($taxPrice)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <tr> <td colspan="6"></td> <td class="blue-text text-right"><b><?php echo e(__('Total')); ?></b></td> <td class="blue-text text-right"> <?php echo e(\Auth::user()->priceFormat($retainer->getTotal())); ?></td> </tr> <tr> <td colspan="6"></td> <td class="text-right"><b><?php echo e(__('Paid')); ?></b></td> <td class="text-right"> <?php echo e(\Auth::user()->priceFormat($retainer->getTotal() - $retainer->getDue())); ?> </td> </tr> <tr> <td colspan="6"></td> <td class="text-right"><b><?php echo e(__('Credit Note')); ?></b></td> </tr> <tr> <td colspan="6"></td> <td class="text-right"><b><?php echo e(__('Due')); ?></b></td> <td class="text-right"> <?php echo e(\Auth::user()->priceFormat($retainer->getDue())); ?></td> </tr> </tfoot> </table> </div> </div> </div> </div> </div> </div> <!-- </div> --> </div> <!-- <div class="col-12"> --> <h5 class="h4 d-inline-block font-weight-400 mb-2"><?php echo e(__('Receipt Summary')); ?></h5> <div class="card"> <div class="card-body table-border-style"> <div class="table-responsive"> <table class="table "> <tr> <th class="text-dark"><?php echo e(__('Payment Receipt')); ?></th> <th class="text-dark"><?php echo e(__('Date')); ?></th> <th class="text-dark"><?php echo e(__('Amount')); ?></th> <th class="text-dark"><?php echo e(__('Payment Type')); ?></th> <th class="text-dark"><?php echo e(__('Account')); ?></th> <th class="text-dark"><?php echo e(__('Reference')); ?></th> <th class="text-dark"><?php echo e(__('Description')); ?></th> <th class="text-dark"><?php echo e(__('Receipt')); ?></th> <th class="text-dark"><?php echo e(__('OrderId')); ?></th> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete payment invoice')): ?> <th class="text-dark"><?php echo e(__('Action')); ?></th> <?php endif; ?> </tr> <?php $__currentLoopData = $retainer->payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $paymentpath = \App\Models\Utility::get_file('uploads/retainerpayment'); $path = \App\Models\Utility::get_file('/uploads/bank_receipt'); ?> <tr> <td> <?php if(!empty($payment->add_receipt)): ?> - <?php else: ?> - <?php endif; ?> </td> <td><?php echo e(\Auth::user()->dateFormat($payment->date)); ?></td> <td><?php echo e(\Auth::user()->priceFormat($payment->amount)); ?></td> <td><?php echo e($payment->payment_type); ?></td> <td><?php echo e(!empty($payment->bankAccount) ? $payment->bankAccount->bank_name . ' ' . $payment->bankAccount->holder_name : '--'); ?> </td> <td><?php echo e(!empty($payment->reference) ? $payment->reference : '--'); ?> <?php echo e(Auth::user()->retainerNumberFormat($retainer->retainer_id)); ?> </td> <td><?php echo e(!empty($payment->description) ? $payment->description : '--'); ?></td> <td> <?php if(!empty($payment->receipt)): ?> <a href="<?php echo e($path . '/' . $payment->receipt); ?>" target="_blank"> <i class="ti ti-file"></i></a> <?php elseif(!empty($payment->add_receipt)): ?> <a href="<?php echo e($payment->add_receipt); ?>" target="_blank"> <i class="ti ti-file"></i></a> <?php else: ?> -- <?php endif; ?> </td> <td><?php echo e(!empty($payment->order_id) ? $payment->order_id : '--'); ?></td> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Delete Invoice product')): ?> <td> <div class="action-btn bg-danger ms-2"> <?php echo Form::open([ 'method' => 'post', 'route' => ['retainer.payment.destroy', $retainer->id, $payment->id], 'id' => 'delete-form-' . $payment->id, ]); ?> <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para " data-bs-toggle="tooltip" title="Delete" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?') . '|' . __('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="document.getElementById('delete-form-<?php echo e($payment->id); ?>').submit();"> <i class="ti ti-trash text-white"></i> </a> <?php echo Form::close(); ?> </td> <?php endif; ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php $__currentLoopData = $retainer->bankpayment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $bankpayment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $paymentpath = \App\Models\Utility::get_file('uploads/retainerpayment'); $path = \App\Models\Utility::get_file('/uploads/bank_receipt'); ?> <tr> <td> <?php if(!empty($bankpayment->add_receipt)): ?> - <?php else: ?> - <?php endif; ?> </td> <td><?php echo e(\Auth::user()->dateFormat($bankpayment->date)); ?></td> <td><?php echo e(\Auth::user()->priceFormat($bankpayment->amount)); ?></td> <td><?php echo e('Bank Transfer'); ?></td> <td><?php echo e(!empty($bankpayment->bankAccount) ? $bankpayment->bankAccount->bank_name . ' ' . $bankpayment->bankAccount->holder_name : '--'); ?> </td> <td><?php echo e(!empty($bankpayment->reference) ? $bankpayment->reference : '--'); ?> <?php echo e(Auth::user()->retainerNumberFormat($retainer->retainer_id)); ?> </td> <td><?php echo e(!empty($bankpayment->description) ? $bankpayment->description : '--'); ?></td> <td> <?php if(!empty($bankpayment->receipt)): ?> <a href="<?php echo e($path . '/' . $bankpayment->receipt); ?>" target="_blank"> <i class="ti ti-file"></i></a> <?php else: ?> -- <?php endif; ?> </td> <td><?php echo e(!empty($bankpayment->order_id) ? $bankpayment->order_id : '--'); ?></td> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Delete Invoice product')): ?> <td> <div class="action-btn bg-warning ms-2"> <a href="#" class="mx-3 btn btn-sm d-inline-flex align-items-center" data-bs-toggle="modal" data-size="lg" data-ajax-popup="true" data-url="<?php echo e(route('retainer.payment.show', [$bankpayment->id])); ?>" data-title="<?php echo e(__('Payment Status')); ?>" data-size="lg"> <span class="text-white"> <i class="ti ti-caret-right text-white" data-bs-toggle="tooltip" data-bs-original-title="<?php echo e(__('Payment Status')); ?>"></i></span></a> </div> <div class="action-btn bg-danger ms-2"> <?php echo Form::open([ 'method' => 'delete', 'route' => ['retainer.delete', $bankpayment->id], 'id' => 'delete-form-' . $bankpayment->id, ]); ?> <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="Delete" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?') . '|' . __('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="document.getElementById('delete-form-<?php echo e($bankpayment->id); ?>').submit();"> <i class="ti ti-trash text-white"></i> </a> <?php echo Form::close(); ?> </div> </td> <?php endif; ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </table> </div> </div> </div> <!-- </div> --> <?php if(auth()->guard('customer')->check()): ?> <?php if($retainer->getDue() > 0): ?> <div class="modal fade" id="paymentModal" tabindex="-1" role="dialog" aria-labelledby="paymentModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="paymentModalLabel"><?php echo e(__('Add Payment')); ?></h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"> </button> </div> <div class="modal-body"> <div class="card bg-none card-box"> <section class="nav-tabs p-2"> <?php if( !empty($company_payment_setting) && ($company_payment_setting['is_stripe_enabled'] == 'on' || $company_payment_setting['is_paypal_enabled'] == 'on' || $company_payment_setting['is_paystack_enabled'] == 'on' || $company_payment_setting['is_flutterwave_enabled'] == 'on' || $company_payment_setting['is_razorpay_enabled'] == 'on' || $company_payment_setting['is_mercado_enabled'] == 'on' || $company_payment_setting['is_paytm_enabled'] == 'on' || $company_payment_setting['is_mollie_enabled'] == 'on' || $company_payment_setting['is_paypal_enabled'] == 'on' || $company_payment_setting['is_skrill_enabled'] == 'on' || $company_payment_setting['is_coingate_enabled'] == 'on' || $company_payment_setting['is_paymentwall_enabled'] == 'on' || $company_payment_setting['is_toyyibpay_enabled'] == 'on' || $company_payment_setting['is_payfast_enabled'] == 'on' || $company_payment_setting['is_bank_enabled'] == 'on' || $company_payment_setting['is_iyzipay_enabled'] == 'on' || $company_payment_setting['is_paytab_enabled'] == 'on' || $company_payment_setting['is_benefit_enabled'] == 'on' || $company_payment_setting['is_cashfree_enabled'] == 'on' || $company_payment_setting['is_aamarpay_enabled'] == 'on' || $company_payment_setting['is_paytr_enabled'] == 'on')): ?> <ul class="nav nav-pills mb-3" role="tablist"> <?php if( $company_payment_setting['is_stripe_enabled'] == 'on' && !empty($company_payment_setting['stripe_key']) && !empty($company_payment_setting['stripe_secret'])): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm active" data-bs-toggle="tab" href="#stripe-payment" role="tab" aria-controls="stripe" aria-selected="true"><?php echo e(__('Stripe')); ?></a> </li> <?php endif; ?> <?php if( $company_payment_setting['is_paypal_enabled'] == 'on' && !empty($company_payment_setting['paypal_client_id']) && !empty($company_payment_setting['paypal_secret_key'])): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#paypal-payment" role="tab" aria-controls="paypal" aria-selected="false"><?php echo e(__('Paypal')); ?></a> </li> <?php endif; ?> <?php if( $company_payment_setting['is_paystack_enabled'] == 'on' && !empty($company_payment_setting['paystack_public_key']) && !empty($company_payment_setting['paystack_secret_key'])): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#paystack-payment" role="tab" aria-controls="paystack" aria-selected="false"><?php echo e(__('Paystack')); ?></a> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_flutterwave_enabled']) && $company_payment_setting['is_flutterwave_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#flutterwave-payment" role="tab" aria-controls="flutterwave" aria-selected="false"><?php echo e(__('Flutterwave')); ?></a> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_razorpay_enabled']) && $company_payment_setting['is_razorpay_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#razorpay-payment" role="tab" aria-controls="razorpay" aria-selected="false"><?php echo e(__('Razorpay')); ?></a> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_mercado_enabled']) && $company_payment_setting['is_mercado_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#mercado-payment" role="tab" aria-controls="mercado" aria-selected="false"><?php echo e(__('Mercado')); ?></a> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_paytm_enabled']) && $company_payment_setting['is_paytm_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#paytm-payment" role="tab" aria-controls="paytm" aria-selected="false"><?php echo e(__('Paytm')); ?></a> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_mollie_enabled']) && $company_payment_setting['is_mollie_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#mollie-payment" role="tab" aria-controls="mollie" aria-selected="false"><?php echo e(__('Mollie')); ?></a> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_skrill_enabled']) && $company_payment_setting['is_skrill_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#skrill-payment" role="tab" aria-controls="skrill" aria-selected="false"><?php echo e(__('Skrill')); ?></a> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_coingate_enabled']) && $company_payment_setting['is_coingate_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#coingate-payment" role="tab" aria-controls="coingate" aria-selected="false"><?php echo e(__('Coingate')); ?></a> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_paymentwall_enabled']) && $company_payment_setting['is_paymentwall_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <a class="btn btn-outline-primary btn-sm ml-1" data-bs-toggle="tab" href="#paymentwall-payment" role="tab" aria-controls="paymentwall" aria-selected="false"><?php echo e(__('PaymentWall')); ?></a> </li> <?php endif; ?> <?php if( $company_payment_setting['is_toyyibpay_enabled'] == 'on' && !empty($company_payment_setting['toyyibpay_secret_key']) && !empty($company_payment_setting['category_code'])): ?> <li class="nav-item mb-2"> <button class=" btn btn-outline-success btn-sm" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#toyyibpay-payment" type="button" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e(__('Toyyibpay')); ?></button> </li> <?php endif; ?> <?php if( $company_payment_setting['is_payfast_enabled'] == 'on' && !empty($company_payment_setting['payfast_merchant_id']) && !empty($company_payment_setting['payfast_merchant_key'])): ?> <li class="nav-item mb-2"> <button class=" btn btn-outline-success btn-sm" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#payfast-payment" type="button" role="tab" aria-controls="pills-home" aria-selected="true" onclick=get_payfast_status()><?php echo e(__('Payfast')); ?></button> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_iyzipay_enabled']) && $company_payment_setting['is_iyzipay_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <button class=" btn btn-outline-success btn-sm" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#iyzipay-payment" type="button" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e(__('IyziPay')); ?></button> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_sspay_enabled']) && $company_payment_setting['is_sspay_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <button class="btn btn-outline-success btn-sm" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#sspay-payment" type="button" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e(__('Sspay')); ?></button> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_paytab_enabled']) && $company_payment_setting['is_paytab_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <button class="btn btn-outline-success btn-sm" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#paytab-payment" type="button" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e(__('Paytab')); ?></button> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_benefit_enabled']) && $company_payment_setting['is_benefit_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <button class="btn btn-outline-success btn-sm" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#benefit-payment" type="button" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e(__('Benefit')); ?></button> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_cashfree_enabled']) && $company_payment_setting['is_cashfree_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <button class="btn btn-outline-success btn-sm" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#cashfree-payment" type="button" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e(__('Cashfree')); ?></button> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_aamarpay_enabled']) && $company_payment_setting['is_aamarpay_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <button class="btn btn-outline-success btn-sm" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#aamarpay-payment" type="button" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e(__('Aamarpay')); ?></button> </li> <?php endif; ?> <?php if(isset($company_payment_setting['is_paytr_enabled']) && $company_payment_setting['is_paytr_enabled'] == 'on'): ?> <li class="nav-item mb-2"> <button class="btn btn-outline-success btn-sm" id="pills-home-tab" data-bs-toggle="pill" data-bs-target="#paytr-payment" type="button" role="tab" aria-controls="pills-home" aria-selected="true"><?php echo e(__('PayTR')); ?></button> </li> <?php endif; ?> </ul> <?php endif; ?> <div class="tab-content"> <?php if( !empty($company_payment_setting) && ($company_payment_setting['is_stripe_enabled'] == 'on' && !empty($company_payment_setting['stripe_key']) && !empty($company_payment_setting['stripe_secret']))): ?> <div class="tab-pane fade active show" id="stripe-payment" role="tabpanel" aria-labelledby="stripe-payment"> <form method="post" action="<?php echo e(route('customer.retainer.payment', $retainer->id)); ?>" class="require-validation" id="payment-form"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-sm-8"> <div class="custom-radio"> <label class="font-16 font-weight-bold"><?php echo e(__('Credit / Debit Card')); ?></label> </div> <p class="mb-0 pt-1 text-sm"> <?php echo e(__('Safe money transfer using your bank account. We support Mastercard, Visa, Discover and American express.')); ?> </p> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="card-name-on"><?php echo e(__('Name on card')); ?></label> <input type="text" name="name" id="card-name-on" class="form-control required" placeholder="<?php echo e(\Auth::user()->name); ?>"> </div> </div> <div class="col-md-12"> <div id="card-element"> </div> <div id="card-errors" role="alert"></div> </div> </div> <div class="row"> <div class="form-group col-md-12"> <br> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="error" style="display: none;"> <div class='alert-danger alert'> <?php echo e(__('Please correct the errors and try again.')); ?> </div> </div> </div> </div> <!-- <div class="form-group mt-3"> <button class="btn btn-sm btn-primary rounded-pill" type="submit"><?php echo e(__('Make Payment')); ?></button> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && ($company_payment_setting['is_paypal_enabled'] == 'on' && !empty($company_payment_setting['paypal_client_id']) && !empty($company_payment_setting['paypal_secret_key']))): ?> <div class="tab-pane fade " id="paypal-payment" role="tabpanel" aria-labelledby="paypal-payment"> <form class="w3-container w3-display-middle w3-card-4 " method="POST" id="payment-form" action="<?php echo e(route('customer.pay.with.paypal', $retainer->id)); ?>"> <?php echo csrf_field(); ?> <div class="row"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> <?php $__errorArgs = ['amount']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-amount" role="alert"> <strong><?php echo e($message); ?></strong> </span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> </div> <!-- <div class="form-group mt-3"> <button class="btn btn-sm btn-primary rounded-pill" name="submit" type="submit"><?php echo e(__('Make Payment')); ?></button> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" name="submit" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if(isset($company_payment_setting['is_paystack_enabled']) && $company_payment_setting['is_paystack_enabled'] == 'on' && !empty($company_payment_setting['paystack_public_key']) && !empty($company_payment_setting['paystack_secret_key'])): ?> <div class="tab-pane fade " id="paystack-payment" role="tabpanel" aria-labelledby="paypal-payment"> <form class="w3-container w3-display-middle w3-card-4" method="POST" id="paystack-payment-form" action="<?php echo e(route('customer.retainer.pay.with.paystack')); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <!-- <div class="form-group mt-3"> <input class="btn btn-sm btn-primary rounded-pill" id="pay_with_paystack" type="button" value="<?php echo e(__('Make Payment')); ?>"> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" id="pay_with_paystack" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if(isset($company_payment_setting['is_flutterwave_enabled']) && $company_payment_setting['is_flutterwave_enabled'] == 'on' && !empty($company_payment_setting['paystack_public_key']) && !empty($company_payment_setting['paystack_secret_key'])): ?> <div class="tab-pane fade " id="flutterwave-payment" role="tabpanel" aria-labelledby="paypal-payment"> <form role="form" action="<?php echo e(route('customer.retainer.pay.with.flaterwave')); ?>" method="post" class="require-validation" id="flaterwave-payment-form"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <!-- <div class="form-group mt-3"> <input class="btn btn-sm btn-primary rounded-pill" id="pay_with_flaterwave" type="button" value="<?php echo e(__('Make Payment')); ?>"> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" id="pay_with_flaterwave" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if(isset($company_payment_setting['is_razorpay_enabled']) && $company_payment_setting['is_razorpay_enabled'] == 'on'): ?> <div class="tab-pane fade " id="razorpay-payment" role="tabpanel" aria-labelledby="paypal-payment"> <form role="form" action="<?php echo e(route('customer.retainer.pay.with.razorpay')); ?>" method="post" class="require-validation" id="razorpay-payment-form"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <!-- <div class="form-group mt-3"> <input class="btn btn-sm btn-primary rounded-pill" id="pay_with_razorpay" type="button" value="<?php echo e(__('Make Payment')); ?>"> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" id="pay_with_razorpay" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if(isset($company_payment_setting['is_mercado_enabled']) && $company_payment_setting['is_mercado_enabled'] == 'on'): ?> <div class="tab-pane fade " id="mercado-payment" role="tabpanel" aria-labelledby="mercado-payment"> <form role="form" action="<?php echo e(route('customer.retainer.pay.with.mercado')); ?>" method="post" class="require-validation" id="mercado-payment-form"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <!-- <div class="form-group mt-3"> <input type="submit" id="pay_with_mercado" value="<?php echo e(__('Make Payment')); ?>" class="btn btn-sm btn-primary rounded-pill"> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" id="pay_with_mercado" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if(isset($company_payment_setting['is_paytm_enabled']) && $company_payment_setting['is_paytm_enabled'] == 'on'): ?> <div class="tab-pane fade" id="paytm-payment" role="tabpanel" aria-labelledby="paytm-payment"> <form role="form" action="<?php echo e(route('customer.retainer.pay.with.paytm')); ?>" method="post" class="require-validation" id="paytm-payment-form"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <div class="col-md-12"> <div class="form-group"> <label for="flaterwave_coupon" class=" text-dark"><?php echo e(__('Mobile Number')); ?></label> <input type="text" id="mobile" name="mobile" class="form-control mobile" data-from="mobile" placeholder="<?php echo e(__('Enter Mobile Number')); ?>" required> </div> </div> <!-- <div class="form-group mt-3"> <input type="submit" id="pay_with_paytm" value="<?php echo e(__('Make Payment')); ?>" class="btn btn-sm btn-primary rounded-pill"> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" id="pay_with_paytm" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if(isset($company_payment_setting['is_mollie_enabled']) && $company_payment_setting['is_mollie_enabled'] == 'on'): ?> <div class="tab-pane fade " id="mollie-payment" role="tabpanel" aria-labelledby="mollie-payment"> <form role="form" action="<?php echo e(route('customer.retainer.pay.with.mollie')); ?>" method="post" class="require-validation" id="mollie-payment-form"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <!-- <div class="form-group mt-3"> <input type="submit" id="pay_with_mollie" value="<?php echo e(__('Make Payment')); ?>" class="btn btn-sm btn-primary rounded-pill"> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" id="pay_with_mollie" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if(isset($company_payment_setting['is_skrill_enabled']) && $company_payment_setting['is_skrill_enabled'] == 'on'): ?> <div class="tab-pane fade " id="skrill-payment" role="tabpanel" aria-labelledby="skrill-payment"> <form role="form" action="<?php echo e(route('customer.retainer.pay.with.skrill')); ?>" method="post" class="require-validation" id="skrill-payment-form"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <?php $skrill_data = [ 'transaction_id' => md5(date('Y-m-d') . strtotime('Y-m-d H:i:s') . 'user_id'), 'user_id' => 'user_id', 'amount' => 'amount', 'currency' => 'currency', ]; session()->put('skrill_data', $skrill_data); ?> <!-- <div class="form-group mt-3"> <input type="submit" id="pay_with_skrill" value="<?php echo e(__('Make Payment')); ?>" class="btn btn-sm btn-primary rounded-pill"> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" id="pay_with_skrill" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if(isset($company_payment_setting['is_coingate_enabled']) && $company_payment_setting['is_coingate_enabled'] == 'on'): ?> <div class="tab-pane fade " id="coingate-payment" role="tabpanel" aria-labelledby="coingate-payment"> <form role="form" action="<?php echo e(route('customer.retainer.pay.with.coingate')); ?>" method="post" class="require-validation" id="coingate-payment-form"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <!-- <div class="form-group mt-3"> <input type="submit" id="pay_with_coingate" value="<?php echo e(__('Make Payment')); ?>" class="btn btn-sm btn-primary rounded-pill"> </div> --> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" id="pay_with_coingate" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && $company_payment_setting['is_paymentwall_enabled'] == 'on' && !empty($company_payment_setting['is_paymentwall_enabled']) && !empty($company_payment_setting['paymentwall_secret_key'])): ?> <div class="tab-pane fade " id="paymentwall-payment" role="tabpanel" aria-labelledby="paymentwall-payment"> <!-- <div class="card"> --> <form class="w3-container w3-display-middle w3-card-4" method="POST" id="paymentwall-payment-form" action="<?php echo e(route('retainer.paymentwallpayment')); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" id="pay_with_paymentwall" name="submit" type="submit"><?php echo e(__('Make Payment')); ?> </button> </div> </form> <!-- </div> --> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && isset($company_payment_setting['is_toyyibpay_enabled']) && $company_payment_setting['is_toyyibpay_enabled'] == 'on' && !empty($company_payment_setting['toyyibpay_secret_key']) && !empty($company_payment_setting['category_code'])): ?> <div class="tab-pane fade " id="toyyibpay-payment" role="tabpanel" aria-labelledby="toyyibpay-payment"> <form class="w3-container w3-display-middle w3-card-4" method="POST" id="toyyibpay-payment-form" action="<?php echo e(route('pay.with.toyyibpay', $retainer->id)); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"> <span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?> </span> </span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <div class="col-12 form-group mt-3 text-end"> <input class="btn btn-sm btn-primary m-r-10" id="pay_with_toyyibpay" type="submit" value="<?php echo e(__('Make Payment')); ?>"> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && isset($company_payment_setting['is_payfast_enabled']) && $company_payment_setting['is_payfast_enabled'] == 'on' && !empty($company_payment_setting['payfast_merchant_id'])): ?> <div class="tab-pane fade " id="payfast-payment" role="tabpanel" aria-labelledby="payfast-payment"> <?php $pfHost = $company_payment_setting['payfast_mode'] == 'sandbox' ? 'sandbox.payfast.co.za' : 'www.payfast.co.za'; ?> <form role="form" action=<?php echo e('https://' . $pfHost . '/eng/process'); ?> method="post" id="payfast-payment-form"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"> <span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?> </span> </span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="pay_fast_amount" onchange=get_payfast_status()> </div> </div> <div id="get-payfast-inputs"></div> <div class="col-12 form-group mt-3 text-end"> <input type="hidden" name="retainer_id" id="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <input class="btn btn-sm btn-primary m-r-10" id="pay_with_payfast" type="submit" value="<?php echo e(__('Make Payment')); ?>"> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && ($company_payment_setting['is_iyzipay_enabled'] == 'on' && !empty($company_payment_setting['iyzipay_private_key']) && !empty($company_payment_setting['iyzipay_secret_key']))): ?> <div class="tab-pane fade " id="iyzipay-payment" role="tabpanel" aria-labelledby="iyzipay-payment"> <form class="w3-container w3-display-middle w3-card-4 " method="POST" id="payment-form" action="<?php echo e(route('retainer.with.iyzipay', $retainer->id)); ?>"> <?php echo csrf_field(); ?> <div class="row"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"><span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?></span></span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> <?php $__errorArgs = ['amount']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-amount" role="alert"> <strong><?php echo e($message); ?></strong> </span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> </div> <div class="col-12 form-group mt-3 text-end"> <button class="btn btn-sm btn-primary m-r-10" name="submit" type="submit"><?php echo e(__('Make Payment')); ?></button> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && isset($company_payment_setting['is_sspay_enabled']) && $company_payment_setting['is_sspay_enabled'] == 'on' && !empty($company_payment_setting['is_sspay_enabled'])): ?> <div class="tab-pane fade " id="sspay-payment" role="tabpanel" aria-labelledby="sspay-payment"> <form class="w3-container w3-display-middle w3-card-4" method="POST" id="sspay-payment-form" action="<?php echo e(route('retainer.pay.with.sspay', $retainer->id)); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"> <span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?> </span> </span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <div class="col-12 form-group mt-3 text-end"> <input class="btn btn-sm btn-primary m-r-10" id="pay_with_sspay" type="submit" value="<?php echo e(__('Make Payment')); ?>"> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && isset($company_payment_setting['is_paytab_enabled']) && $company_payment_setting['is_paytab_enabled'] == 'on' && !empty($company_payment_setting['is_paytab_enabled'])): ?> <div class="tab-pane fade " id="paytab-payment" role="tabpanel" aria-labelledby="paytab-payment"> <form class="w3-container w3-display-middle w3-card-4" method="POST" id="paytab-payment-form" action="<?php echo e(route('retainer.pay.with.paytab', $retainer->id)); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"> <span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?> </span> </span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <div class="col-12 form-group mt-3 text-end"> <input class="btn btn-sm btn-primary m-r-10" id="pay_with_paytab" type="submit" value="<?php echo e(__('Make Payment')); ?>"> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && isset($company_payment_setting['is_benefit_enabled']) && $company_payment_setting['is_benefit_enabled'] == 'on' && !empty($company_payment_setting['is_benefit_enabled'])): ?> <div class="tab-pane fade" id="benefit-payment" role="tabpanel" aria-labelledby="benefit-payment"> <form class="w3-container w3-display-middle w3-card-4" method="POST" id="benefit-payment-form" action="<?php echo e(route('retainer.pay.with.benefit', $retainer->id)); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"> <span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?> </span> </span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <div class="col-12 form-group mt-3 text-end"> <input class="btn btn-sm btn-primary m-r-10" id="pay_with_benefit" type="submit" value="<?php echo e(__('Make Payment')); ?>"> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && isset($company_payment_setting['is_cashfree_enabled']) && $company_payment_setting['is_cashfree_enabled'] == 'on' && !empty($company_payment_setting['is_cashfree_enabled'])): ?> <div class="tab-pane fade" id="cashfree-payment" role="tabpanel" aria-labelledby="cashfree-payment"> <form class="w3-container w3-display-middle w3-card-4" method="POST" id="cashfree-payment-form" action="<?php echo e(route('retainer.pay.with.cashfree', $retainer->id)); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"> <span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?> </span> </span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <div class="col-12 form-group mt-3 text-end"> <input class="btn btn-sm btn-primary m-r-10" id="pay_with_cashfree" type="submit" value="<?php echo e(__('Make Payment')); ?>"> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && isset($company_payment_setting['is_aamarpay_enabled']) && $company_payment_setting['is_aamarpay_enabled'] == 'on' && !empty($company_payment_setting['is_aamarpay_enabled'])): ?> <div class="tab-pane fade" id="aamarpay-payment" role="tabpanel" aria-labelledby="aamarpay-payment"> <form class="w3-container w3-display-middle w3-card-4" method="POST" id="aamarpay-payment-form" action="<?php echo e(route('retainer.pay.aamarpay.payment', $retainer->id)); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"> <span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?> </span> </span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <div class="col-12 form-group mt-3 text-end"> <input class="btn btn-sm btn-primary m-r-10" id="pay_with_aarampay" type="submit" value="<?php echo e(__('Make Payment')); ?>"> </div> </form> </div> <?php endif; ?> <?php if( !empty($company_payment_setting) && isset($company_payment_setting['is_paytr_enabled']) && $company_payment_setting['is_paytr_enabled'] == 'on' && !empty($company_payment_setting['is_paytr_enabled'])): ?> <div class="tab-pane fade" id="paytr-payment" role="tabpanel" aria-labelledby="paytr-payment"> <form class="w3-container w3-display-middle w3-card-4" method="POST" id="paytr-payment-form" action="<?php echo e(route('retainer.pay.paytr.payment', $retainer->id)); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="retainer_id" value="<?php echo e(\Illuminate\Support\Facades\Crypt::encrypt($retainer->id)); ?>"> <div class="form-group col-md-12"> <label for="amount"><?php echo e(__('Amount')); ?></label> <div class="input-group"> <span class="input-group-prepend"> <span class="input-group-text"><?php echo e(App\Models\Utility::getValByName('site_currency')); ?> </span> </span> <input class="form-control" required="required" min="0" name="amount" type="number" value="<?php echo e($retainer->getDue()); ?>" min="0" step="0.01" max="<?php echo e($retainer->getDue()); ?>" id="amount"> </div> </div> <div class="col-12 form-group mt-3 text-end"> <input class="btn btn-sm btn-primary m-r-10" id="pay_with_paytr" type="submit" value="<?php echo e(__('Make Payment')); ?>"> </div> </form> </div> <?php endif; ?> </div> </section> </div> </div> </div> </div> </div> <?php endif; ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/payraty/accounting_main/resources/views/retainer/view.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings