
<?php echo $__env->make('agency.partials.qv-table', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

<div class="qvt-bar">
    <span class="qvt-bar-info"><i class="fas fa-users"></i><?php echo e($customers->count()); ?> müşteri</span>
</div>

<div class="qvt-box qvt-scroll">
    <table class="qvt">
        <thead>
            <tr>
                <th>Müşteri</th>
                <th class="qvt-w1">Kod</th>
                <th>Telefon</th>
                <th>Şehir</th>
                <th class="qvt-w1">Durum</th>
            </tr>
        </thead>
        <tbody>
            <?php $__empty_1 = true; $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <tr class="qvt-click" data-quickview-url="<?php echo e(route('agency.customers.quick-view', $customer)); ?>">
                    <td class="qvt-trunc">
                        <span class="qvt-c qvt-strong" data-copy="<?php echo e($customer->full_name); ?>"><?php echo e($customer->full_name); ?></span>
                    </td>
                    <td class="qvt-w1"><span class="qvt-c qvt-mono" data-copy="<?php echo e($customer->code); ?>"><?php echo e($customer->code); ?></span></td>
                    <td>
                        <?php if($customer->phone): ?>
                            <span class="qvt-c qvt-mono" data-copy="<?php echo e($customer->phone); ?>"><?php echo e($customer->phone); ?></span>
                        <?php else: ?>
                            <span class="qvt-none">—</span>
                        <?php endif; ?>
                    </td>
                    <td><?php echo e($customer->city ?: '—'); ?></td>
                    <td class="qvt-w1"><span class="qvt-chip"><?php echo e($customer->status_label); ?></span></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <tr class="qvt-empty">
                    <td colspan="5">
                        <i class="fas fa-user-group"></i>
                        <b>Atanmış müşteri yok</b>
                        <span><?php echo e($staff->user_id ? 'Bu personel henüz hiçbir müşteriye temsilci olarak atanmadı.' : 'Müşteri ataması için personelin sistem hesabı olmalı.'); ?></span>
                    </td>
                </tr>
            <?php endif; ?>
        </tbody>
    </table>
</div>
<?php /**PATH C:\xampp\htdocs\acente\resources\views/agency/staff-management/staff/partials/qv-customers.blade.php ENDPATH**/ ?>