<?php $__env->startSection('title','Pending Requisition'); ?>
<?php $__env->startSection('style'); ?>
    <style>
        .check_label{
            padding: 5px;
        }
    </style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">

            </div>
        </div><!-- /.container-fluid -->
    </section>
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1>Pending Requisitions</h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="#">Home</a></li>
                        <li class="breadcrumb-item active">Pending Requisition</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                </div>
                <div class="col-sm-6 text-right">
                    
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>


    <!-- Main content -->
    <section class="content">
        <div class="col-lg-12">

            <div class="card"><br>
                <div class="card-body">
                    <div class="row">
                        
                        <div class="col-lg-12 table-responsive">

                            <table class="table-bordered table-striped table text-center" id="myTable">
                                <thead>
                                    <tr class="bg-info">
                                        <th>#SL</th>
                                        <th>Requisition No</th>
                                        <th>Total Qty</th>
                                        <th>Approved Qty</th>
                                        <th>R. Date</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>

                                <tbody>
                                <?php $i=1?>
                                    <?php if(count($data)>0): ?>
                                        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                            <?php
                                                $requisition = \App\Requisition::query()->findOrFail($list['id']);
                                            ?>

                                            <tr>
                                                <td><?php echo e($i++); ?></td>
                                                <td><?php echo e($requisition->requisition_id); ?></td>
                                                <td><?php echo e($list['requisition_total_qty']); ?></td>
                                                <td><?php echo e($list['approved_requisition_total_qty']); ?></td>
                                                <td> <?php echo e(\Carbon\Carbon::parse($requisition->created_at)->format('D-d-M-Y')); ?>  -- <?php echo e($requisition->created_at->diffForHumans()); ?></td>
                                                <td>
                                                    
                                                    <a class="fa fa-eye  btn btn-success" href="<?php echo e(route('pending.requisition.product',$requisition->id)); ?>"></a>
                                                </td>
                                            </tr>
                                       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php endif; ?>
                                </tbody>
                            </table>
                            <span class="float-right">

                            </span>
                        </div>
                        

                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /.content -->



<?php $__env->stopSection(); ?>

<?php $__env->startSection('style'); ?>
    <!-- DataTables -->
    
<?php $__env->stopSection(); ?>

<?php $__env->startSection('plugin'); ?>
    <!-- DataTables -->
    

    <!-- page script -->
    <script type="text/javascript">

    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.fixed', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/welluugs/purchase.wellgrouperp.com/resources/views/requisition/pending.blade.php ENDPATH**/ ?>