<?php $__env->startSection('title', 'Тохиргоо'); ?>
<?php $__env->startSection('page_title', 'Сайтын тохиргоо'); ?>

<?php $__env->startSection('content'); ?>

<form action="<?php echo e(route('admin.settings.update')); ?>" method="POST" enctype="multipart/form-data" class="max-w-3xl bg-white rounded-2xl border border-gray-100 p-6 lg:p-8 space-y-6">
    <?php echo csrf_field(); ?>

    <div>
        <h3 class="font-bold mb-4 pb-2 border-b border-gray-100">Үндсэн</h3>
        <div class="space-y-4">
            <div>
                <label class="block text-sm font-semibold mb-1">Сайтын нэр</label>
                <input type="text" name="site_name" value="<?php echo e($settings['site_name']->value ?? 'NSMA'); ?>" 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>
                <textarea name="site_description" rows="2" class="w-full px-4 py-3 border border-gray-200 rounded-lg outline-none"><?php echo e($settings['site_description']->value ?? ''); ?></textarea>
            </div>
            <div>
                <label class="block text-sm font-semibold mb-1">Лого</label>
                <?php $logo = $settings['logo']->value ?? null; ?>
                <?php if($logo): ?> <img src="<?php echo e(\Storage::disk('public')->url($logo)); ?>" class="h-16 mb-2"> <?php endif; ?>
                <input type="file" name="logo" accept="image/*" class="w-full">
            </div>
        </div>
    </div>

    <div>
        <h3 class="font-bold mb-4 pb-2 border-b border-gray-100">Холбоо барих</h3>
        <div class="space-y-4">
            <div>
                <label class="block text-sm font-semibold mb-1">Утас</label>
                <input type="text" name="contact_phone" value="<?php echo e($settings['contact_phone']->value ?? '+976 7711 1111'); ?>" 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="email" name="contact_email" value="<?php echo e($settings['contact_email']->value ?? 'info@nsma.mn'); ?>" 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="text" name="contact_address" value="<?php echo e($settings['contact_address']->value ?? 'Улаанбаатар хот'); ?>" class="w-full px-4 py-3 border border-gray-200 rounded-lg outline-none">
            </div>
        </div>
    </div>

    <div>
        <h3 class="font-bold mb-4 pb-2 border-b border-gray-100">Сошиал медиа</h3>
        <div class="space-y-4">
            <div>
                <label class="block text-sm font-semibold mb-1">Facebook</label>
                <input type="url" name="facebook_url" value="<?php echo e($settings['facebook_url']->value ?? ''); ?>" 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">Instagram</label>
                <input type="url" name="instagram_url" value="<?php echo e($settings['instagram_url']->value ?? ''); ?>" 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">LinkedIn</label>
                <input type="url" name="linkedin_url" value="<?php echo e($settings['linkedin_url']->value ?? ''); ?>" 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">YouTube</label>
                <input type="url" name="youtube_url" value="<?php echo e($settings['youtube_url']->value ?? ''); ?>" class="w-full px-4 py-3 border border-gray-200 rounded-lg outline-none">
            </div>
        </div>
    </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>
    </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/settings/edit.blade.php ENDPATH**/ ?>