<?php $__env->startSection('title', 'Firmalar'); ?>
<?php $__env->startSection('content'); ?>
<div class="flex justify-between items-center mb-4">
    <h2 class="text-sm text-slate-500"><?php echo e($companies->total()); ?> firma</h2>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('create', App\Models\Company::class)): ?>
        <a href="<?php echo e(route('panel.companies.create')); ?>" class="bg-blue-600 text-white rounded px-4 py-2 text-sm font-medium">+ Yeni Firma</a>
    <?php endif; ?>
</div>
<div class="grid md:grid-cols-3 gap-4">
    <?php $__currentLoopData = $companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="bg-white rounded shadow p-4">
            <div class="flex justify-between items-start">
                <div>
                    <h3 class="font-semibold"><?php echo e($company->name); ?></h3>
                    <p class="text-xs text-slate-400"><?php echo e($company->packages_count); ?> paket</p>
                </div>
                <span class="text-xs px-2 py-0.5 rounded <?php echo e($company->status==='active' ? 'bg-green-100 text-green-700' : 'bg-slate-200'); ?>"><?php echo e($company->status==='active' ? 'Aktif':'Pasif'); ?></span>
            </div>
            <div class="mt-3 flex gap-2 text-sm">
                <a href="<?php echo e(route('panel.companies.show', $company)); ?>" class="text-blue-600 hover:underline">Görüntüle</a>
                <a href="<?php echo e(route('panel.companies.edit', $company)); ?>" class="text-slate-600 hover:underline">Düzenle</a>
            </div>
        </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<div class="mt-4"><?php echo e($companies->links()); ?></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\a-azr\Desktop\kolayabonelik\resources\views/panel/companies/index.blade.php ENDPATH**/ ?>