<?php $__env->startSection('panel'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card b-radius--10 ">
                <div class="card-body p-0">
                    <div class="table-responsive--md  table-responsive">
                        <table class="table table--light style--two">
                            <thead>
                            <tr>
                                <th><?php echo app('translator')->get('User'); ?></th>
                                <th><?php echo app('translator')->get('Content'); ?></th>
                                <th><?php echo app('translator')->get('Image'); ?></th>
                                <th><?php echo app('translator')->get('Status'); ?></th>
                                <th><?php echo app('translator')->get('Action'); ?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__empty_1 = true; $__currentLoopData = $proof; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <tr>
                                    <td data-label="<?php echo app('translator')->get('Name'); ?>">
                                    <span class="font-weight-bold">
                                        <?php echo e(__($data->user->mobile)); ?>

                                    </span>
                                    </td>


                                    <td>
                                        <?php echo e($data->content); ?>

                                    </td>

                                    <td >
                                        <?php
                                            $images = json_decode($data->image, true); // Decode the JSON
                                        ?>
                                        <?php $__currentLoopData = $images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                         <a href="<?php echo e(asset('core/storage/app/public/' . $image)); ?>">
                                             <img style="width:40px;" src="<?php echo e(asset('core/storage/app/public/' . $image)); ?>" draggable="false">
                                         </a>
                                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </td>

                                    <td data-label="<?php echo app('translator')->get('Status'); ?>">
                                        <?php if($data->status == 2): ?>
                                            <span class="badge badge--warning">
                                            <?php echo app('translator')->get('Pending'); ?>
                                        </span>
                                        <?php elseif($data->status == 1): ?>
                                        <span class="badge badge--success">
                                            <?php echo app('translator')->get('Approved'); ?>
                                        </span>
                                        <?php else: ?>
                                            <span class="badge badge--danger">
                                            <?php echo app('translator')->get('Failed'); ?>
                                        </span>
                                        <?php endif; ?>
                                    </td>

                                    <td data-label="<?php echo app('translator')->get('Action'); ?>">
                                        <a href="<?php echo e(route('admin.proof.approve', $data->id)); ?>"

                                           class="icon-btn editBtn btn--success"
                                           data-original-title="<?php echo app('translator')->get('Approve'); ?>"
                                        >
                                            Approve
                                        </a>
                                        
                                        &nbsp;
                                        
                                        <a href="<?php echo e(route('admin.proof.reject',$data->id)); ?>"

                                           class="icon-btn editBtn btn--danger"
                                           data-original-title="<?php echo app('translator')->get('Reject'); ?>"
                                        >
                                            Reject
                                        </a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <tr>
                                    <td class="text-muted text-center" colspan="100%"><?php echo e(__($emptyMessage)); ?></td>
                                </tr>
                            <?php endif; ?>

                            </tbody>
                        </table><!-- table end -->
                    </div>
                </div>
                <div class="card-footer py-4">
                    <?php echo e(paginateLinks($proof)); ?>

                </div>
            </div>
        </div>

    </div>



    

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

<?php $__env->startPush('breadcrumb-plugins'); ?>
    
<?php $__env->stopPush(); ?>

<?php $__env->startPush('script'); ?>
    
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/xsus/core/resources/views/admin/proof/index.blade.php ENDPATH**/ ?>