<?php $__env->startSection('title', 'Харилцагч засах'); ?>
<?php $__env->startSection('page_title', 'Харилцагч засах'); ?>
<?php $__env->startSection('content'); ?>
<form action="<?php echo e(route('admin.partners.update', $partner)); ?>" method="POST" enctype="multipart/form-data" class="max-w-xl bg-white rounded-2xl border border-gray-100 p-8 space-y-4">
    <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?>
    <div>
        <label class="block text-sm font-semibold mb-1">Нэр</label>
        <input type="text" name="name" value="<?php echo e($partner->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">Лого</label>
        <?php if($partner->logoUrl()): ?> <img src="<?php echo e($partner->logoUrl()); ?>" class="h-16 mb-2"> <?php endif; ?>
        <input type="file" name="logo" accept="image/*" class="w-full">
    </div>
    <div>
        <label class="block text-sm font-semibold mb-1">Вэбсайт</label>
        <input type="url" name="website" value="<?php echo e($partner->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="<?php echo e($partner->sort_order); ?>" 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" <?php echo e($partner->is_active ? '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" <?php echo e($partner->is_featured ? 'checked' : ''); ?> 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="<?php echo e(route('admin.partners.index')); ?>" class="text-gray-600 self-center">Цуцлах</a>
    </div>
</form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\uninsma.mn\resources\views/admin/partners/edit.blade.php ENDPATH**/ ?>