File manager - Edit - /var/www/payraty/inventory_main/storage/framework/views/9346b28434edd2f3b934cda939fb67b73d4e3fae.php
Back
<?php $__env->startSection('content'); ?> <div class="page-title-box"> <div class="row align-items-center"> <div class="col-sm-6"> <h4 class="page-title"><?php echo e(__('custom.show_invoice')); ?></h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#" class="ic-javascriptVoid"><?php echo e(__('custom.invoice')); ?></a></li> <li class="breadcrumb-item active"><?php echo e(__('custom.show_invoice')); ?></li> </ol> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body" id="print-invoice"> <div class="row"> <div class="col-12"> <table width="100%" cellpadding="0" cellspaceing="0"> <tr> <td> <div class="invoice-title"> <h3 class="mt-0"> <?php if(config('is_logo_show_in_invoice') == 'yes'): ?> <img src="<?php echo e(site_logo()); ?>" class="ic-logo-height" alt="logo"> <?php endif; ?> </h3> </div> </td> <td style="float:right"> <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;"> <?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> <hr> <div> <div class="table-responsive ic-responsive-invoice"> <table width="100%" cellpadding="0" cellspaceing="0"> <tr> <td style="vertical-align: top;"> <address class="ic-invoice-addess"> <strong><?php echo e(__('custom.billed_to')); ?>:</strong><br> <?php if($invoice->billing_info['name']): ?> <p class="mb-0"><?php echo e($invoice->billing_info['name'] ?? ''); ?></p> <p class="mb-0"><?php echo e($invoice->billing_info['email'] ?? ''); ?></p> <p class="mb-0"> <?php echo e($invoice->billing_info['phone_number'] ?? ''); ?></p> <p class="mb-0"> <?php echo e($invoice->billing_info['address_line_1'] ? $invoice->billing_info['address_line_1'] . ', ' : ''); ?> <?php echo e($invoice->billing_info['address_line_2'] ? $invoice->billing_info['address_line_2'] : ''); ?> </p> <p class="mb-0"> <?php echo e($invoice->billing_info['zip'] ? $invoice->billing_info['zip'] . ', ' : ''); ?><?php echo e($invoice->billing_info['city'] ? $invoice->billing_info['city'] . ', ' : ''); ?><?php echo e($invoice->billing_info['state'] ? $invoice->billing_info['state'] . ', ' : ''); ?><?php echo e($invoice->billing_info['country'] ?? ''); ?> </p> <?php else: ?> <?php if($invoice->customer_id != null && $invoice->customer_id != ''): ?> <p class="mb-0"> <?php echo e(@$invoice->customerInfo['full_name'] ?? ''); ?></p> <p class="mb-0"><?php echo e(@$invoice->customerInfo['email'] ?? ''); ?> </p> <p class="mb-0"><?php echo e(@$invoice->customerInfo['phone'] ?? ''); ?> </p> <p class="mb-0"> <?php echo e($invoice->customerInfo['address_line_1'] ? $invoice->customerInfo['address_line_1'] . ', ' : ''); ?> <?php echo e($invoice->customerInfo['address_line_2'] ? $invoice->customerInfo['address_line_2'] : ''); ?> </p> <p class="mb-0"> <?php echo e($invoice->customerInfo['zipcode'] ? $invoice->customerInfo['zipcode'] . ', ' : ''); ?> <?php echo e(optional($invoice->customerInfo->systemCity)->name ? optional($invoice->customerInfo->systemCity)->name . ', ' : ''); ?> <?php echo e(optional($invoice->customerInfo->systemState)->name ? optional($invoice->customerInfo->systemState)->name . ', ' : ''); ?> <?php echo e(optional($invoice->customerInfo->systemCountry)->name ? optional($invoice->customerInfo->systemCountry)->name . ', ' : ''); ?> </p> <?php else: ?> <p class="mb-0"><?php echo e(__('custom.walk_in_customer')); ?></p> <?php endif; ?> <?php endif; ?> </address> </td> <td style="vertical-align: top;"> <address class="ic-invoice-addess"> <strong><?php echo e(__('custom.shipped_to')); ?>:</strong> <?php if($invoice->shipping_info['name']): ?> <p class="mb-0"><?php echo e($invoice->shipping_info['name'] ?? ''); ?></p> <p class="mb-0"><?php echo e($invoice->shipping_info['email'] ?? ''); ?></p> <p class="mb-0"> <?php echo e($invoice->shipping_info['phone_number'] ?? ''); ?></p> <p class="mb-0"> <?php echo e($invoice->shipping_info['address_line_1'] ? $invoice->shipping_info['address_line_1'] . ', ' : ''); ?> <?php echo e($invoice->shipping_info['address_line_2'] ?? ''); ?></p> <p class="mb-0"> <?php echo e($invoice->shipping_info['zip'] ? $invoice->shipping_info['zip'] . ', ' : ''); ?> <?php echo e($invoice->shipping_info['city'] ? $invoice->shipping_info['city'] . ', ' : ''); ?> <?php echo e($invoice->shipping_info['state'] ? $invoice->shipping_info['state'] . ', ' : ''); ?> <?php echo e($invoice->shipping_info['country'] ?? ''); ?></p> <?php else: ?> <?php if($invoice->customer_id != null && $invoice->customer_id != ''): ?> <p class="mb-0"> <?php echo e(@$invoice->customerInfo['full_name'] ?? ''); ?></p> <p class="mb-0"><?php echo e(@$invoice->customerInfo['email'] ?? ''); ?> </p> <p class="mb-0"><?php echo e(@$invoice->customerInfo['phone'] ?? ''); ?> </p> <p class="mb-0"> <?php echo e($invoice->customerInfo['address_line_1'] ? $invoice->customerInfo['address_line_1'] . ', ' : ''); ?> <?php echo e($invoice->customerInfo['address_line_2'] ? $invoice->customerInfo['address_line_2'] : ''); ?> </p> <p class="mb-0"> <?php echo e($invoice->customerInfo['zipcode'] ? $invoice->customerInfo['zipcode'] . ', ' : ''); ?> <?php echo e(optional($invoice->customerInfo->systemCity)->name ? optional($invoice->customerInfo->systemCity)->name . ', ' : ''); ?> <?php echo e(optional($invoice->customerInfo->systemState)->name ? optional($invoice->customerInfo->systemState)->name . ', ' : ''); ?> <?php echo e(optional($invoice->customerInfo->systemCountry)->name ? optional($invoice->customerInfo->systemCountry)->name . ', ' : ''); ?> </p> <?php else: ?> <p class="mb-0"><?php echo e(__('custom.walk_in_customer')); ?></p> <?php endif; ?> <?php endif; ?> </address> </td> <td style="vertical-align: top;"> <address class="ic-invoice-addess ic-right-content"> <strong><?php echo e(__('custom.invoice')); ?>:</strong> <p class="mb-0"><?php echo e(__('custom.invoice_id')); ?> # <span id="invoice_number"><?php echo e(make8digits($invoice->id)); ?></span></p> <p class="mb-0"><?php echo e(__('custom.date')); ?>: <?php echo e(custom_date($invoice->date)); ?> </p> <p class="mb-0"><?php echo e(__('custom.total')); ?>: <?php echo e(currencySymbol() . makeCurrencyFormat($invoice->total)); ?></p> <p class="mb-0"><?php echo e(__('custom.status')); ?>: <?php echo e(\App\Models\Invoice::INVOICE_ALL_STATUS[$invoice->status]); ?></p> <p class="mb-0"><?php echo e(__('custom.delivery_status')); ?>: <?php echo e(ucfirst($invoice->delivery_status)); ?></p> </address> </td> </tr> </table> </div> </div> </div> </div> <div class="row"> <div class="col-12"> <div> <div class="p-2"> <h3 class="font-16"><strong><?php echo e(__('custom.summary')); ?></strong></h3> </div> <div class=""> <div class="table-responsive"> <table width="100%" class="table table-sm table-bordered"> <thead> <tr> <td><strong><?php echo e(__('custom.sku')); ?></strong></td> <td><strong><?php echo e(__('custom.name')); ?></strong></td> <td><strong><?php echo e(__('custom.quantity')); ?></strong></td> <td><strong><?php echo e(__('custom.return_quantity')); ?></strong></td> <td><strong><?php echo e(__('custom.price')); ?></strong></td> <td><strong><?php echo e(__('custom.discount')); ?></strong> <td><strong><?php echo e(__('custom.sub_total')); ?></strong></td> </tr> </thead> <tbody> <?php if($invoice->items): ?> <?php $__currentLoopData = $invoice->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($item->sku ?? ''); ?></td> <td width="40%"> <?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><?php echo e($item->quantity ?? ''); ?></td> <td><?php echo e($item->returnQuantity()); ?></td> <td><?php echo e(currencySymbol() . makeCurrencyFormat($item->price) ?? ''); ?> </td> <td><?php echo e($item->discount ?? 0); ?> <?php if($item->discount_type == \App\Models\Invoice::DISCOUNT_PERCENT): ?> % <?php endif; ?> </td> <td><?php echo e(currencySymbol() . makeCurrencyFormat($item->sub_total) ?? ''); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <tr> <td class="thick-line text-right" colspan="6"> <strong><?php echo e(__('custom.discount')); ?></strong> </td> <td class="thick-line"> <?php echo e(currencySymbol() . makeCurrencyFormat($invoice->discount_amount)); ?> </td> </tr> <tr> <td class="no-line text-right" colspan="6"> <strong><?php echo e(__('custom.tax')); ?></strong> </td> <td class="no-line"> <?php echo e(currencySymbol() . makeCurrencyFormat($invoice->tax_amount)); ?> </td> </tr> <tr> <td class="no-line text-right" colspan="6"> <strong><?php echo e(__('custom.total')); ?></strong> </td> <td class="no-line"> <p class="mb-0"> <b><?php echo e(currencySymbol() . makeCurrencyFormat($invoice->total)); ?></b> </p> </td> </tr> <tr> <td class="no-line text-right" colspan="6"> <strong><?php echo e(__('custom.total_paid')); ?></strong> </td> <td class="no-line"> <p class="mb-0"> <b><?php echo e(currencySymbol() . makeCurrencyFormat($invoice->total_paid)); ?></b> </p> </td> </tr> <tr> <td class="no-line text-right" colspan="6"> <strong><?php echo e(__('custom.sale_return_amount')); ?></strong> </td> <td class="no-line"> <p class="mb-0"> <b><?php echo e(currencySymbol() . makeCurrencyFormat($invoice->saleReturns()->sum('return_total_amount'))); ?></b> </p> </td> </tr> <tr> <td class="no-line text-right" colspan="6"> <strong><?php echo e(__('custom.total_due')); ?></strong> </td> <td class="no-line"> <p class="mb-0"> <b><?php echo e(currencySymbol() . makeCurrencyFormat(calculateDue($invoice->total, $invoice->total_paid))); ?></b> </p> </td> </tr> </tbody> </table> </div> <br> <h4><?php echo e(__('custom.payments')); ?> <!-- Button to trigger modal --> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addPaymentModal"> Add Payment </button> </h4> <div class="table-responsive"> <table class="table table-bordered table-sm"> <thead> <th><?php echo e(__('custom.date')); ?></th> <th><?php echo e(__('custom.payment_type')); ?></th> <th><?php echo e(__('custom.amount')); ?></th> </thead> <tbody> <?php if($invoice->payments): ?> <?php $__currentLoopData = $invoice->payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($item->amount == 0): ?> <?php continue; ?> <?php endif; ?> <tr> <td><?php echo e($item->date); ?></td> <td><?php echo e($item->payment_type); ?></td> <td><?php echo e(currencySymbol() . makeCurrencyFormat($item->amount)); ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> <br> <br> <p> <?php echo e(__('custom.note')); ?>: <?php echo $invoice->notes ? $invoice->notes : (config('terms_and_conditions') != null ? config('terms_and_conditions') : ''); ?> </p> </div> </div> </div> </div> <!-- end row --> </div> <div class="card-body"> <div class="d-print-none row"> <div class="col-lg-6 col-sm-6"> <div class="d-flex d-sm-block justify-content-between justify-content-sm-start"> <a href="<?php echo e(route('admin.invoices.index')); ?>" class="btn btn-dark waves-effect waves-light"><i class="fa fa-arrow-left"></i> <span><?php echo e(__('custom.back')); ?></span></a> </div> </div> <div class="col-lg-6 col-sm-6"> <div class="btn-group float-right" role="group" aria-label="Button group with nested dropdown"> <div class="btn-group" role="group"> <button id="btnGroupDrop1" type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-print"></i> <?php echo e(__('custom.print')); ?> </button> <div class="dropdown-menu dropdown-width" aria-labelledby="btnGroupDrop1"> <a class="dropdown-item" href="#" onclick="window.print()">A4 Print</a> <a class="dropdown-item" href="<?php echo e(route('admin.invoice.print', $invoice->id)); ?>">POS Print</a> </div> </div> <a href="<?php echo e(route('admin.invoices.download', $invoice->id)); ?>" class="btn btn-primary btn-margin-left"> <i class="fa fa-download"></i> <span><?php echo e(__('custom.download')); ?></span> </a> </div> </div> </div> </div> </div> </div> </div> <!-- Modal --> <div class="modal fade" id="addPaymentModal" tabindex="-1" aria-labelledby="addPaymentModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <form action="<?php echo e(route('admin.invoices.add_payment')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="modal-header"> <h5 class="modal-title" id="addPaymentModalLabel">Add Payment</h5> <button type="button" class="btn-close btn" data-dismiss="modal" aria-label="Close">x</button> </div> <div class="modal-body"> <input type="hidden" name="invoice_id" value="<?php echo e($invoice->id); ?>"> <div class="mb-3"> <label for="payment-date" class="form-label">Payment Date</label> <input type="date" class="form-control" id="payment-date" name="date" required> </div> <div class="mb-3"> <label for="payment-type" class="form-label">Payment Type</label> <select class="form-control" name="payment_type" required> <option value="cash">Cash</option> <option value="card">Card</option> <option value="transfer">Transfer</option> <option value="cheque">Cheque</option> <option value="wallet">Wallet</option> </select> </div> <div class="mb-3"> <label for="payment-amount" class="form-label">Amount</label> <input type="number" step="0.01" class="form-control" id="payment-amount" name="amount" required> </div> <div class="mb-3"> <label for="payment-notes" class="form-label">Notes</label> <textarea class="form-control" id="payment-notes" name="notes" maxlength="200"></textarea> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button> <button type="submit" class="btn btn-success">Add Payment</button> </div> </form> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('style'); ?> <style> .show-on-print { display: none; } .print-class .show-on-print { display: block !important; position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); } @media print { .show-on-print { display: block !important; position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); } } </style> <?php $__env->stopPush(); ?> <?php $__env->startPush('script'); ?> <script src="https://cdn.apidelv.com/libs/awesome-functions/awesome-functions.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.min.js"></script> <?php $__env->stopPush(); ?> <?php echo $__env->make('admin.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/payraty/inventory_main/resources/views/admin/invoices/show.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings