HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ubuntu-8gb-hel1-1 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /var/www/agighana.org_backup/0d755be483f1762852ae4819485b6ad1.php
<?php $__env->startSection('head'); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-title'); ?>
<h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0">Approved Members</h1>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('body'); ?>
<div class="card shadow">
    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-striped">
                <thead>
                    <th>Member ID</th>
                    <th>Comapny Name</th>
                    <th>Company Phone</th>
                    <th>Action</th>
                </thead>
                <tbody>
                    <tbody>
                        <?php $__currentLoopData = $member; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($item->agi_member_id); ?></td>
                                <td><?php echo e($item->company_name); ?></td>
                                <td><?php echo e($item->comp_phone); ?></td>
                                <td><button class=" btn btn-primary btn-sm" id="btnApprove" data-id="<?php echo e($item->agi_member_id); ?>">Approve</button>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script>
$(document).ready(function () {
    $(document).on('click','#btnApprove', function(){
        var member_id = $(this).data('id')
        $.ajax({
            type: "post",
            url: "approve_member",
            data: { 'member_id' : member_id },
            success: function (response) {
                window.location.href = '/pending-members';
                alert('Member Approved')
            }
        });
    })
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\agi_project\admin_agi\resources\views/member/pending_members.blade.php ENDPATH**/ ?>