[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 933619b5ca82ad8576a9fead04e7b94d.php
<?php $type = isset($type) ? $type : 'preview'; ?> <!-- Default Invoice template --> <div id="invoice" class="<?php echo e($type); ?>"> <div class="default-invoice"> <div class="invoice-header"> <div class="row"> <div class="col-6 float-left left-header"> <?php if($type == 'pdf'): ?> <img class="logo" src="<?php echo e(public_path('uploads/media/' . $purchase->business->logo)); ?>"> <?php else: ?> <img class="logo" src="<?php echo e(asset('public/uploads/media/' . $purchase->business->logo)); ?>"> <?php endif; ?> <h2 class="title"><?php echo e($purchase->title); ?></h2> </div> <div class="col-6 float-right right-header"> <h4 class="company-name"><?php echo e($purchase->business->name); ?></h4> <p><?php echo e($purchase->business->address); ?></p> <p><?php echo e($purchase->business->phone); ?></p> <p><?php echo e($purchase->business->email); ?></p> <p><?php echo e($purchase->business->country); ?></p> </div> <div class="clear"></div> </div> </div> <div class="invoice-details"> <div class="row align-items-bottom"> <div class="col-6 float-left"> <h5 class="bill-to-heading"><?php echo e(_lang('BILLING DETAILS')); ?></h5> <h4 class="bill-to"><?php echo e($purchase->vendor->name); ?></h4> <p><?php echo e($purchase->vendor->address); ?></<p> <p><?php echo e($purchase->vendor->city); ?></<p> <p><?php echo e($purchase->vendor->zip); ?></<p> <p><?php echo e($purchase->vendor->country); ?></p> </div> <div class="col-6 text-right float-right"> <h5 class="mb-2"><?php echo e(_lang('Bill No')); ?>#: <?php echo e($purchase->bill_no); ?></h4> <p><?php echo e(_lang('Purchase Date')); ?>: <?php echo e($purchase->purchase_date); ?></p> <p class="mb-2"><?php echo e(_lang('Due Date')); ?>: <?php echo e($purchase->due_date); ?></p> <p><strong><?php echo e(_lang('Grand Total')); ?>: <?php echo e(formatAmount($purchase->grand_total, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></strong></p> <p><strong><?php echo e(_lang('Due Amount')); ?>: <?php echo e(formatAmount($purchase->grand_total - $purchase->paid, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></strong></p> </div> <div class="clear"></div> </div> </div> <?php $invoiceColumns = json_decode(get_business_option('purchase_column', null, $purchase->business_id)); ?> <div class="invoice-body"> <div class="table-responsive-sm"> <table class="table"> <thead> <tr> <?php if(isset($invoiceColumns->name->status)): ?> <?php if($invoiceColumns->name->status != '0'): ?> <th><?php echo e(isset($invoiceColumns->name->label) ? $invoiceColumns->name->label : _lang('Name')); ?></th> <?php endif; ?> <?php else: ?> <th><?php echo e(_lang('Name')); ?></th> <?php endif; ?> <?php if(isset($invoiceColumns->quantity->status)): ?> <?php if($invoiceColumns->quantity->status != '0'): ?> <th class="text-center"><?php echo e(isset($invoiceColumns->quantity->label) ? $invoiceColumns->quantity->label : _lang('Quantity')); ?></th> <?php endif; ?> <?php else: ?> <th class="text-center"><?php echo e(_lang('Quantity')); ?></th> <?php endif; ?> <?php if(isset($invoiceColumns->price->status)): ?> <?php if($invoiceColumns->price->status != '0'): ?> <th class="text-right"><?php echo e(isset($invoiceColumns->price->label) ? $invoiceColumns->price->label : _lang('Price')); ?></th> <?php endif; ?> <?php else: ?> <th class="text-right"><?php echo e(_lang('Price')); ?></th> <?php endif; ?> <?php if(isset($invoiceColumns->amount->status)): ?> <?php if($invoiceColumns->amount->status != '0'): ?> <th class="text-right"><?php echo e(isset($invoiceColumns->amount->label) ? $invoiceColumns->amount->label : _lang('Amount')); ?></th> <?php endif; ?> <?php else: ?> <th class="text-right"><?php echo e(_lang('Amount')); ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php $__currentLoopData = $purchase->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="product-name"> <?php if(isset($invoiceColumns->name->status)): ?> <?php if($invoiceColumns->name->status != '0'): ?> <p><?php echo e($item->product_name); ?></p> <?php endif; ?> <?php else: ?> <p><?php echo e($item->product_name); ?></p> <?php endif; ?> <?php if(isset($invoiceColumns->description->status)): ?> <?php if($invoiceColumns->description->status != '0'): ?> <p><?php echo e($item->description); ?></p> <?php endif; ?> <?php else: ?> <p><?php echo e($item->description); ?></p> <?php endif; ?> </td> <?php if(isset($invoiceColumns->quantity->status)): ?> <?php if($invoiceColumns->quantity->status != '0'): ?> <td class="text-center"><?php echo e($item->quantity.' '.$item->product->product_unit->unit); ?></td> <?php endif; ?> <?php else: ?> <td class="text-center"><?php echo e($item->quantity.' '.$item->product->product_unit->unit); ?></td> <?php endif; ?> <?php if(isset($invoiceColumns->price->status)): ?> <?php if($invoiceColumns->price->status != '0'): ?> <td class="text-right text-nowrap"><?php echo e(formatAmount($item->unit_cost, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></td> <?php endif; ?> <?php else: ?> <td class="text-right text-nowrap"><?php echo e(formatAmount($item->unit_cost, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></td> <?php endif; ?> <?php if(isset($invoiceColumns->amount->status)): ?> <?php if($invoiceColumns->amount->status != '0'): ?> <td class="text-right text-nowrap"><?php echo e(formatAmount($item->sub_total, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></td> <?php endif; ?> <?php else: ?> <td class="text-right text-nowrap"><?php echo e(formatAmount($item->sub_total, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></td> <?php endif; ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> <div class="invoice-summary"> <div class="row"> <div class="col-xl-7 col-lg-6 float-left"> <div class="invoice-note"> <p><b><?php echo e(_lang('Notes / Terms')); ?>:</b> <?php echo xss_clean($purchase->note); ?></p> </div> </div> <div class="col-xl-5 col-lg-6 float-right"> <table class="table text-right m-0"> <tr> <td><?php echo e(_lang('Sub Total')); ?></td> <td class="text-nowrap"><?php echo e(formatAmount($purchase->sub_total, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></td> </tr> <?php $__currentLoopData = $purchase->taxes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($tax->name); ?></td> <td class="text-nowrap">+ <?php echo e(formatAmount($tax->amount, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if($purchase->discount > 0): ?> <tr> <td><?php echo e(_lang('Discount')); ?></td> <td class="text-nowrap">- <?php echo e(formatAmount($purchase->discount, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></td> </tr> <?php endif; ?> <tr> <td><b><?php echo e(_lang('Grand Total')); ?></b></td> <td class="text-nowrap"><b><?php echo e(formatAmount($purchase->grand_total, currency_symbol($purchase->business->currency), $purchase->business_id)); ?></b></td> </tr> <?php if($purchase->grand_total != $purchase->converted_total): ?> <tr> <td><b><?php echo e(_lang('Converted Total')); ?></b></td> <td class="text-nowrap"><b><?php echo e(formatAmount($purchase->converted_total, currency_symbol($purchase->vendor->currency), $purchase->business_id)); ?></b></td> </tr> <?php endif; ?> </table> </div> <div class="clear"></div> </div> </div> </div> <div class="invoice-footer"> <p><?php echo xss_clean($purchase->footer); ?></p> </div> </div> <?php /**PATH /home/eliosofonline/acc.eliosof.com/resources/views/backend/user/purchase/template/default.blade.php ENDPATH**/ ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002