<?php $__env->startSection('header', 'Site Settings'); ?>
<?php $__env->startSection('content'); ?>
<div class="bg-white rounded shadow p-6">
    <form action="<?php echo e(route('admin.settings.update')); ?>" method="POST" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
        
        <div class="mb-6 border-b border-gray-200 pb-6">
            <label class="block text-sm font-medium text-gray-700">Site Logo</label>
            <?php if(isset($settings['site_logo'])): ?>
                <div class="mt-2 mb-2">
                    <img src="<?php echo e(asset($settings['site_logo'])); ?>" alt="Site Logo" class="h-16 object-contain bg-gray-50 border border-gray-100 p-1 rounded">
                </div>
            <?php endif; ?>
            <input type="file" name="site_logo" class="mt-1 block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-teal-50 file:text-teal-700 hover:file:bg-teal-100">
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
            <div>
                <label class="block text-sm font-medium text-gray-700">Site Name</label>
                <input type="text" name="site_name" value="<?php echo e($settings['site_name'] ?? ''); ?>" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-teal-500 focus:ring-teal-500">
            </div>
            <div>
                <label class="block text-sm font-medium text-gray-700">Contact Email</label>
                <input type="email" name="email" value="<?php echo e($settings['email'] ?? ''); ?>" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-teal-500 focus:ring-teal-500">
            </div>
            <div>
                <label class="block text-sm font-medium text-gray-700">Contact Phone</label>
                <input type="text" name="phone" value="<?php echo e($settings['phone'] ?? ''); ?>" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-teal-500 focus:ring-teal-500">
            </div>
            <div>
                <label class="block text-sm font-medium text-gray-700">Address</label>
                <input type="text" name="address" value="<?php echo e($settings['address'] ?? ''); ?>" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-teal-500 focus:ring-teal-500">
            </div>
            <div>
                <label class="block text-sm font-medium text-gray-700">Facebook URL</label>
                <input type="url" name="facebook_url" value="<?php echo e($settings['facebook_url'] ?? ''); ?>" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-teal-500 focus:ring-teal-500">
            </div>
            <div>
                <label class="block text-sm font-medium text-gray-700">Instagram URL</label>
                <input type="url" name="instagram_url" value="<?php echo e($settings['instagram_url'] ?? ''); ?>" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-teal-500 focus:ring-teal-500">
            </div>
            <div>
                <label class="block text-sm font-medium text-gray-700">TikTok URL</label>
                <input type="url" name="tiktok_url" value="<?php echo e($settings['tiktok_url'] ?? ''); ?>" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-teal-500 focus:ring-teal-500">
            </div>
        </div>
        <div class="mt-6 flex justify-end">
            <button type="submit" class="bg-teal-600 text-white px-4 py-2 rounded">Save Settings</button>
        </div>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/sumankc/Desktop/ Websites/Dr Rajan/resources/views/admin/settings/index.blade.php ENDPATH**/ ?>