<?php if($user->orders): ?>
    <table class="table table-responsive table-hover table-bordered">
        <tr>
            <th><?php echo e(__('frontside.orders.ord_id')); ?></th>
            <th><?php echo e(__('frontside.orders.created_at')); ?></th>
            <th><?php echo e(__('frontside.orders.buyer')); ?></th>
            <th><?php echo e(__('frontside.orders.ord_adress')); ?></th>
            <th><?php echo e(__('frontside.orders.ord_email')); ?></th>
            <th><?php echo e(__('frontside.orders.ord_phone')); ?></th>
            <th><?php echo e(__('frontside.orders.ord_status')); ?></th>
            <th><?php echo e(__('frontside.orders.total')); ?></th>
            <th><?php echo e(__('frontside.orders.view')); ?></th>
        </tr>

    <?php $__currentLoopData = $user->orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td><?php echo e($order->ord_id); ?></td>
            <td><?php echo e(sr_date($order->created_at)); ?></td>
            <td><?php echo e(!is_null($order->ord_company) ? $order->ord_company.' - ' : ''); ?><?php echo e($order->ord_lname); ?> <?php echo e($order->ord_fname); ?></td>
            <td><?php echo e($order->ord_adress); ?></td>
            <td><?php echo e($order->ord_email); ?></td>
            <td><?php echo e($order->ord_phone); ?></td>
            <td><?php echo e($order->ord_status); ?></td>
            <td><?php echo e(number_format($order->ord_total, 2, '.', ',')); ?></td>
            <td>
                <a class="btnn btn-primary  btn-xs" href="<?php echo e(locRoute('user.order', ['orderid' => $order->ord_id])); ?>">
                    <i class="fa fa-eye"></i> <?php echo e(__('frontside.orders.view')); ?>

                </a>
            </td>
        </tr>
        
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </table>
    
<?php else: ?>
<div class="text-center"><strong>Jos uvek niste napravili nijednu porudzbinu</strong></div>
<?php endif; ?>

