

<?php $__env->startSection('content'); ?>

<h3 class="mb-4">📊 CRM Pipeline</h3>

<table class="table table-bordered bg-white">
    <thead>
        <tr>
            <th>Name</th>
            <th>Phone</th>
            <th>Country</th>
            <th>Intake</th>
            <th>Stage</th>
            <th>Update</th>
        </tr>
    </thead>

```
<tbody>
    <?php $__currentLoopData = $leads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lead): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <tr>
        <td><?php echo e($lead->name); ?></td>
        <td><?php echo e($lead->phone); ?></td>
        <td><?php echo e($lead->country); ?></td>
        <td><?php echo e($lead->intake); ?></td>
        <td><b><?php echo e($lead->stage); ?></b></td>

        <td>
            <form method="POST" action="<?php echo e(route('lead.update', $lead->id)); ?>">
                <?php echo csrf_field(); ?>

                <select name="documents_status" class="form-control mb-1">
                    <option>Not Started</option>
                    <option>Contacted</option>
                    <option>Interested</option>
                    <option>Uploaded</option>
                    <option>Verified</option>
                    <option>Offer Received</option>
                    <option>Visa Filed</option>
                    <option>Visa Approved</option>
                </select>

                <button class="btn btn-success btn-sm w-100">Update</button>
            </form>

            <!-- Notes -->
            <form method="POST" action="<?php echo e(route('lead.note')); ?>" class="mt-2">
                <?php echo csrf_field(); ?>
                <input type="hidden" name="lead_id" value="<?php echo e($lead->id); ?>">
                <input name="note" class="form-control mb-1" placeholder="Add note">
                <button class="btn btn-dark btn-sm w-100">Save Note</button>
            </form>

            <!-- Followup -->
            <form method="POST" action="<?php echo e(route('lead.followup')); ?>" class="mt-2">
                <?php echo csrf_field(); ?>
                <input type="hidden" name="lead_id" value="<?php echo e($lead->id); ?>">
                <input type="date" name="date" class="form-control mb-1">
                <button class="btn btn-warning btn-sm w-100">Set Followup</button>
            </form>

        </td>
    </tr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
```

</table>

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

<?php echo $__env->make('layouts.adminapp', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/jitrealx/public_html/zoho/resources/views/admin/leads.blade.php ENDPATH**/ ?>