File manager - Edit - /var/www/payraty/inventory_main/storage/framework/views/2ab992eb1f0e33124551862342767e917919c91f.php
Back
<?php $authUser = auth()->guard('customer')->check(); ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title><?php echo e(__('custom.invoice')); ?>: <?php echo e(make8digits($invoice->id)); ?></title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap" rel="stylesheet"> </head> <body style="align-items: center"> <div class="no_print" style="overflow: hidden;"> <a class="no_print btn backBtn" href="<?php echo e($authUser ? route('customer.invoices.index') : route('admin.invoices.index')); ?>">Back to Invoice</a> <a onclick="location.reload();" class="no_print btn reprintBtn" href="javascript:">Print Again</a> </div> <table width="" cellspacing="0" cellpadding="2" border="0"> <tbody> <tr> <td colspan="4" style="text-align: center"> <h1><?php echo e(config('site_title') ?? config('app.name')); ?></h1> </td> </tr> <tr> <td colspan="4" style="text-align: center"> <span style="font-size: 12px; display: flex; justify-content: space-between;"> <strong>Customer# <?php if($invoice->billing_info['name']): ?> <?php echo e($invoice->billing_info['name'] ?? ''); ?> <?php else: ?> <?php echo e(__('custom.walk_in_customer')); ?> <?php endif; ?> </strong> <strong>Invoice # <?php echo e(make8digits($invoice->id)); ?></strong> </span> </td> </tr> <tr> <td colspan="4"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tbody> <tr> <td colspan="4">Invoice Date: <?php echo e(custom_date($invoice->date)); ?></td> </tr> </tbody> </table> </td> </tr> <tr style=""> <td width="40%" style="border: 1px solid #333; text-align: left"><strong><?php echo e(__('custom.product')); ?></strong></td> <td width="20%" style="border: 1px solid #333; border-left: 0 none;text-align: center"><strong><?php echo e(__('custom.price')); ?></strong></td> <td width="15%" style="border: 1px solid #333; border-left: 0 none;text-align: center"><strong><?php echo e(__('custom.qty')); ?></strong></td> <td width="20%" style="border: 1px solid #333; border-left: 0 none;text-align: right"><strong><?php echo e(__('custom.total')); ?></strong> </td> </tr> <?php if($invoice->items): ?> <?php $__currentLoopData = $invoice->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="" style="border-left: 1px solid #333; border-right: 1px solid #333; text-align: left"> <?php echo e($item->product_name ?? ''); ?> <?php if($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="" style="border-right: 1px solid #333; text-align: center"> <?php echo e(currencySymbol().makeCurrencyFormat($item->price) ?? ''); ?> </td> <td class="" style="border-right: 1px solid #333; text-align: center"> <?php echo e($item->quantity); ?> </td> <td class=" " style="border-right: 1px solid #333; 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="2" style="border-top: 1px solid #333;text-align: right; font-weight: bold"><?php echo e(__('custom.discount')); ?></td> <td colspan="2" style="border-top: 1px solid #333;text-align: right; font-weight: bold"><?php echo e(currencySymbol().makeCurrencyFormat($invoice->discount_amount)); ?></td> </tr> <tr> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(__('custom.tax')); ?></td> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(currencySymbol().makeCurrencyFormat($invoice->tax_amount)); ?></td> </tr> <tr> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(__('custom.total')); ?></td> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(currencySymbol().makeCurrencyFormat($invoice->total)); ?></td> </tr> <tr> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(__('custom.total_paid')); ?></td> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(currencySymbol().makeCurrencyFormat($invoice->total_paid)); ?></td> </tr> <tr> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(__('custom.sale_return_amount')); ?></td> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(currencySymbol().makeCurrencyFormat($invoice->saleReturns()->sum('return_total_amount'))); ?></td> </tr> <tr> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(__('custom.total_due')); ?></td> <td colspan="2" style="text-align: right; font-weight: bold"><?php echo e(currencySymbol().makeCurrencyFormat(calculateDue($invoice->total, $invoice->total_paid))); ?></td> </tr> </tbody> </table> <span style="text-align: left; font-weight: bold"><?php echo e(__('custom.note')); ?> : <?php echo e($invoice->notes); ?></span> <div class="no_print" style="overflow: hidden;"> <br/> <a class="no_print btn backBtn" href="<?php echo e($authUser ? route('customer.invoices.index') : route('admin.invoices.index')); ?>">Back to Invoice</a> <a onclick="location.reload();" class="no_print btn reprintBtn" href="javascript:">Print Again</a> </div> <style type="text/css"> .btn { padding: 10px; text-decoration: none; color: #fff; display: inline-block; } .backBtn { background-color: #1221ff; } .ic-border-bottom { border-bottom: 1px solid #dedede; } .reprintBtn { background-color: #09ff88; } @media print { @page { margin: 0; } table { width: 2.3in; margin-bottom: 20px; } table td { border-collapse: collapse; } .no_print { display: none } * { font-size: 13px !important; word-wrap: break-word; font-family: 'Roboto', sans-serif; } h1{ font-size: 20px !important; } } </style> <script type="text/javascript"> window.print(); </script> </body> </html> <?php /**PATH /var/www/payraty/inventory_main/resources/views/admin/invoices/thermal-print.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings