File manager - Edit - /var/www/payraty/accounting_main/storage/framework/views/f2ddee7e7e817c6a455bf83d29419418.php
Back
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Customer Statement')); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('script-page'); ?> <script type="text/javascript" src="<?php echo e(asset('js/html2pdf.bundle.min.js')); ?>"></script> <script> var filename = $('#filename').val(); function saveAsPDF() { var element = document.getElementById('printableArea'); var opt = { margin: 0.3, filename: filename, image: { type: 'jpeg', quality: 1 }, html2canvas: { scale: 4, dpi: 72, letterRendering: true }, jsPDF: { unit: 'in', format: 'A4' } }; html2pdf().set(opt).from(element).save(); } </script> <?php $__env->stopPush(); ?> <?php $__env->startSection('breadcrumb'); ?> <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Dashboard')); ?></a></li> <li class="breadcrumb-item"><a href="<?php echo e(route('customer.index')); ?>"><?php echo e(__('Customer')); ?></a></li> <li class="breadcrumb-item"><a href="<?php echo e(route('customer.show', \Crypt::encrypt($customer['id']))); ?>"><?php echo e($customer['name']); ?></a></li> <li class="breadcrumb-item"><?php echo e(__('Customer Statement')); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startSection('action-btn'); ?> <div class="float-end"> <a href="#" class="btn btn-sm btn-primary" onclick="saveAsPDF()" data-bs-toggle="tooltip" title="<?php echo e(__('Download')); ?>"> <span class="btn-inner--icon"><i class="ti ti-download"></i></span> </a> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-md-12 col-lg-12 col-xl-12"> <div class="card"> <div class="card-body"> <div class="invoice"> <div class="invoice-print"> <div class="row invoice-title mt-2"> <?php echo e(Form::model($customerDetail, ['route' => ['customer.statement', $customer->id], 'method' => 'post'])); ?> <div class="row"> <div class=" d-flex align-items-end justify-content-start"> <div class="col-xl-2 col-lg-3 col-md-6 col-sm-12 col-12 mr-2"> <div class="btn-box"> <?php echo e(Form::label('from_date', __('From Date'), ['class' => 'form-label'])); ?><span class="text-danger">*</span> <?php echo e(Form::date('from_date', isset($data['from_date']) ? $data['from_date'] : null, ['class' => 'form-control', 'required' => 'required'])); ?> </div> </div> <div class="col-xl-2 col-lg-3 col-md-6 col-sm-12 col-12 mr-2"> <div class="btn-box"> <?php echo e(Form::label('until_date', __('Until Date'), ['class' => 'form-label'])); ?><span class="text-danger">*</span> <?php echo e(Form::date('until_date', isset($data['until_date']) ? $data['until_date'] : null, ['class' => 'form-control', 'required' => 'required'])); ?> </div> </div> <div class="col-xl-auto d-flex align-items-center justify-content-between col-lg-3 col-md-6 col-sm-12 col-12 mr-2" style="max-width: 980px; width:100%;"> <div class="btn-box "> <input type="submit" value="<?php echo e(__('Apply')); ?>" class="btn ms-2 btn btn-primary"> </div> </div> </div> </div> <?php echo e(Form::close()); ?> </div> <span id="printableArea"> <div class="col-12 text-center mt-4"> <strong> <h5><?php echo e($customer->name); ?></h5> </strong> <strong><?php echo e($data['from_date'] . ' ' . 'to' . ' ' . $data['until_date']); ?></strong> </div> <div class="col-12"> <hr> </div> <div class="row"> <div class="col-md-8"> <img src="<?php echo e($img); ?>" style="max-width: 250px" /> </div> <div class="col-md-4 text-end"> <strong class="invoice-number"><?php echo e($settings['company_name'] ?? ''); ?></strong><br> <strong class="invoice-number"><?php echo e($settings['company_email'] ?? ''); ?></strong><br> <strong class="invoice-number"><?php echo e($settings['company_address'] ?? ''); ?></strong><br> <strong class="invoice-number"><?php echo e($settings['company_city'] ?? ''); ?></strong>, <strong class="invoice-number"><?php echo e($settings['company_state'] ?? ''); ?></strong><br> <strong class="invoice-number"><?php echo e($settings['company_zipcode'] ?? ''); ?></strong>, <strong class="invoice-number"><?php echo e($settings['company_country'] ?? ''); ?></strong><br> <strong class="invoice-number"><?php echo e($settings['company_telephone'] ?? ''); ?></strong><br> </div> </div><br> <div class="row justify-content-end"> <div class="col-md-auto text-end"> <strong> <h5><?php echo e(__('Statement of Accounts')); ?></h5> <hr class="text-dark text-end my-2"> </strong> <strong><?php echo e($data['from_date'] . ' ' . 'to' . ' ' . $data['until_date']); ?></strong> <hr class="text-dark my-2"> </div> </div><br><br> <div class="row"> <?php if(!empty($customer->billing_name)): ?> <div class="col-md-4"> <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> <?php if(App\Models\Utility::getValByName('tax_number') == 'on'): ?> <strong><?php echo e(__('Tax Number ')); ?> : </strong><?php echo e(!empty($customer->tax_number) ? $customer->tax_number : ''); ?> <?php endif; ?> </small> </div> <?php endif; ?> <?php if(\App\Models\Utility::getValByName('shipping_display') == 'on'): ?> <div class="col-md-4 "> <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> <?php if(App\Models\Utility::getValByName('tax_number') == 'on'): ?> <strong><?php echo e(__('Tax Number ')); ?> : </strong><?php echo e(!empty($customer->tax_number) ? $customer->tax_number : ''); ?> <?php endif; ?> </small> </div> <?php endif; ?> <?php $total = 0; $total1 = 0; $total3 = 0; ?> <?php $__currentLoopData = $invoice_payment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $total += $payment->amount; $total1 = $invoice_total->getTotal(); $total3 = $total1 - $total; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="col-md-4"> <div class="table-responsive"> <table class="table table_header"> <thead> <tr> <th><?php echo e('Account Summary'); ?></th> <th></th> </tr> </thead> <tbody class="list"> <tr> <td><?php echo e('Invoiced Amount'); ?></td> <td class="text-end"><?php echo e(\Auth::user()->priceFormat($total1)); ?></td> </tr> <tr> <td><?php echo e('Amount Paid'); ?></td> <td class="text-end"><?php echo e(\Auth::user()->priceFormat($total)); ?></td> </tr> <tr> <td><?php echo e('Balance Due'); ?></td> <td class="text-end"><?php echo e(\Auth::user()->priceFormat($total3)); ?></td> </tr> </tbody> </table> </div> </div> </div> <div class="card mt-4" style="box-shadow: none"> <div class="card-body table-border-styletable-border-style"> <div class="table-responsive"> <table class="table align-items-center table_header"> <thead> <tr> <th scope="col"><?php echo e(__('Date')); ?></th> <th scope="col"><?php echo e(__('Invoice')); ?></th> <th scope="col"><?php echo e(__('Payment Type')); ?></th> <th scope="col"><?php echo e(__('Invoice Total')); ?></th> <th scope="col"><?php echo e(__('Amount')); ?></th> </tr> </thead> <tbody class="list"> <?php $total = 0; $total1 = 0; ?> <?php $__empty_1 = true; $__currentLoopData = $invoice_payment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td><?php echo e(\Auth::user()->dateFormat($payment->date)); ?> </td> <td><?php echo e(\Auth::user()->invoiceNumberFormat($payment->invoice_id)); ?> </td> <td><?php echo e($payment->payment_type); ?> </td> <td><?php echo e(\Auth::user()->priceFormat($invoice_total->getTotal())); ?> </td> <td> <?php echo e(\Auth::user()->priceFormat($payment->amount)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="6" class="text-center text-dark"> <p><?php echo e(__('No Data Found')); ?></p> </td> </tr> <?php endif; ?> <tr class="total"> <td class="light_blue"> <span></span><strong><?php echo e(__('TOTAL :')); ?></strong> </td> <td class="light_blue"></td> <td class="light_blue"></td> <?php $__currentLoopData = $invoice_payment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $total += $payment->amount; $total1 = $invoice_total->getTotal(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <td class="light_blue"> <span></span><strong><?php echo e(\Auth::user()->priceFormat($total1)); ?></strong> </td> <td class="light_blue"> <span></span><strong><?php echo e(\Auth::user()->priceFormat($total)); ?></strong> </td> </tr> </tfoot> </tbody> </table> </div> </div> </div> </span> </div> </div> </div> </div> </div> </div> <?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/customer/statement.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings