<?php echo $__env->make('layout.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<!-- RECHARGE -->
<div class="recharge orders bg-transparent">
    <!-- HEADER -->
    <nav class="top_nav shadow-none">
        <div class="left">
            <a href="<?php echo e(url('/user/dashboard')); ?>">
                <img src="<?php echo e(asset('assets/img/back_arrow.png')); ?>" alt="" />
            </a>
            <span>Complaints & Suggestions </span>
        </div>
        <div class="right">
            <a href="<?php echo e(url('/user/addComplaint')); ?>">
                <img src="<?php echo e(asset('assets/img/plus1.png')); ?>" alt="" />
            </a>
        </div>
    </nav>

    <div class="top_nav shadow-sm w-100 h-100 pt-3">
        <div class="tab">
            <button class="tablinks f18 active w-100" id="completedBtn" onclick="complaintsTab(this, 'completed')">
                COMPLETED
            </button>
            <button class="tablinks f18 w-100" id="waitBtn" onclick="complaintsTab(this, 'wait')">
                WAIT
            </button>
        </div>
    </div>
    <!-- HEADER -->

    <!-- RECORD -->
    <div class="bg-white shadow-sm rounded-3 pb-2">
        <table class="table table-class" id="completed">
            <thead>
                <th class="text-center">Type</th>
                <th class="text-center">Whatsapp</th>
                <th class="text-center">Description</th>
                <th class="text-center">Reply</th>
            </thead>
            <tbody>
                <?php $__currentLoopData = $complaints; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $complaint): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if($complaint->status == 1): ?>
                <tr>
                    <td class="text-center f14" colspan="1"><?php echo e($complaint->type); ?></td>
                    <td class="text-center f14" colspan="1"><?php echo e($complaint->whatsapp); ?></td>
                    <td class="text-center f14" colspan="1"><?php echo e($complaint->description); ?></td>
                    <td class="text-center f14" colspan="1"><?php echo e($complaint->reply); ?></td>
                </tr>
                <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
        <table class="table table-class" id="wait" style="display: none;">
            <thead>
                <th class="text-center">Type</th>
                <th class="text-center">Whatsapp</th>
                <th class="text-center">Description</th>
                <th class="text-center">Reply</th>
            </thead>
            <tbody>
                <?php $__currentLoopData = $complaints; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $complaint): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if($complaint->status == 0): ?>
                <tr>
                    <td class="text-center f14" colspan="1"><?php echo e($complaint->type); ?></td>
                    <td class="text-center f14" colspan="1"><?php echo e($complaint->whatsapp); ?></td>
                    <td class="text-center f14" colspan="1"><?php echo e($complaint->description); ?></td>
                    <td class="text-center f14" colspan="1"><?php echo e($complaint->reply); ?></td>
                </tr>
                <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>

    <div id="COMPLETED" class="tabcontent"></div>

    <div id="WAIT" class="tabcontent"></div>
</div>
<!-- RECHARGE -->

<?php echo $__env->make('layout.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/shyambabamatka/public_html/zupitogames.com/resources/views/userDashboard/complaints.blade.php ENDPATH**/ ?>