<style>
    .ins-img img {
    margin-left: 20px;
}
</style>


<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">

<?php $__env->startSection('content'); ?>
    <div class="common-content" style="overflow-x: hidden;">
        <div class="page-content">
            <div class="page-heading">
                <div class="headings">
                    <h6>Inspection Date</h6>
                    <input name="_token" type="hidden" id="token_pbg" value="<?php echo e(csrf_token()); ?>">
                </div>
            </div>
            <div class="dashboard-contents">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="boxings po-sum" style="border-radius: 15px;">
                            <ul class="nav nav-tabs meddbot-tab">        
                                <li ><a  href="<?php echo e(url('/vendors/inspection_date_process_pending')); ?>">Pending</a></li>
                                <li><a href="<?php echo e(url('/vendors/inspection_date_process_approved')); ?>">Approved</a></li>
                                <li class="active"><a class="active show" href="<?php echo e(url('/vendors/inspection_date_process_rejected')); ?>">Rejected</a></li>
                            </ul>
                            <div class="tab-content meddbot-tabcontent">

                                <div id="menu2" class="tab-pane fade active show">
                                    <?php if(count($inspection_rejected) != 0): ?>
                                        <?php $__currentLoopData = $inspection_rejected; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $summary): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="w-50 ins-grid">
                                                <div class="ins-main d-flex align-items-center">
                                                    <div class="ins-img">
                                                        <?php if(!empty($summary->photo)): ?>
                                                            <img src="<?php echo e(url('product_files')); ?>/<?php echo e($summary->photo); ?>">
                                                        <?php else: ?>
                                                            <img
                                                                src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
                                                        <?php endif; ?>
                                                        <span class="or-id">Order Id
                                                            <span><?php echo e($summary->po_id); ?></span></span>
                                                    </div>
                                                    <div class="ins-details">
                                                        <h4><?php echo e(ucfirst($summary->product_name)); ?></h4>
                                                        <ul>
                                                            <li>
                                                                <label>Equipment Id </label>
                                                                <span><?php echo e($summary->id); ?></span>
                                                            </li>
                                                            <li>
                                                                <label>Inspection Date </label>
                                                                <span><?php echo e($summary->inspection_date); ?></span>
                                                            </li>
                                                            <li>
                                                                <label>Status </label>
                                                                <span> Rejected</span>
                                                            </li>
                                                            <li>
                                                                <label>Reason</label>
                                                                <span><?php echo e(ucfirst($summary->inspection_date_rejectreason)); ?></span>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                </div>
                                               
                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php echo e($inspection_rejected->links()); ?>

                                    <?php else: ?>
                                        <div class="col-lg-12 col-md-6 col-sm-12 col-xs-12">
                                            <div class="product-display">
                                                <ul>
                                                    <li>
                                                        <div class="details">
                                                            <div>
                                                                <h6>
                                                                    No Datas available
                                                                </h6>
                                                            </div>
                                                        </div>
                                                    </li>
                                                </ul>
                                            </div>
                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal fade  new-modal" id="reject" tabindex="-1" aria-labelledby="exampleModalLabel"
            aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <form id="reject_inspectiondate" method="POST" action="<?php echo e(url('vendors/reject_inspectiondate')); ?>">
                        <?php echo csrf_field(); ?>
                        <div class="modal-body">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                            <div class="otp">
                                <h4>Reject Reason</h4>
                                <input type="hidden" name="preorderid" value="" id="preorderid">
                                <input type="hidden" name="order_id" value="" id="order_id">
                                <input type="hidden" name="main_buyer_id" value="" id="main_buyer_id">
                                <textarea class="w-100 mb-3 form-control" cols="5" rows="5" placeholder="Reason" name="reject_reason"
                                    id="reject_reason"></textarea>
                            </div>
                            <div class="medd-pop-buttons">
                                <button class="btn medd-blue medd-buttons">Submit</button>
                                <!--              <button class="btn medd-black medd-buttons" >Resend OTP</button>-->
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('scripts'); ?>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
        <script src="<?php echo e(URL::to('assets/js/vendorsnew.js')); ?>"></script>
        <script>
            var counter = 1
            $(document).on("click", ".remove", function() {
                $(this).closest('.amcs').remove();
                counter--;
            })

            function addprereq(e) {
                var addoption = '';
                addoption += '<div class="row amcs">';
                addoption += '<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">';
                addoption += '<div class="form-inputs">';
                addoption += '<div class="form-group">';
                addoption += ' <label>Pre-Requisites Item<sub>*</sub></label>';
                addoption += ' <input  type="text" class="form-control" id="prereq' + counter + '" name="prereq[]" value="" >';
                addoption += '</div>';
                addoption += '</div>';
                addoption += '</div>';
                addoption += '<div class="col-lg-2 col-md-6 col-sm-12 col-xs-12">';
                addoption += '<div class="form-inputs">';
                addoption += '<div class="green-button rem">';
                addoption +=
                    '<button class="product-submit remove">Remove<i class="fa fa-minus" aria-hidden="true"></i></button>';
                addoption += '</div>';
                addoption += '</div>';
                addoption += '</div>';
                addoption += '</div>';
                if (counter < 5) {
                    $("#amitems").append(addoption);
                    counter++;
                }
                return false;
            }
            $(function() {
                $('#delivery_date_edit').Zebra_DatePicker({
                    format: 'd-m-Y'
                });
                $('#delivery_date').Zebra_DatePicker({
                    format: 'd-m-Y'
                });
                $('#issue_date').Zebra_DatePicker({
                    format: 'd-m-Y'
                });
                $('#expiry_date').Zebra_DatePicker({
                    format: 'd-m-Y'
                });
                $('#issue_date_edit').Zebra_DatePicker({
                    format: 'd-m-Y'
                });
                $('#expiry_date_edit').Zebra_DatePicker({
                    format: 'd-m-Y'
                });
                $('.file-input1').on('change', function(e) {
                    var file = this.files[0]
                    $("#file-list-x1").html('');
                    $('#file-list-' + $(this).data('id')).append('<span>' + file.name + '</span>')
                })
                $('.file-input-button1').on('click', function(e) {
                    $('#file-input-' + $(this).data('id')).trigger('click');
                })
                $('.file-input').on('change', function(e) {
                    var file = this.files[0]
                    //$("#file-list-x").html('');
                    $('#file-list-' + $(this).data('id')).append('<span>' + file.name + '</span>')
                })
                $('.file-input-button').on('click', function(e) {
                    $('#file-input-' + $(this).data('id')).trigger('click');
                })
            })
        </script>
        <script>
            $('.choosefile').click(function() {
                $('#productcatalouge').click();
            });
            $('.choosefilecertificate').click(function() {
                $('#productcertificate').click();
            });
            $('.choosefilereport').click(function() {
                $('#productperformancereport').click();
            });
            var $disabledResults = $(".js-example-disabled-results");
            $disabledResults.select2();
            <?php if(Session::has('message')): ?>
                swal({
                    title: "",
                    text: "<?php echo e(Session::get('message')); ?>",
                    type: "success",
                    showCancelButton: false,
                    dangerMode: false,
                    confirmButtonText: 'OK',
                });
            <?php endif; ?>
            $('#country').on('change', function() {
                $(".pageloader").show();
                var countryid = this.value;
                var APP_URL = <?php echo json_encode(url('/getstates1')); ?>;
                var saveData = $.ajax({
                    type: 'GET',
                    url: APP_URL + '/' + countryid,
                    data: {
                        countryid: countryid,
                        _token: '<?php echo e(csrf_token()); ?>'
                    },
                    dataType: "text",
                    success: function(resultData) {
                        $("#state").html(resultData);
                        $(".pageloader").hide();
                    }
                });
            });
            $('#country_edit').on('change', function() {
                $(".pageloader").show();
                var countryid = this.value;
                var APP_URL = <?php echo json_encode(url('/getstates1')); ?>;
                var saveData = $.ajax({
                    type: 'GET',
                    url: APP_URL + '/' + countryid,
                    data: {
                        countryid: countryid,
                        _token: '<?php echo e(csrf_token()); ?>'
                    },
                    dataType: "text",
                    success: function(resultData) {
                        $("#state_edit").html(resultData);
                        $(".pageloader").hide();
                    }
                });
            });
            function printChallan(id) {
                var getMyFrame = document.getElementById(id);
                getMyFrame.focus();
                getMyFrame.contentWindow.print();
            }
        </script>
    <?php $__env->stopSection(); ?>

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