File manager - Edit - /var/www/payraty/inventory_main/storage/framework/views/cad2c79f41906c57a3ca6d645defcf9b64787998.php
Back
<!DOCTYPE html> <html lang="en"> <head> <title><?php echo e(__('custom.pdf')); ?></title> <style> .ic-table-money-relatad { padding: 8px 8px; color: #000; border-bottom: 1px solid #EBEBEB; text-align: right; white-space: nowrap; } .ic-table-money-relatad.text-right { text-align: right; } .ic-table-money-relatad.text-right.ic-table-font-big { font-size: 25px; } .ic-table-td-style { padding: 8px 8px; border-bottom: 1px solid #EBEBEB; } .ic-table-th { text-align: left; padding: 8px 8px; border-bottom: 1px solid #EBEBEB; font-size: 13px; } .ic-table-th.ic-table-th-text-right { text-align: right; } .ic-table-th.ic-table-th-text-center { text-align: center; } .ic-table-fixed-layout { table-layout: fixed; } .ic-table-tr-td-text { color: #8C8D8E; margin: 0 } .ic-invoice-table-heads { padding-bottom: 10px; padding-top: 10px; } .ic-table-td { text-align: left; } .ic-table-td-right { text-align: right; } .ic-table-text-right { padding: 2px; color: #000; text-align: right; } .ic-table-inner-td { padding: 2px; color: #000; margin-bottom: 0; } .ic-top-table-heads { border-bottom: 1px solid #EBEBEB; padding-bottom: 10px; } .ic-table-app-name { text-align: left; font-size: 25px; color: #606770; } .text-right { text-align: right } /* report pdf */ .ic-main-table { width: 100%; } .ic-table-td { padding: 5px; font-size: 14px; } .ic-custom-date { width: 15%; } .ic-custom-title { width: 25%; } .show-on-print { display: block !important; position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); } </style> </head> <body> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-top-table-heads"> <tr> <td style="padding-bottom: 10px;"> <?php if(config('is_logo_show_in_invoice') == 'yes'): ?> <img src="<?php echo e(site_logo()); ?>" class="ic-logo-height" width="100" alt="logo"> <?php endif; ?> </td> <td style="text-align:right;padding-bottom: 10px;"> <h5 style="margin:0;text-transform: uppercase;letter-spacing: 3px;"><?php echo e(config('store_name')); ?></h5> <p style="margin:0;max-width: 175px;white-space: break-spaces;font-size: 14px;letter-spacing: 2px;text-transform: uppercase;margin-left: auto"><?php echo e(config('store_address')); ?></p> <p style="margin:0;text-transform: uppercase;font-size: 14px;letter-spacing: 2px">VAT:<?php echo e(config('tin')); ?></p> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-invoice-table-heads"> <tr> <td class="ic-table-td" style="vertical-align: top;"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="ic-table-inner-td"> <P class="ic-table-inner-td"><b><?php echo e(__('custom.billed_to')); ?>:</b></P> <?php if($data->billing_info['name']): ?> <p class="ic-table-tr-td-text"> <?php echo e($data->billing_info['name'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e($data->billing_info['email'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e($data->billing_info['phone_number'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e($data->billing_info['address_line_1'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e($data->billing_info['address_line_2'] ?? ''); ?></p> <p class="ic-table-tr-td-text"> <?php echo e($data->billing_info['zip'] ? $data->billing_info['zip'].',1 ' : ''); ?> <?php echo e($data->billing_info['city'] ? $data->billing_info['city'].',2 ' : ''); ?> <?php echo e($data->billing_info['state'] ? $data->billing_info['state'].',3 ' : ''); ?> <?php echo e($data->billing_info['country'] ?? ''); ?> </p> <?php else: ?> <?php if($data->customer_id != null && $data->customer_id != ""): ?> <p class="ic-table-tr-td-text"><?php echo e(@$data->customerInfo['full_name'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e(@$data->customerInfo['email'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e(@$data->customerInfo['phone'] ?? ''); ?></p> <p class="ic-table-tr-td-text"> <?php echo e($data->customerInfo['address_line_1'] ? $data->customerInfo['address_line_1'].',4 ' : ''); ?> <?php echo e($data->customerInfo['address_line_2'] ? $data->customerInfo['address_line_2'].'5' : ''); ?> </p> <p class="ic-table-tr-td-text"> <?php echo e($data->customerInfo['zipcode'] ? $data->customerInfo['zipcode'].', ' : ''); ?> <?php echo e(optional($data->customerInfo->systemCity)->name ? optional($data->customerInfo->systemCity)->name .',6 ' : ''); ?> <?php echo e(optional($data->customerInfo->systemState)->name ? optional($data->customerInfo->systemState)->name .',7 ' : ''); ?> <?php echo e(optional($data->customerInfo->systemCountry)->name ?optional($data->customerInfo->systemCountry)->name .',8 ' : ''); ?> </p> <?php else: ?> <p class="ic-table-tr-td-text"><?php echo e(__('custom.walk_in_customer')); ?></p> <?php endif; ?> <?php endif; ?> </td> </tr> </table> </td> <td class="ic-table-td" style="vertical-align: top;"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="ic-table-inner-td"> <P class="ic-table-inner-td"><b><?php echo e(__('custom.shipped_to')); ?>:</b></P> <?php if($data->shipping_info['name']): ?> <p class="ic-table-tr-td-text"><?php echo e($data->shipping_info['name'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e($data->shipping_info['email'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e($data->shipping_info['phone_number'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e($data->shipping_info['address_line_1'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e($data->shipping_info['address_line_2'] ?? ''); ?></p> <p class="ic-table-tr-td-text"> <?php echo e($data->shipping_info['zip'] ? $data->shipping_info['zip'].', ' : ''); ?> <?php echo e($data->shipping_info['city'] ? $data->shipping_info['city'].', ' : ''); ?> <?php echo e($data->shipping_info['state'] ? $data->shipping_info['state'].', ' : ''); ?> <?php echo e($data->shipping_info['country'] ?? ''); ?> </p> <?php else: ?> <?php if($data->customer_id != null && $data->customer_id != ""): ?> <p class="ic-table-tr-td-text"><?php echo e(@$data->customerInfo['full_name'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e(@$data->customerInfo['email'] ?? ''); ?></p> <p class="ic-table-tr-td-text"><?php echo e(@$data->customerInfo['phone'] ?? ''); ?></p> <p class="ic-table-tr-td-text"> <?php echo e($data->customerInfo['address_line_1'] ? $data->customerInfo['address_line_1'].', ' : ''); ?> <?php echo e($data->customerInfo['address_line_2'] ? $data->customerInfo['address_line_2'] : ''); ?> </p> <p class="ic-table-tr-td-text"> <?php echo e($data->customerInfo['zipcode'] ? $data->customerInfo['zipcode'].', ' : ''); ?> <?php echo e(optional($data->customerInfo->systemCity)->name ? optional($data->customerInfo->systemCity)->name .', ' : ''); ?> <?php echo e(optional($data->customerInfo->systemState)->name ? optional($data->customerInfo->systemState)->name .', ' : ''); ?> <?php echo e(optional($data->customerInfo->systemCountry)->name ?optional($data->customerInfo->systemCountry)->name .', ' : ''); ?> </p> <?php else: ?> <p class="ic-table-tr-td-text"><?php echo e(__('custom.walk_in_customer')); ?></p> <?php endif; ?> <?php endif; ?> </td> </tr> </table> </td> <td class="ic-table-td-right" valign="top" style="vertical-align: top;"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="ic-table-text-right"> <P class="ic-table-inner-td"><b><?php echo e(__('custom.invoice')); ?>:</b></P> <p class="ic-table-tr-td-text"><?php echo e(__('custom.invoice_id')); ?> : <?php echo e(make8digits($data->id)); ?></p> <p class="ic-table-tr-td-text"><?php echo e(__('custom.status')); ?>: <?php echo e(\App\Models\Invoice::INVOICE_ALL_STATUS[$data->status]); ?></p> <p class="ic-table-tr-td-text"><?php echo e(__('custom.delivery_status')); ?> : <?php echo e(ucfirst($data->delivery_status)); ?></p> <p class="ic-table-tr-td-text"><?php echo e(__('custom.date')); ?>: <?php echo e(custom_date($data->date)); ?></p> </td> </tr> </table> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-invoice-table-heads"> <tr> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-invoice-table-heads"> <tr> <td class="ic-table-td"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="ic-table-inner-td"><b><?php echo e(__('custom.summary')); ?></b></td> </tr> </table> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-invoice-table-heads"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-table-fixed-layout" style="border:1px solid #EBEBEB;"> <thead> <tr> <th class="ic-table-th"> <?php echo e(__('custom.sku')); ?></th> <th class="ic-table-th" width="40%"> <?php echo e(__('custom.name')); ?></th> <th class="ic-table-th"> <?php echo e(__('custom.quantity')); ?></th> <th class="ic-table-th"> <?php echo e(__('custom.price')); ?></th> <th class="ic-table-th"> <?php echo e(__('custom.discount')); ?></th> <th class="ic-table-th ic-table-th-text-right"> <?php echo e(__('custom.sub_total')); ?></th> </tr> </thead> <tbody> <?php if(isset($data->items)): ?> <?php $__currentLoopData = $data->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="ic-table-td-style"><?php echo e($item->sku ?? ''); ?> </td> <td width="40%" class="ic-table-td-style"> <?php echo e($item->product_name ?? ''); ?> <?php if($item->product->is_variant != null && $item->product->is_variant == 1 && isset($item->productStock)): ?> (<?php echo e(optional(optional($item->productStock)->attribute)->name ?? ''); ?> : <?php echo e(optional(optional($item->productStock)->attributeItem)->name ?? ''); ?>) <?php endif; ?> </td> <td class="ic-table-td-style"> <?php echo e($item->quantity ?? ''); ?> </td> <td class="ic-table-td-style"> <?php echo e(currencySymbol().makeCurrencyFormat($item->price) ?? ''); ?> </td> <td class="ic-table-td-style"> <?php echo e($data->discount); ?> <?php if($data->discount_type == \App\Models\Invoice::DISCOUNT_PERCENT): ?> % <?php endif; ?> </td> <td class="ic-table-td-style" style="text-align:right"> <?php echo e(currencySymbol().makeCurrencyFormat($item->sub_total) ?? ''); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <tr> <td colspan="4" class="ic-table-money-relatad"></td> <td class="ic-table-money-relatad"><?php echo e(__('custom.discount')); ?></td> <td class="ic-table-money-relatad text-right"> <?php echo e(currencySymbol().makeCurrencyFormat($data->discount_amount)); ?> </td> </tr> <tr> <td colspan="4" class="ic-table-money-relatad"></td> <td class="ic-table-money-relatad"><?php echo e(__('custom.tax')); ?></td> <td class="ic-table-money-relatad text-right"> <?php echo e(currencySymbol().makeCurrencyFormat($data->tax_amount)); ?> </td> </tr> <tr> <td colspan="4" class="ic-table-money-relatad"></td> <td class="ic-table-money-relatad"><?php echo e(__('custom.total')); ?></td> <td class="ic-table-money-relatad text-right"> <?php echo e(currencySymbol().makeCurrencyFormat($data->total)); ?> </td> </tr> <tr> <td colspan="4" class="ic-table-money-relatad"></td> <td class="ic-table-money-relatad"><?php echo e(__('custom.total_paid')); ?></td> <td class="ic-table-money-relatad text-right"> <?php echo e(currencySymbol().makeCurrencyFormat($data->total_paid)); ?> </td> </tr> <tr> <td colspan="4" class="ic-table-money-relatad"></td> <td class="ic-table-money-relatad"><?php echo e(__('custom.sale_return_amount')); ?></td> <td class="ic-table-money-relatad text-right"> <?php echo e(currencySymbol().makeCurrencyFormat($data->saleReturns()->sum('return_total_amount'))); ?> </td> </tr> <tr> <td colspan="4" class="ic-table-money-relatad"></td> <td class="ic-table-money-relatad"><?php echo e(__('custom.total_due')); ?></td> <td class="ic-table-money-relatad text-right"> <?php echo e(currencySymbol().makeCurrencyFormat(calculateDue($data->total, $data->total_paid))); ?> </td> </tr> </tbody> </table> </td> </tr> </table> <br> <?php if($data->payments && count($data->payments) > 0): ?> <label for=""><?php echo e(__('custom.payments')); ?></label> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-table-fixed-layout" style="border:1px solid #EBEBEB;"> <thead> <th class="ic-table-th"><?php echo e(__('custom.date')); ?></th> <th class="ic-table-th"><?php echo e(__('custom.payment_type')); ?></th> <th class="ic-table-th"><?php echo e(__('custom.amount')); ?></th> </thead> <tbody> <?php if($data->payments): ?> <?php $__currentLoopData = $data->payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($item->amount == 0): ?> <?php continue; ?> <?php endif; ?> <tr> <td class="ic-table-td-style"><?php echo e($item->date); ?></td> <td class="ic-table-td-style"><?php echo e($item->payment_type); ?></td> <td class="ic-table-td-style"><?php echo e(currencySymbol().makeCurrencyFormat($item->amount)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> <br> <?php endif; ?> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td colspan="6">Note: <?php echo $data->notes ? $data->notes : (config('terms_and_conditions') != null ? config('terms_and_conditions') : ''); ?></td> </tr> </table> <div class="show-on-print"> <p><?php echo e(config('invoice_footer')); ?></p> </div> </body> </html> <?php /**PATH /var/www/payraty/inventory_main/resources/views/admin/invoices/pdf/invoice.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings