⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
storage
/
framework
/
views
/
View File Name :
c92c8087ee1b7b770f34c2e3cfa0a949.php
<?php $settings_data = \App\Models\Utility::settingsById($purchase->created_by); ?> <!DOCTYPE html> <html lang="en" dir="<?php echo e($settings_data['SITE_RTL'] == 'on'?'rtl':''); ?>"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap" rel="stylesheet"> <style type="text/css"> :root { --theme-color: <?php echo e($color); ?>; --white: #ffffff; --black: #000000; } body { font-family: 'Lato', sans-serif; } p, li, ul, ol { margin: 0; padding: 0; list-style: none; line-height: 1.5; } * { margin: 0; padding: 0; box-sizing: border-box; } table { width: 100%; border-collapse: collapse; } table tr th { padding: 0.75rem; text-align: left; } table tr td { padding: 0.75rem; text-align: left; } table th small { display: block; font-size: 12px; } .purchase-preview-main { max-width: 700px; width: 100%; margin: 0 auto; background: #ffff; box-shadow: 0 0 10px #ddd; } .purchase-logo { max-width: 200px; width: 100%; } .purchase-header table td { padding: 15px 30px; } .text-right { text-align: right; } .no-space tr td { padding: 0; white-space: nowrap; } .vertical-align-top td { vertical-align: top; } .view-qrcode { max-width: 139px; height: 139px; width: 100%; margin-left: auto; margin-top: 15px; background: var(--white); padding: 13px; border-radius: 10px; } .view-qrcode img { width: 100%; height: 100%; } .purchase-body { padding: 30px 25px 0; } table.add-border tr { border-top: 1px solid var(--theme-color); } tfoot tr:first-of-type { border-bottom: 1px solid var(--theme-color); } .total-table tr:first-of-type td { padding-top: 0; } .total-table tr:first-of-type { border-top: 0; } .sub-total { padding-right: 0; padding-left: 0; } .border-0 { border: none !important; } .purchase-summary td, .purchase-summary th { font-size: 13px; font-weight: 600; } .total-table td:last-of-type { width: 146px; } .purchase-footer { padding: 15px 20px; } .itm-description td { padding-top: 0; } html[dir="rtl"] table tr td, html[dir="rtl"] table tr th{ text-align: right; } html[dir="rtl"] .text-right{ text-align: left; } html[dir="rtl"] .view-qrcode{ margin-left: 0; margin-right: auto; } </style> <?php if($settings_data['SITE_RTL']=='on'): ?> <link rel="stylesheet" href="<?php echo e(asset('css/bootstrap-rtl.css')); ?>"> <?php endif; ?> </head> <body class=""> <div class="purchase-preview-main" id="boxes"> <div class="purchase-header" style="background: <?php echo e($color); ?>;color:<?php echo e($font_color); ?>"> <table> <tbody> <tr> <td> <img class="purchase-logo" src="<?php echo e($img); ?>" alt=""> </td> <td class="text-right"> <h3 style="text-transform: uppercase; font-size: 40px; font-weight: bold;"><?php echo e(__('PURCHASE')); ?></h3> </td> </tr> </tbody> </table> <table class="vertical-align-top"> <tbody> <tr> <td> <p> <?php if($settings['company_name']): ?><?php echo e($settings['company_name']); ?><?php endif; ?><br> <?php if($settings['mail_from_address']): ?><?php echo e($settings['mail_from_address']); ?><?php endif; ?><br><br> <?php if($settings['company_address']): ?><?php echo e($settings['company_address']); ?><?php endif; ?> <?php if($settings['company_city']): ?> <br> <?php echo e($settings['company_city']); ?>, <?php endif; ?> <?php if($settings['company_state']): ?><?php echo e($settings['company_state']); ?><?php endif; ?> <?php if($settings['company_zipcode']): ?> - <?php echo e($settings['company_zipcode']); ?><?php endif; ?> <?php if($settings['company_country']): ?> <br><?php echo e($settings['company_country']); ?><?php endif; ?> <?php if($settings['company_telephone']): ?><?php echo e($settings['company_telephone']); ?><?php endif; ?><br> <?php if(!empty($settings['registration_number'])): ?><?php echo e(__('Registration Number')); ?> : <?php echo e($settings['registration_number']); ?> <?php endif; ?><br> <?php if($settings['vat_gst_number_switch'] == 'on'): ?> <?php if(!empty($settings['tax_type']) && !empty($settings['vat_number'])): ?><?php echo e($settings['tax_type'].' '. __('Number')); ?> : <?php echo e($settings['vat_number']); ?> <br><?php endif; ?> <?php endif; ?> </p> </td> <td> <table class="no-space" style="width: 45%;margin-left: auto;"> <tbody> <tr> <td><?php echo e(__('Number')); ?>:</td> <td class="text-right"><?php echo e(Utility::purchaseNumberFormat($settings,$purchase->purchase_id)); ?></td> </tr> <tr> <td><?php echo e(__('Purchase Date')); ?>:</td> <td class="text-right"><?php echo e(Utility::dateFormat($settings,$purchase->purchase_date)); ?></td> </tr> <?php if(!empty($customFields) && count($purchase->customField)>0): ?> <?php $__currentLoopData = $customFields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($field->name); ?> :</td> <td> <?php echo e(!empty($purchase->customField)?$purchase->customField[$field->id]:'-'); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <tr> <td colspan="2"> <div class="view-qrcode"> <?php echo DNS2D::getBarcodeHTML(route('purchase.link.copy',\Crypt::encrypt($purchase->purchase_id)), "QRCODE",2,2); ?> </div> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </div> <div class="purchase-body"> <table> <tbody> <tr> <td> <strong style="margin-bottom: 10px; display:block;"><?php echo e(__('Bill To')); ?>:</strong> <?php if(!empty($vendor->billing_name)): ?> <p> <?php echo e(!empty($vendor->billing_name)?$vendor->billing_name:''); ?><br> <?php echo e(!empty($vendor->billing_address)?$vendor->billing_address:''); ?><br> <?php echo e(!empty($vendor->billing_city)?$vendor->billing_city:'' .', '); ?><br> <?php echo e(!empty($vendor->billing_state)?$vendor->billing_state:'',', '); ?>, <?php echo e(!empty($vendor->billing_zip)?$vendor->billing_zip:''); ?><br> <?php echo e(!empty($vendor->billing_country)?$vendor->billing_country:''); ?><br> <?php echo e(!empty($vendor->billing_phone)?$vendor->billing_phone:''); ?><br> </p> <?php else: ?> - <?php endif; ?> </td> <?php if($settings['shipping_display']=='on'): ?> <td class="text-right"> <strong style="margin-bottom: 10px; display:block;"><?php echo e(__('Ship To')); ?>:</strong> <?php if(!empty($vendor->shipping_name)): ?> <p> <?php echo e(!empty($vendor->shipping_name)?$vendor->shipping_name:''); ?><br> <?php echo e(!empty($vendor->shipping_address)?$vendor->shipping_address:''); ?><br> <?php echo e(!empty($vendor->shipping_city)?$vendor->shipping_city:'' . ', '); ?><br> <?php echo e(!empty($vendor->shipping_state)?$vendor->shipping_state:'' .', '); ?>, <?php echo e(!empty($vendor->shipping_zip)?$vendor->shipping_zip:''); ?><br> <?php echo e(!empty($vendor->shipping_country)?$vendor->shipping_country:''); ?><br> <?php echo e(!empty($vendor->shipping_phone)?$vendor->shipping_phone:''); ?><br> </p> <?php else: ?> - <?php endif; ?> </td> <?php endif; ?> </tr> </tbody> </table> <table class="add-border purchase-summary" style="margin-top: 30px;"> <thead style="background: <?php echo e($color); ?>;color:<?php echo e($font_color); ?>"> <tr> <th><?php echo e(__('Item')); ?></th> <th><?php echo e(__('Quantity')); ?></th> <th><?php echo e(__('Rate')); ?></th> <th><?php echo e(__('Discount')); ?></th> <th><?php echo e(__('Tax')); ?> (%)</th> <th><?php echo e(__('Price')); ?> <small><?php echo e(__('after tax & discount')); ?></small></th> </tr> </thead> <tbody> <?php if(isset($purchase->itemData) && count($purchase->itemData) > 0): ?> <?php $__currentLoopData = $purchase->itemData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($item->name); ?></td> <td><?php echo e($item->quantity); ?></td> <td><?php echo e(Utility::priceFormat($settings,$item->price)); ?></td> <td><?php echo e(($item->discount!=0)?Utility::priceFormat($settings,$item->discount):'-'); ?></td> <?php $itemtax = 0; ?> <td> <?php if(!empty($item->itemTax)): ?> <?php $__currentLoopData = $item->itemTax; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $taxes): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $itemtax += $taxes['tax_price']; ?> <p><?php echo e($taxes['name']); ?> (<?php echo e($taxes['rate']); ?>) <?php echo e($taxes['price']); ?></p> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <span>-</span> <?php endif; ?> </td> <td><?php echo e(Utility::priceFormat($settings,$item->price * $item->quantity - $item->discount + $itemtax)); ?></td> <?php if(!empty($item->description)): ?> <tr class="border-0 itm-description "> <td colspan="6"><?php echo e($item->description); ?></td> </tr> <?php endif; ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <?php endif; ?> </tbody> <tfoot> <tr> <td><?php echo e(__('Total')); ?></td> <td><?php echo e($purchase->totalQuantity); ?></td> <td><?php echo e(Utility::priceFormat($settings,$purchase->totalRate)); ?></td> <td><?php echo e(Utility::priceFormat($settings,$purchase->totalDiscount)); ?></td> <td><?php echo e(Utility::priceFormat($settings,$purchase->totalTaxPrice)); ?></td> <td><?php echo e(Utility::priceFormat($settings,$purchase->getSubTotal())); ?></td> </tr> <tr> <td colspan="4"></td> <td colspan="2" class="sub-total"> <table class="total-table"> <tr> <td><?php echo e(__('Subtotal')); ?>:</td> <td><?php echo e(Utility::priceFormat($settings,$purchase->getSubTotal())); ?></td> </tr> <?php if($purchase->getTotalDiscount()): ?> <tr> <td><?php echo e(__('Discount')); ?>:</td> <td><?php echo e(Utility::priceFormat($settings,$purchase->getTotalDiscount())); ?></td> </tr> <?php endif; ?> <?php if(!empty($purchase->taxesData)): ?> <?php $__currentLoopData = $purchase->taxesData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $taxName => $taxPrice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($taxName); ?> :</td> <td><?php echo e(Utility::priceFormat($settings,$taxPrice)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <tr> <td><?php echo e(__('Total')); ?>:</td> <td><?php echo e(Utility::priceFormat($settings,$purchase->getSubTotal()-$purchase->getTotalDiscount()+$purchase->getTotalTax())); ?></td> </tr> <tr> <td><?php echo e(__('Paid')); ?>:</td> <td><?php echo e(Utility::priceFormat($settings,($purchase->getTotal()-$purchase->getDue()))); ?></td> </tr> <tr> <td><?php echo e(__('Due Amount')); ?>:</td> <td><?php echo e(Utility::priceFormat($settings,$purchase->getDue())); ?></td> </tr> </table> </td> </tr> </tfoot> </table> <div class="purchase-footer"> <b><?php echo e($settings['footer_title']); ?></b> <br> <?php echo $settings['footer_notes']; ?> </div> </div> </div> <?php if(!isset($preview)): ?> <?php echo $__env->make('purchase.script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>; <?php endif; ?> </body> </html> <?php /**PATH /var/www/crm/resources/views/purchase/templates/template1.blade.php ENDPATH**/ ?>