@php $company = $company ?? null; @endphp
<div>
    <label class="block text-sm font-medium mb-1">Firma Adı</label>
    <input type="text" name="name" value="{{ 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">{{ 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" @selected(old('status', $company?->status ?? 'active')==='active')>Aktif</option>
            <option value="passive" @selected(old('status', $company?->status)==='passive')>Pasif</option>
        </select>
    </div>
    <div>
        <label class="block text-sm font-medium mb-1">Sıralama</label>
        <input type="number" name="sort_order" value="{{ old('sort_order', $company?->sort_order ?? 0) }}" class="w-full border rounded px-3 py-2">
    </div>
</div>
