⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.81
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
b08621c2a4dfbc5801f9742e814b9854.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('POS Detail')); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> $(document).on('click', '#shipping', function () { var url = $(this).data('url'); var is_display = $("#shipping").is(":checked"); $.ajax({ url: url, type: 'get', data: { 'is_display': is_display, }, success: function (data) { } }); }) </script> <?php $__env->stopPush(); ?> <?php $__env->startPush('css'); ?> <link rel="stylesheet" href="<?php echo e(asset('packages/workdo/Pos/src/Resources/assets/css/custom.css')); ?>" id="main-style-link"> <?php $__env->stopPush(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('POS Order')); ?>, <?php echo e(\workdo\Pos\Entities\Pos::posNumberFormat($pos->pos_id)); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-action'); ?> <div class="float-end"> <a href="<?php echo e(route('pos.pdf', Crypt::encrypt($pos->id))); ?>" class="btn btn-sm btn-primary" target="_blank" data-bs-toggle="tooltip" data-title="<?php echo e(__('Download')); ?>" title="<?php echo e(__('Download')); ?>"><i class="ti ti-file-export"></i></a> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="card mt-3"> <div class="card-body"> <div class="invoice"> <div class="invoice-print"> <div class="d-flex flex-wrap align-items-center justify-content-between row-gap invoice-title border-1 border-bottom pb-3 mb-3"> <div> <h2 class="h3 mb-0"><?php echo e(__('POS')); ?></h2> </div> <div class="col-sm-8 col-12"> <div class="d-flex invoice-wrp flex-wrap align-items-center gap-md-2 gap-1"> <div class="d-flex invoice-date flex-wrap align-items-center gap-md-3 gap-1"> <p class="mb-0"> <strong><?php echo e(__('Issue Date')); ?> :</strong> <?php echo e(company_date_formate($pos->pos_date)); ?></p> </div> <h3 class="invoice-number mb-0"> <?php echo e(\workdo\Pos\Entities\Pos::posNumberFormat($pos->pos_id)); ?> </h3> </div> </div> </div> <?php if(!empty($customer->billing_name) && !empty($customer->shipping_name)): ?> <div class="p-sm-4 p-3 invoice-billed"> <div class="row row-gap"> <div class="col-lg-4 col-sm-6"> <?php if(!empty($customer->billing_name)): ?> <p class="mb-2"> <strong class="h5 mb-1 d-block"><?php echo e(__('Billed To')); ?> :</strong> <span class="text-muted d-block" style="max-width:80%"> <?php echo e(!empty($customer->billing_name) ? $customer->billing_name : ''); ?> <?php echo e(!empty($customer->billing_address) ? $customer->billing_address : ''); ?> <?php echo e(!empty($customer->billing_city) ? $customer->billing_city . ' ,' : ''); ?> <?php echo e(!empty($customer->billing_state) ? $customer->billing_state . ' ,' : ''); ?> <?php echo e(!empty($customer->billing_zip) ? $customer->billing_zip : ''); ?> <?php echo e(!empty($customer->billing_country) ? $customer->billing_country : ''); ?> </span> </p> <p class="mb-1 text-dark"> <?php echo e(!empty($customer->billing_phone) ? $customer->billing_phone : ''); ?> </p> <p class="mb-0"> <strong><?php echo e(__('Tax Number ')); ?> : </strong><?php echo e(!empty($customer->tax_number)?$customer->tax_number:''); ?> </p> <?php endif; ?> </div> <div class="col-lg-4 col-sm-6"> <?php if(isset($company_setting['pos_shipping_display']) && $company_setting['pos_shipping_display']=='on'): ?> <?php if(!empty($customer->shipping_name)): ?> <p class="mb-2"> <strong class="h5 mb-1 d-block"><?php echo e(__('Shipped To')); ?> :</strong> <span class="text-muted d-block" style="max-width:80%"> <?php echo e(!empty($customer->shipping_name) ? $customer->shipping_name : ''); ?> <?php echo e(!empty($customer->shipping_address) ? $customer->shipping_address : ''); ?> <?php echo e(!empty($customer->shipping_city) ? $customer->shipping_city .' ,': ''); ?> <?php echo e(!empty($customer->shipping_state) ? $customer->shipping_state .' ,': ''); ?> <?php echo e(!empty($customer->shipping_zip) ? $customer->shipping_zip : ''); ?> <?php echo e(!empty($customer->shipping_country) ? $customer->shipping_country : ''); ?> </span> </p> <p class="mb-1 text-dark"> <?php echo e(!empty($customer->shipping_phone) ? $customer->shipping_phone : ''); ?> </p> <p class="mb-0"> <strong><?php echo e(__('Tax Number ')); ?> : </strong><?php echo e(!empty($customer->tax_number)?$customer->tax_number:''); ?> </p> <?php endif; ?> <?php endif; ?> </div> </div> </div> <?php endif; ?> <div class="invoice-summary mt-3"> <div class="invoice-title border-1 border-bottom mb-3 pb-2"> <h3 class="h4 mb-0"><?php echo e(__('Item Summary')); ?></h3> </div> <div class="table-responsive mt-2"> <table class="table mb-0 table-striped"> <thead> <tr> <th class="text-white bg-primary text-uppercase" >#</th> <th class="text-white bg-primary text-uppercase"><?php echo e(__('Items')); ?></th> <th class="text-white bg-primary text-uppercase"><?php echo e(__('Quantity')); ?></th> <th class="text-white bg-primary text-uppercase"><?php echo e(__('Price')); ?></th> <th class="text-white bg-primary text-uppercase"><?php echo e(__('Tax')); ?></th> <th class="text-white bg-primary text-uppercase"><?php echo e(__('Tax Amount')); ?></th> <th class="text-white bg-primary text-uppercase"><?php echo e(__('Total')); ?></th> </tr> </thead> <?php $totalQuantity=0; $totalRate=0; $totalTaxPrice=0; $totalDiscount=0; $taxesData=[]; ?> <?php $__currentLoopData = $iteams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$iteam): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(!empty($iteam->tax)): ?> <?php $taxes=\workdo\Pos\Entities\Pos::tax($iteam->tax); $totalQuantity+=$iteam->quantity; $totalRate+=$iteam->price; $totalDiscount+=$iteam->discount; foreach($taxes as $taxe){ $taxDataPrice=\workdo\Pos\Entities\Pos::taxRate($taxe->rate,$iteam->price,$iteam->quantity); if (array_key_exists($taxe->name,$taxesData)) { $taxesData[$taxe->name] = $taxesData[$taxe->name]+$taxDataPrice; } else { $taxesData[$taxe->name] = $taxDataPrice; } } ?> <?php endif; ?> <tr> <td><?php echo e($key+1); ?></td> <td><?php echo e(!empty($iteam->product)?$iteam->product->name:''); ?></td> <td><?php echo e($iteam->quantity); ?></td> <td><?php echo e(currency_format_with_sym($iteam->price)); ?></td> <td> <?php if(!empty($iteam->tax)): ?> <table class="w-100"> <tbody> <?php $totalTaxRate = 0; $totalTaxPrice = 0; ?> <?php $__currentLoopData = $taxes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $taxPrice=\workdo\Pos\Entities\Pos::taxRate($tax->rate,$iteam->price,$iteam->quantity); $totalTaxPrice+=$taxPrice; ?> <tr> <td><?php echo e($tax->name .' ('.$tax->rate .'%)'); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <?php else: ?> - <?php endif; ?> </td> <td><?php echo e(currency_format_with_sym($totalTaxPrice)); ?></td> <td ><?php echo e(currency_format_with_sym(($iteam->price*$iteam->quantity+$totalTaxPrice))); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tfoot> <tr> <td colspan="5"></td> <td><b><?php echo e(__(' Sub Total')); ?></b></td> <td><?php echo e(currency_format_with_sym($posPayment['amount'])); ?></td> </tr> <tr> <td colspan="5"></td> <td><b><?php echo e(__('Discount')); ?></b></td> <td><?php echo e(currency_format_with_sym($posPayment['discount'])); ?></td> </tr> <tr> <td colspan="5"></td> <td><b><?php echo e(__('Total')); ?></b></td> <td><?php echo e(currency_format_with_sym($posPayment['discount_amount'])); ?></td> </tr> </tfoot> </table> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/erp.dev-unit.com/packages/workdo/Pos/src/Providers/../Resources/views/pos/view.blade.php ENDPATH**/ ?>