@extends('admin.layouts.app')
@section('title', 'Шинэ харилцагч')
@section('page_title', 'Шинэ харилцагч')
@section('content')
<form action="{{ route('admin.partners.store') }}" method="POST" enctype="multipart/form-data" class="max-w-xl bg-white rounded-2xl border border-gray-100 p-8 space-y-4">
    @csrf
    <div>
        <label class="block text-sm font-semibold mb-1">Нэр <span class="text-nsma-red">*</span></label>
        <input type="text" name="name" required class="w-full px-4 py-3 border border-gray-200 rounded-lg outline-none">
    </div>
    <div>
        <label class="block text-sm font-semibold mb-1">Лого <span class="text-nsma-red">*</span></label>
        <input type="file" name="logo" accept="image/*" required class="w-full">
    </div>
    <div>
        <label class="block text-sm font-semibold mb-1">Вэбсайт</label>
        <input type="url" name="website" class="w-full px-4 py-3 border border-gray-200 rounded-lg outline-none">
    </div>
    <div>
        <label class="block text-sm font-semibold mb-1">Эрэмбэ</label>
        <input type="number" name="sort_order" value="0" class="w-full px-4 py-3 border border-gray-200 rounded-lg outline-none">
    </div>
    <div class="flex gap-6">
        <label class="flex items-center gap-2"><input type="hidden" name="is_active" value="0"><input type="checkbox" name="is_active" value="1" checked class="rounded"> Идэвхтэй</label>
        <label class="flex items-center gap-2"><input type="hidden" name="is_featured" value="0"><input type="checkbox" name="is_featured" value="1" class="rounded"> Onцлох</label>
    </div>
    <div class="flex gap-3 pt-4 border-t">
        <button class="bg-nsma-red text-white font-semibold px-6 py-3 rounded-lg">Хадгалах</button>
        <a href="{{ route('admin.partners.index') }}" class="text-gray-600 self-center">Цуцлах</a>
    </div>
</form>
@endsection
