<?php $__env->startSection('main-container'); ?>
<main id="main" class="main">
<?php echo $__env->make('cdn', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<style type="text/css">

    .m-0{
        margin: 0px;
    }
    .p-0{
        padding: 0px;
    }
    .pt-5{
        padding-top:5px;
    }
    .mt-10{
        margin-top:10px;
    }
    .text-center{
        text-align:center !important;
    }
    .w-100{
        width: 100%;
    }
    .w-50{
        width:50%;
    }

    .w-85{
        width:85%;
    }
    .w-15{
        width:15%;
    }
    .logo img{
        width:45px;
        height:45px;
        padding-top:30px;
    }
    .logo span{
        margin-left:8px;
        top:19px;
        position: absolute;
        font-weight: bold;
        font-size:25px;
    }
    .gray-color{
        color:#5D5D5D;
    }
    .text-bold{
        font-weight: bold;
    }
    .border{
        border:1px solid black;
    }
    table tr,th,td{
        border: 1px solid #d2d2d2;
        border-collapse:collapse;
        padding:7px 8px;
    }
    table tr th{
        background: #F4F4F4;
        font-size:15px;
    }
    table tr td{
        font-size:13px;
    }
    table{
        border-collapse:collapse;
    }
    .box-text p{
        line-height:10px;
    }
    .float-left{
        float:left;
    }
    .total-part{
        font-size:16px;
        line-height:12px;
    }
    .total-right p{
        padding-right:20px;
    }

    .section{
    border: 4px solid #ccc;
    padding: 50px;
    margin-top: 20px;
    margin-bottom: 20px;
    }
    .row{
        text-align: float;
        margin-top: 50px;
        margin-bottom: 50px;
    }


    .right{
        text-align: end;
    }

    .left{
        text-align: start;
    }


</style>

<div class="row page-titles mx-0">

    <div class="col-sm-6 p-md-0">

        <div class="breadcrumb-range-picker">

             <h3>Orders</h3>

        </div>

    </div>

    <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">

        <a href="<?php echo e(route('orders')); ?>" class="btns primary-btn ml-4">

           <span class="btn-icon-left" style="color: white">Back</span>

       </a>

   </div>

</div>

<div class="section">
    <h2 class="text-center m-0 p-0">Invoice</h2>

<div class="row">
    <div class="col-6 left">
        <p><Strong>ARRO</Strong></p>
        <p><Strong>Nrk Bizpark Indore, M.P. 458667</Strong></p>

    </div>
    <div class="col-6 right">
        <p><Strong>Order ID</Strong>-<Strong>#000<?php echo e($orders->id); ?></Strong></p>
        <p><Strong>Order Date</Strong>-<Strong><?php echo e(\Carbon\Carbon::parse($orders->created_at)->format('d-m-Y')); ?></Strong></p>
    </div>
</div>

<div class="row">
    <div class="col-6 left">
        <p><strong>Customer Info:</strong></p>
        <p><?php echo e($orders->User->name); ?></p>
        <p><?php echo e($orders->user->mobile); ?></p>
    </div>
</div

<div class="table-section bill-tbl w-100 mt-15">
    <table class="table w-100 mt-15">
        <tr align="left">
            <th>Product Name</th>
            <th>Price</th>
            <th>Qty</th>
            <th>Total</th>
        </tr>
        <?php $__currentLoopData = $order_histories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order_history): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr align="left">
        <td><?php echo e($order_history->name); ?></td>
        <td>₹ <?php echo e($order_history->price); ?></td>
        <td><?php echo e($order_history->qty); ?></td>
        <td>₹ <?php echo e($order_history->subtotal); ?></td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td colspan="7">
                <div class="total-part">
                    <div class="total-left w-85 float-left" align="right">
                        <p><strong>Total Amount</strong></p>
                    </div>
                    <div class="total-right w-15 float-left text-bold" align="right">
                        <p>₹ <?php echo e($orders->amount); ?></p>
                    </div>
                    <div style="clear: both;"></div>
                </div>
            </td>
        </tr>
    </table>
</div>
</div>
</main><!-- End #main -->
 <?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vinecork/public_html/webdev/DATA/resources/views/order/view_details.blade.php ENDPATH**/ ?>