⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.220
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
42eb60ef94f270e0308ff2ef5ea7272f.php
<?php $admin_settings = getAdminAllSetting(); $company_settings = getCompanyAllSetting(creatorId()); ?> <div class="modal-body"> <div id="printableArea"> <div class="invoice"> <div class="card-header border-bottom pb-2 mb-3 d-flex align-items-top justify-content-between gap-2"> <div class="invoice-number"> <img src="<?php echo e(get_file(sidebar_logo())); ?>" width="140px;"> </div> <div> <a class="btn btn-sm btn-primary text-white" data-bs-toggle="tooltip" data-bs-toggle="bottom" title="<?php echo e(__('Download')); ?>" onclick="saveAsPDF()"><span class="ti ti-download"></span></a> </div> </div> <div class="card-body p-0"> <div class="mb-3"> <div class="invoice-billed p-3"> <div class="row row-gap"> <div class="col-sm-4"> <div class="mb-2"> <strong class="mt-2"><?php echo e(__('Invoice ID')); ?> :</strong> <?php echo e(\App\Models\Invoice::invoiceNumberFormat($invoice->invoice_id)); ?> </div> <div class="mb-2"> <strong><?php echo e(__('Invoice Date')); ?> :</strong> <?php echo e(company_date_formate($invoice->issue_date)); ?> </div> <div class="mb-2"> <strong><?php echo e(__('Invoice')); ?> :</strong> <?php if($invoice->status == 0): ?> <span><?php echo e(__(\App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php elseif($invoice->status == 1): ?> <span><?php echo e(__(\App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php elseif($invoice->status == 2): ?> <span><?php echo e(__(\App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php elseif($invoice->status == 3): ?> <span><?php echo e(__(\App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php elseif($invoice->status == 4): ?> <span><?php echo e(__(\App\Models\Invoice::$statues[$invoice->status])); ?></span> <?php endif; ?> </div> </div> <div class="col-sm-4"> <?php if(!empty($customer->billing_name) && !empty($customer->billing_address) && !empty($customer->billing_zip)): ?> <p class="mb-2"><strong class="h5 mb-1 d-block"><?php echo e(__('Billed To')); ?> :</strong> <span class="text-muted d-block" style="max-width:80%"> <?php echo e(!empty($customer->billing_name) ? $customer->billing_name : ''); ?> <?php echo e(!empty($customer->billing_address) ? $customer->billing_address : ''); ?> <?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 : ''); ?> <?php echo e(!empty($customer->billing_country) ? $customer->billing_country : ''); ?> </span> </p> <p class="mb-1 text-dark"> <?php echo e(!empty($customer->billing_phone) ? $customer->billing_phone : ''); ?> </p> <p class="mb-0"> <strong><?php echo e(__('Tax Number ')); ?> : </strong><?php echo e(!empty($customer->tax_number) ? $customer->tax_number : ''); ?> </p> <?php endif; ?> </div> <div class="col-sm-4 text-end"> <div class="float-sm-end qr-code"> <?php if(!empty($company_settings['invoice_qr_display']) && $company_settings['invoice_qr_display'] == 'on'): ?> <?php if(module_is_active('Zatca')): ?> <div class="float-sm-end"> <?php echo $__env->make('zatca::zatca_qr_code', [ 'invoice_id' => $invoice->id, ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <?php else: ?> <div class="float-sm-end"> <?php echo DNS2D::getBarcodeHTML( route('pay.invoice', \Illuminate\Support\Facades\Crypt::encrypt($invoice->id)), 'QRCODE', 2, 2, ); ?> </div> <?php endif; ?> <?php endif; ?> </div> </div> </div> </div> </div> <div class="invoice-summary card shadow-lg mb-0"> <div class="invoice-title border-1 border-bottom mb-3 pb-2"> <h3 class="h4 mb-0"><?php echo e(__('Item List')); ?></h3> </div> <div class="table-responsive mt-2"> <table class="table table-striped mb-0"> <thead> <tr class="thead-default"> <?php if($invoice->invoice_module == 'account'): ?> <th class="text-white bg-primary text-uppercase text-start"><?php echo e(__('Item')); ?></th> <?php elseif($invoice->invoice_module == 'taskly'): ?> <th class="text-white bg-primary text-uppercase"><?php echo e(__('Project')); ?></th> <?php endif; ?> <th class="text-white bg-primary text-uppercase"><?php echo e(__('Description')); ?></th> <th class="text-white bg-primary text-uppercase"><?php echo e(__('Quantity')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $iteams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $iteam): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <?php if($invoice->invoice_module == 'account'): ?> <td class="text-start"><?php echo e(!empty($iteam->product()) ? $iteam->product()->name : ''); ?> </td> <?php elseif($invoice->invoice_module == 'taskly'): ?> <td><?php echo e(!empty($iteam->product()) ? $iteam->product()->title : ''); ?> </td> <?php endif; ?> <td class="text-wrap"> <?php echo e(!empty($iteam->description) ? $iteam->description : $iteam->product()->description); ?> </td> <td><?php echo e($iteam->quantity); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <div class="invoice-total mt-3 mb-0 p-3 d-flex align-items-end flex-column justify-content-end" style="min-height: 200px;"> <h6 class="mb-0"><?php echo e(__('Customer Signature')); ?> </h6> </div> </div> </div> </div> </div> </div> <script src="<?php echo e(asset('js/html2pdf.bundle.min.js')); ?>"></script> <script> function saveAsPDF() { var element = document.getElementById('printableArea'); var opt = { margin: 0.3, filename: '<?php echo e(\App\Models\Invoice::invoiceNumberFormat($invoice->invoice_id, $invoice->created_by)); ?>', 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 /**PATH /home/id/erp.dev-unit.com/resources/views/invoice/pdf.blade.php ENDPATH**/ ?>