<div class="box">

    <div class="panel panel-default">

        <div class="panel-body">
            <div class="row">
                <div class="col-xs-12 col-md-6">
                   <h2><?php echo e(__('frontside.orders.order_id')); ?> <?php echo e($order->ord_id); ?></h2>
                   <?php echo e(__('frontside.orders.created_at')); ?> <?php echo e(sr_date($order->created_at)); ?>

                    
                </div>
                <div class="col-xs-12 col-md-6">
                    <?php echo e(!is_null($order->ord_company) ? $order->ord_company.' - ' : ''); ?><?php echo e($order->ord_lname); ?> <?php echo e($order->ord_fname); ?>

                    <br><?php echo e($order->ord_adress); ?>

                    <br><?php echo e($order->ord_email); ?>

                    <br><?php echo e($order->ord_phone); ?>

                </div>
                <div class="col-xs-12">
                    <hr>
                </div>
            </div>
        </div>

        <div class="panel-body">
            <?php if($order->items): ?>
                <table class="table table-responsive table-hover table-bordered">
                    <tr>
                        <th><?php echo e(__('frontside.orders.no')); ?></th>
                        <th><?php echo e(__('frontside.orders.ord_item_name')); ?></th>
                        <th><?php echo e(__('frontside.orders.ord_item_qnty')); ?></th>
                        <th><?php echo e(__('frontside.orders.ord_item_nvprice')); ?></th>
                        <th><?php echo e(__('frontside.orders.ord_item_vrate')); ?></th>
                        <th><?php echo e(__('frontside.orders.ord_item_vat')); ?></th>
                        <th style="text-align: right;"><?php echo e(__('frontside.orders.subtotal')); ?></th>
                    </tr>
                <?php
                    $i = 1;
                    $grandtotal = 0;
                ?>
                <?php $__currentLoopData = $order->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        $total     = ($item->ord_item_nvprice+$item->ord_item_vat)*$item->ord_item_qnty;
                        $grandtotal = $grandtotal+$total;
                    ?>
                        <tr>
                            <td><?php echo e($i); ?></td>
                            <td><?php echo e($item->ord_item_name); ?></td>
                            <td><?php echo e($item->ord_item_qnty); ?></td>
                            <td><?php echo e(number_format($item->ord_item_nvprice, 2, '.', ',')); ?></td>
                            <td><?php echo e($item->ord_item_vrate); ?>%</td>
                            <td><?php echo e(number_format($item->ord_item_vat, 2, '.', ',')); ?></td>
                            <td align="right"><?php echo e(number_format($total, 2, '.', ',')); ?></td>
                        </tr>
                    <?php
                    ++$i;
                    ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td style="border-left: solid 1px transparent; border-bottom: solid 1px transparent;" colspan="6" align="right"><strong><?php echo e(__('frontside.orders.total')); ?></strong></td>
                        <td style="border-top: solid 2px #000;"  align="right"><strong><?php echo e(number_format($grandtotal, 2, '.', ',')); ?></strong></td>
                    </tr>
                </table>
            <?php endif; ?>
        </div><!-- /.panel-body -->


    </div><!-- /.panel -->
</div> <!-- /.box -->



