

<?php $__env->startSection('title', 'Common Settings'); ?>
<?php $__env->startSection('ad_page_title', 'Common Settings'); ?>
<?php $__env->startSection('ad_page_subtitle', 'Manage shared website information, branding, contact details, verification and code snippets'); ?>

<?php $__env->startSection('ad_content'); ?>
<div class="ad_card">
    <div class="ad_card_inner">
        <form method="POST" action="<?php echo e(route('admin.settings.update')); ?>" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>

            <div class="ad_box">
                <h3>Branding</h3>

                <div class="row g-4">
                    <div class="col-md-6">
                        <label class="ad_label">Website Name</label>
                        <input type="text" name="website_name" class="ad_input" value="<?php echo e(old('website_name', $setting->website_name)); ?>">
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">Website Tagline</label>
                        <input type="text" name="website_tagline" class="ad_input" value="<?php echo e(old('website_tagline', $setting->website_tagline)); ?>">
                    </div>

                    <div class="col-md-3">
                        <label class="ad_label">Logo</label>
                        <input type="file" name="logo" class="ad_file">
                    </div>

                    <div class="col-md-3">
                        <label class="ad_label">Footer Logo</label>
                        <input type="file" name="footer_logo" class="ad_file">
                    </div>

                    <div class="col-md-3">
                        <label class="ad_label">Favicon</label>
                        <input type="file" name="favicon" class="ad_file">
                    </div>

                    <div class="col-md-3">
                        <label class="ad_label">Default Share Image</label>
                        <input type="file" name="default_share_image" class="ad_file">
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">Default Meta Author</label>
                        <input type="text" name="default_meta_author" class="ad_input" value="<?php echo e(old('default_meta_author', $setting->default_meta_author)); ?>">
                    </div>

                    <div class="col-md-6 d-flex align-items-end gap-3">
                        <?php if($setting->logo): ?>
                            <img src="<?php echo e(asset('storage/' . $setting->logo)); ?>" alt="Logo" class="ad_preview_logo">
                        <?php endif; ?>

                        <?php if($setting->favicon): ?>
                            <img src="<?php echo e(asset('storage/' . $setting->favicon)); ?>" alt="Favicon" class="ad_preview_logo">
                        <?php endif; ?>
                    </div>
                </div>
            </div>

            <div class="ad_box">
                <h3>Contact Information</h3>

                <div class="row g-4">
                    <div class="col-md-6">
                        <label class="ad_label">Phone Number</label>
                        <input type="text" name="phone" class="ad_input" value="<?php echo e(old('phone', $setting->phone)); ?>">
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">Phone Display</label>
                        <input type="text" name="phone_display" class="ad_input" value="<?php echo e(old('phone_display', $setting->phone_display)); ?>">
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">WhatsApp Number</label>
                        <input type="text" name="whatsapp" class="ad_input" value="<?php echo e(old('whatsapp', $setting->whatsapp)); ?>">
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">WhatsApp Display</label>
                        <input type="text" name="whatsapp_display" class="ad_input" value="<?php echo e(old('whatsapp_display', $setting->whatsapp_display)); ?>">
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">Email</label>
                        <input type="email" name="email" class="ad_input" value="<?php echo e(old('email', $setting->email)); ?>">
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">Opening Time</label>
                        <input type="text" name="opening_time" class="ad_input" value="<?php echo e(old('opening_time', $setting->opening_time)); ?>">
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">Address</label>
                        <input type="text" name="address_line" class="ad_input" value="<?php echo e(old('address_line', $setting->address_line)); ?>">
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">WhatsApp Default Text</label>
                        <input type="text" name="whatsapp_default_text" class="ad_input" value="<?php echo e(old('whatsapp_default_text', $setting->whatsapp_default_text)); ?>">
                    </div>

                    <div class="col-12">
                        <label class="ad_label">Google Map URL</label>
                        <textarea name="google_map_url" class="ad_textarea"><?php echo e(old('google_map_url', $setting->google_map_url)); ?></textarea>
                    </div>
                </div>
            </div>

            <div class="ad_box">
                <h3>Footer</h3>

                <div class="row g-4">
                    <div class="col-12">
                        <label class="ad_label">Footer About</label>
                        <textarea name="footer_about" class="ad_textarea"><?php echo e(old('footer_about', $setting->footer_about)); ?></textarea>
                    </div>

                    <div class="col-12">
                        <label class="ad_label">Sub Footer Text</label>
                        <textarea name="subfooter_text" class="ad_textarea"><?php echo e(old('subfooter_text', $setting->subfooter_text)); ?></textarea>
                    </div>

                    <div class="col-md-6">
                        <label class="ad_label">Copyright Text</label>
                        <input type="text" name="copyright_text" class="ad_input" value="<?php echo e(old('copyright_text', $setting->copyright_text)); ?>">
                    </div>
                </div>
            </div>

            <div class="ad_box">
                <h3>Social Links</h3>

                <div class="row g-4">
                    <div class="col-md-6"><label class="ad_label">Facebook URL</label><input type="text" name="facebook_url" class="ad_input" value="<?php echo e(old('facebook_url', $setting->facebook_url)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">Instagram URL</label><input type="text" name="instagram_url" class="ad_input" value="<?php echo e(old('instagram_url', $setting->instagram_url)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">LinkedIn URL</label><input type="text" name="linkedin_url" class="ad_input" value="<?php echo e(old('linkedin_url', $setting->linkedin_url)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">TikTok URL</label><input type="text" name="tiktok_url" class="ad_input" value="<?php echo e(old('tiktok_url', $setting->tiktok_url)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">YouTube URL</label><input type="text" name="youtube_url" class="ad_input" value="<?php echo e(old('youtube_url', $setting->youtube_url)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">X URL</label><input type="text" name="x_url" class="ad_input" value="<?php echo e(old('x_url', $setting->x_url)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">Telegram URL</label><input type="text" name="telegram_url" class="ad_input" value="<?php echo e(old('telegram_url', $setting->telegram_url)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">Snapchat URL</label><input type="text" name="snapchat_url" class="ad_input" value="<?php echo e(old('snapchat_url', $setting->snapchat_url)); ?>"></div>
                </div>
            </div>

            <div class="ad_box">
                <h3>Common SEO and Verification</h3>

                <div class="row g-4">
                    <div class="col-md-4"><label class="ad_label">Default Robots</label><input type="text" name="default_meta_robots" class="ad_input" value="<?php echo e(old('default_meta_robots', $setting->default_meta_robots)); ?>"></div>
                    <div class="col-md-4"><label class="ad_label">Default Locale</label><input type="text" name="default_meta_locale" class="ad_input" value="<?php echo e(old('default_meta_locale', $setting->default_meta_locale)); ?>"></div>
                    <div class="col-md-4"><label class="ad_label">Arabic Locale</label><input type="text" name="default_meta_locale_ar" class="ad_input" value="<?php echo e(old('default_meta_locale_ar', $setting->default_meta_locale_ar)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">Google Site Verification</label><input type="text" name="google_site_verification" class="ad_input" value="<?php echo e(old('google_site_verification', $setting->google_site_verification)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">Bing Verification</label><input type="text" name="bing_site_verification" class="ad_input" value="<?php echo e(old('bing_site_verification', $setting->bing_site_verification)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">Yandex Verification</label><input type="text" name="yandex_site_verification" class="ad_input" value="<?php echo e(old('yandex_site_verification', $setting->yandex_site_verification)); ?>"></div>
                    <div class="col-md-6"><label class="ad_label">Pinterest Verification</label><input type="text" name="pinterest_site_verification" class="ad_input" value="<?php echo e(old('pinterest_site_verification', $setting->pinterest_site_verification)); ?>"></div>
                    <div class="col-12"><label class="ad_label">Organization Schema JSON</label><textarea name="schema_organization_json" class="ad_textarea"><?php echo e(old('schema_organization_json', $setting->schema_organization_json)); ?></textarea></div>
                </div>
            </div>

            <div class="ad_box">
                <h3>Analytics, Ads and Extra Code</h3>

                <div class="row g-4">
                    <div class="col-md-4"><label class="ad_label">Google Analytics ID</label><input type="text" name="google_analytics_id" class="ad_input" value="<?php echo e(old('google_analytics_id', $setting->google_analytics_id)); ?>"></div>
                    <div class="col-md-4"><label class="ad_label">Google Ads ID</label><input type="text" name="google_ads_id" class="ad_input" value="<?php echo e(old('google_ads_id', $setting->google_ads_id)); ?>"></div>
                    <div class="col-md-4"><label class="ad_label">GTM Body ID / Code</label><input type="text" name="google_tag_manager_body" class="ad_input" value="<?php echo e(old('google_tag_manager_body', $setting->google_tag_manager_body)); ?>"></div>
                    <div class="col-12"><label class="ad_label">Google Tag Manager Head Code</label><textarea name="google_tag_manager_head" class="ad_textarea"><?php echo e(old('google_tag_manager_head', $setting->google_tag_manager_head)); ?></textarea></div>
                    <div class="col-12"><label class="ad_label">Extra Head Code</label><textarea name="head_code" class="ad_textarea"><?php echo e(old('head_code', $setting->head_code)); ?></textarea></div>
                    <div class="col-12"><label class="ad_label">Body Start Code</label><textarea name="body_start_code" class="ad_textarea"><?php echo e(old('body_start_code', $setting->body_start_code)); ?></textarea></div>
                    <div class="col-12"><label class="ad_label">Body End Code</label><textarea name="body_end_code" class="ad_textarea"><?php echo e(old('body_end_code', $setting->body_end_code)); ?></textarea></div>
                </div>
            </div>

            <button type="submit" class="ad_btn">
                <i class="fa-solid fa-floppy-disk"></i>
                <span>Save Settings</span>
            </button>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.ad_master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/onesourceerp/public_html/project/resources/views/admin/settings/ad_edit.blade.php ENDPATH**/ ?>