<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>Accounts</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;">
                            <div class="tab-content meddbot-tabcontent">
                                <div id="home" class="tab-pane fade in active show">
                                    <div class="d-flex ins-date">
                                        <?php if(count($accounts) != 0): ?>
                                            <?php $__currentLoopData = $accounts; $__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->order_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->po_product_itemsid); ?></span>
                                                                </li>
                                                                <li>
                                                                    <label>Purchase Order Date </label>
                                                                    <span><?php echo e($summary->date); ?></span>
                                                                </li>
                                                                
                                                            </ul>
                                                        </div>
                                                    </div>
                                                    <div class="p-o-buttons">
                                                        <a href='<?php echo e(url('/vendors/accountdetails/'.$summary->po_product_itemsid)); ?>' target="_blank"><button class="btn medd-buttons btn btn-secondary">Account Details</button></a>
                                                    </div>
                                                </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?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>
        <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>
    <?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/accounts_vendor.blade.php ENDPATH**/ ?>