<div class="modal fade invoiceModal" id="viewModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true" data-backdrop="static"data-keyboard="false">
    <div class="modal-dialog modal-lg modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalCenterTitle"><?php echo app('translator')->get('quickadmin.qa_view'); ?> <?php echo app('translator')->get('quickadmin.order.invoice'); ?></h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="text-right print-bottom-btn mb-3">
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('estimate_print')): ?>
                    <a href="<?php echo e(route('orders.print',$order->uuid)); ?>" class="btn btn-primary" id="order-detail-print" title="Print"> <?php if (isset($component)) { $__componentOriginal4fc2bce81e6643975498c1caac0c8935 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4fc2bce81e6643975498c1caac0c8935 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg-icon','data' => ['icon' => 'print']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('svg-icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['icon' => 'print']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4fc2bce81e6643975498c1caac0c8935)): ?>
<?php $attributes = $__attributesOriginal4fc2bce81e6643975498c1caac0c8935; ?>
<?php unset($__attributesOriginal4fc2bce81e6643975498c1caac0c8935); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4fc2bce81e6643975498c1caac0c8935)): ?>
<?php $component = $__componentOriginal4fc2bce81e6643975498c1caac0c8935; ?>
<?php unset($__componentOriginal4fc2bce81e6643975498c1caac0c8935); ?>
<?php endif; ?>Print</a>
                    <?php endif; ?>
                </div>
                <div class="invoce-details">
                    <div class="row">
                        <div class="col">
                            <ul class="sub_total_area left">
                                <li><label><?php echo app('translator')->get('quickadmin.bill_to'); ?></label><span><?php echo e($order->customer->name ?? ''); ?></span></li>
                                <li><label><?php echo app('translator')->get('quickadmin.customers.fields.area_address'); ?></label><span><?php echo e($order->customer?->area?->address); ?></span></li>
                                <li><label><?php echo app('translator')->get('quickadmin.customers.fields.phone_number'); ?></label><span><?php echo e($order->customer->phone_number ?? ''); ?></span></li>
                            </ul>                            
                        </div>
                        <div class="col-md-5">
                            <ul class="sub_total_area right">
                                <li><label><?php echo app('translator')->get('quickadmin.order.fields.invoice_number'); ?></label><span>#<?php echo e($order->invoice_number); ?></span></li>
                                <li><label><?php echo app('translator')->get('quickadmin.order.fields.invoice_date'); ?></label><span><?php echo e($order->invoice_date->format('d-M-Y')); ?></span></li>
                                <li><label><?php echo app('translator')->get('quickadmin.order.fields.created_at'); ?></label><span><?php echo e($order->created_at->format('d-M-Y h:i A')); ?></span></li>  
                            </ul>                            
                        </div>
                    </div>
                    <div class="pt-3 pb-4">
                        <div class="table-responsive">
                            <table class="table custom_table modal-table-width" id="orderProductTable">
                                <thead>
                                    <tr>
                                        <th><?php echo app('translator')->get('quickadmin.qa_sn'); ?></th>
                                        <th><?php echo app('translator')->get('quickadmin.order.fields.product_name'); ?></th>
                                        <th><?php echo app('translator')->get('quickadmin.order.fields.dispatch_place'); ?></th>
                                        <th><?php echo app('translator')->get('quickadmin.order.fields.quantity'); ?></th>
                                        <th><?php echo app('translator')->get('quickadmin.order.fields.price'); ?></th>
                                        <th><?php echo app('translator')->get('quickadmin.order.fields.amount'); ?> (₹)</th>                                        
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $order->orderProduct; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($index + 1); ?></td>
                                        <td><?php echo e($product->product ? $product->product->full_name : 'Deleted Product'); ?></td>
                                        <td><?php echo e(config('app.product_place.' . $product->dispatch_place)); ?></td>
                                        <td><?php echo e($product->quantity); ?> <?php echo e($product->product ? $product->product->product_unit->name :''); ?></td>
                                        <td><?php echo e($product->price); ?></td>
                                        <td><?php echo e($product->total_price); ?></td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>                                    
                                </tbody>                                                 
                            </table>
                        </div>
                    </div>  
                    <div class="row">
                        <div class="col-md-5 col-lg-5 col-xl-5 ml-auto">
                            <ul class="sub_total_area bottom">
                                <li><label><?php echo app('translator')->get('quickadmin.order.fields.sub_total_amount'); ?></label><span id="sub_total">₹ <?php echo e($order->sub_total ?? 0); ?></span></li>
                                <li><label><?php echo app('translator')->get('quickadmin.order.fields.labour_bhada'); ?></label><span id="labour_bhada">₹ <?php echo e($order->labour_bhada ?? 0); ?></span></li>
                                <li><label><?php echo app('translator')->get('quickadmin.order.fields.gadi_bhada'); ?></label><span id="gadi_bhada">₹ <?php echo e($order->gadi_bhada ?? 0); ?></span></li>
                                <li class="subtotle"><label><?php echo app('translator')->get('quickadmin.order.fields.grand_total'); ?></label><span id="grand_total">₹ <?php echo e($order->grand_total ?? 0); ?></span></li>
                            </ul>                            
                        </div>
                        <div class="col-12 col-xl-12">                            
                            <?php if($order->remark): ?>
                            <h6>
                                <label for="remark"><?php echo app('translator')->get('quickadmin.order.fields.remark'); ?> : </label>
                                <span id="remark"><?php echo e($order->remark ?? " "); ?></span>                                
                            </h6>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /home/hipldemo2/public_html/billing-software.hipl-staging2.com/resources/views/admin/order/show.blade.php ENDPATH**/ ?>