<table class="table table-striped table-bordered">
    <thead>
        <tr>
            <td></td>
            <td>Requisition No : <?php echo e($requisition->id); ?></td>
            <td></td>
            <td> Requisition Invoice : <?php echo e($requisition->invoice_no); ?></td>
            <td></td>
            <td></td>
            <td></td>
            <td>Date:</td>
            <td> <?php echo e(\Carbon\Carbon::parse($requisition->created_at)->format('D-d-M-Y')); ?></td>
        </tr>
        <tr>
            <th>#SL</th>
            <th>Approval</th>
            <th>Section / Department</th>
            <th>Group</th>
            <th>Item Name</th>
            <th>Item Code</th>
            <th>Unit </th>
            <th>Present Req.Price</th>
            <th>Present Req.Qty</th>
            <th>Remarks</th>
        </tr>
    </thead>
    <tbody>
        <?php $i=0; ?>
        <?php if($requisition->count()>0): ?>
        <?php echo e(Form::open(['route'=>['inventory.requisition-item.checking-approval',$requisition->id],'method'=>'post'])); ?>


        <?php $__currentLoopData = $requisition->RequisitonProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e(++$i); ?></td>

                <td> <?php echo e($product->user_id !=null ? "Approved" : "Not Approved"); ?> </td>
                <td><?php echo e($product->product->department ? $product->product->department->name : "N/A"); ?></td>
                <td><?php echo e($product->product->group ? $product->product->group->name : " N/A "); ?></td>
                <td><?php echo e($product->product ? $product->product->name  : " N/A "); ?></td>
                <td><?php echo e($product->product ? $product->product->item_code : " N/A "); ?></td>
                <td><?php echo e($product->product->unit ? $product->product->unit->name : " N/A "); ?></td>
                <td><?php echo e($product->price); ?></td>
                <td><?php echo e($product->qty); ?></td>
                <td><?php echo e($product->note); ?></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
    </tbody>
</table>
<?php /**PATH /home/welluugs/purchase.wellgrouperp.com/resources/views/inventory/requisition/invoice-requisition-excel.blade.php ENDPATH**/ ?>