<?php $company = $company ?? null; ?>
<div>
    <label class="block text-sm font-medium mb-1">Firma Adı</label>
    <input type="text" name="name" value="<?php echo e(old('name', $company?->name)); ?>" required class="w-full border rounded px-3 py-2">
</div>
<div>
    <label class="block text-sm font-medium mb-1">Logo</label>
    <input type="file" name="logo" class="w-full border rounded px-3 py-2">
</div>
<div>
    <label class="block text-sm font-medium mb-1">Açıklama</label>
    <textarea name="description" class="w-full border rounded px-3 py-2"><?php echo e(old('description', $company?->description)); ?></textarea>
</div>
<div class="grid grid-cols-2 gap-4">
    <div>
        <label class="block text-sm font-medium mb-1">Durum</label>
        <select name="status" class="w-full border rounded px-3 py-2">
            <option value="active" <?php if(old('status', $company?->status ?? 'active')==='active'): echo 'selected'; endif; ?>>Aktif</option>
            <option value="passive" <?php if(old('status', $company?->status)==='passive'): echo 'selected'; endif; ?>>Pasif</option>
        </select>
    </div>
    <div>
        <label class="block text-sm font-medium mb-1">Sıralama</label>
        <input type="number" name="sort_order" value="<?php echo e(old('sort_order', $company?->sort_order ?? 0)); ?>" class="w-full border rounded px-3 py-2">
    </div>
</div>
<?php /**PATH C:\Users\a-azr\Desktop\kolayabonelik\resources\views/panel/companies/_form.blade.php ENDPATH**/ ?>