<div class="border-item">
    <form class="form-row" method="post" action="<?php echo e($settingsAction); ?>" enctype="multipart/form-data">
        <?php if($settings): ?>
            <input type="hidden" name="update" value="true">
        <?php endif; ?>
        <?php echo csrf_field(); ?>

        <?php if(auth()->user()->role == 'super_admin'): ?>
            <div class="col-md-12">
                <div class="card mb-5">
                    <div class="card-header">
                        <h4>Website And Dashboard Disabled</h4>
                    </div>
                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">
                            <i class="fas fa-globe"></i> <b><?php echo e(meta('website_disable', $lang) ?? 'Website Disabled'); ?></b>
                            <label class="switch ">
                                <input <?php echo e($settings->website_disable == 1 ? 'checked' : ''); ?> type="checkbox" class="success" name="website_disable" value="1">
                                <span class="slider"></span>
                            </label>
                        </li>
                        <li class="list-group-item">
                            <i class="fas fa-chart-line"></i> <b> <?php echo e(meta('dashboard_disable', $lang) ?? 'Dashboard Disabled'); ?></b>
                            <label class="switch ">
                                <input <?php echo e($settings->dashboard_disable == 1 ? 'checked' : ''); ?> type="checkbox" class="success" name="dashboard_disable" value="1">
                                <span class="slider"></span>
                            </label>
                        </li>
                    </ul>
                </div>
            </div>
        <?php endif; ?>

        <div class="form-group col-lg-6">
            <label><?php echo e(meta('website_name', $lang) ?? __('settings.website_name')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('website_name') ? 'is-invalid' : ''); ?>" name="website_name" placeholder="<?php echo e(meta('website_name', $lang) ?? __('settings.website_name')); ?>" value='<?php echo e(old("website_name", $settings->website_name ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('Keywords', $lang) ?? __('settings.keywords')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('keywords') ? 'is-invalid' : ''); ?>" name="keywords" placeholder="<?php echo e(meta('Keywords', $lang) ?? __('settings.keywords')); ?>" value='<?php echo e(old("keywords", $settings->keywords ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('meta_description', $lang) ?? __('settings.meta_description')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('meta_description') ? 'is-invalid' : ''); ?>" name="meta_description" placeholder="<?php echo e(meta('meta_description', $lang) ?? __('settings.meta_description')); ?>" value='<?php echo e(old("meta_description", $settings->meta_description ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('mail_driver', $lang) ?? __('settings.mail_driver')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('mail_driver') ? 'is-invalid' : ''); ?>" name="mail_driver" placeholder="<?php echo e(meta('mail_driver', $lang) ?? __('settings.mail_driver')); ?>" value='<?php echo e(old("mail_driver", $settings->mail_driver ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('mail_host', $lang) ?? __('settings.mail_host')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('mail_host') ? 'is-invalid' : ''); ?>" name="mail_host" placeholder="<?php echo e(meta('mail_host', $lang) ?? __('settings.mail_host')); ?>" value='<?php echo e(old("mail_host", $settings->mail_host ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('mail_port', $lang) ?? __('settings.mail_port')); ?></label>
            <input type="number" class="form-control <?php echo e($errors->has('mail_port') ? 'is-invalid' : ''); ?>" name="mail_port" placeholder="<?php echo e(meta('mail_port', $lang) ?? __('settings.mail_port')); ?>" value='<?php echo e(old("mail_port", $settings->mail_port ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('mail_username', $lang) ?? __('settings.mail_username')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('mail_username') ? 'is-invalid' : ''); ?>" name="mail_username" placeholder="<?php echo e(meta('mail_username', $lang) ?? __('settings.mail_username')); ?>" value='<?php echo e(old("mail_username", $settings->mail_username ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('mail_password', $lang) ?? __('settings.mail_password')); ?></label>
            <input type="password" class="form-control <?php echo e($errors->has('mail_password') ? 'is-invalid' : ''); ?>" name="mail_password" placeholder="<?php echo e(meta('mail_password', $lang) ?? __('settings.mail_password')); ?>" value='<?php echo e(old("mail_password", $settings->mail_password ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('mail_encryption', $lang) ?? __('settings.mail_encryption')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('mail_encryption') ? 'is-invalid' : ''); ?>" name="mail_encryption" placeholder="<?php echo e(meta('mail_encryption', $lang) ?? __('settings.mail_encryption')); ?>" value='<?php echo e(old("mail_encryption", $settings->mail_encryption ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('mail_from_address', $lang) ?? __('settings.mail_from_address')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('mail_from_address') ? 'is-invalid' : ''); ?>" name="mail_from_address" placeholder="<?php echo e(meta('mail_from_address', $lang) ?? __('settings.mail_from_address')); ?>" value='<?php echo e(old("mail_from_address", $settings->mail_from_address ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('mail_from_name', $lang) ?? __('settings.mail_from_name')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('mail_from_name') ? 'is-invalid' : ''); ?>" name="mail_from_name" placeholder="<?php echo e(meta('mail_from_name', $lang) ?? __('settings.mail_from_name')); ?>" value='<?php echo e(old("mail_from_name", $settings->mail_from_name ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6"></div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('site_phone', $lang) ?? __('settings.site_phone')); ?></label>
            <input type="tel" class="form-control <?php echo e($errors->has('site_phone') ? 'is-invalid' : ''); ?>" name="site_phone" placeholder="<?php echo e(meta('site_phone', $lang) ?? __('settings.site_phone')); ?>" value='<?php echo e(old("site_phone", $settings->site_phone ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('site_email', $lang) ?? __('settings.site_email')); ?></label>
            <input type="email" class="form-control <?php echo e($errors->has('site_email') ? 'is-invalid' : ''); ?>" name="site_email" placeholder="<?php echo e(meta('site_email', $lang) ?? __('settings.site_email')); ?>" value='<?php echo e(old("site_email", $settings->site_email ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('site_address_en', $lang) ?? __('settings.site_address_en')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('site_address_en') ? 'is-invalid' : ''); ?>" name="site_address_en" placeholder="<?php echo e(meta('site_address_en', $lang) ?? __('settings.site_address_en')); ?>" value='<?php echo e(old("site_address_en", $settings->site_address_en ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('site_address_ar', $lang) ?? __('settings.site_address_ar')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('site_address_ar') ? 'is-invalid' : ''); ?>" name="site_address_ar" placeholder="<?php echo e(meta('site_address_ar', $lang) ?? __('settings.site_address_ar')); ?>" value='<?php echo e(old("site_address_ar", $settings->site_address_ar ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('map', $lang) ?? __('settings.map')); ?></label>
            <input type="text" class="form-control <?php echo e($errors->has('map') ? 'is-invalid' : ''); ?>" name="map" placeholder="<?php echo e(meta('map', $lang) ?? __('settings.map')); ?>" value='<?php echo e(old("map", $settings->map ?? "")); ?>'/>
        </div>

        <div class="form-group col-lg-6">
            <label><?php echo e(meta('facebook', $lang) ?? __('settings.facebook')); ?></label>
            <input type="url" class="form-control <?php echo e($errors->has('facebook') ? 'is-invalid' : ''); ?>" name="facebook" placeholder="<?php echo e(meta('facebook', $lang) ?? __('settings.facebook')); ?>" value='<?php echo e(old("facebook", $settings->facebook ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('x', $lang) ?? __('settings.x')); ?></label>
            <input type="url" class="form-control <?php echo e($errors->has('x') ? 'is-invalid' : ''); ?>" name="x" placeholder="<?php echo e(meta('x', $lang) ?? __('settings.x')); ?>" value='<?php echo e(old("x", $settings->x ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('instagram', $lang) ?? __('settings.instagram')); ?></label>
            <input type="url" class="form-control <?php echo e($errors->has('instagram') ? 'is-invalid' : ''); ?>" name="instagram" placeholder="<?php echo e(meta('instagram', $lang) ?? __('settings.instagram')); ?>" value='<?php echo e(old("instagram", $settings->instagram ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('linkedin', $lang) ?? __('settings.linkedin')); ?></label>
            <input type="url" class="form-control <?php echo e($errors->has('linkedin') ? 'is-invalid' : ''); ?>" name="linkedin" placeholder="<?php echo e(meta('linkedin', $lang) ?? __('settings.linkedin')); ?>" value='<?php echo e(old("linkedin", $settings->linkedin ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('whatsapp', $lang) ?? __('settings.whatsapp')); ?></label>
            <input  class="form-control <?php echo e($errors->has('whatsapp') ? 'is-invalid' : ''); ?>" name="whatsapp" placeholder="<?php echo e(meta('whatsapp', $lang) ?? __('settings.whatsapp')); ?>" value='<?php echo e(old("whatsapp", $settings->whatsapp ?? "")); ?>'/>
        </div>
        

       <!--- <div class="form-group col-lg-6">
            <label><?php echo e(meta('start_time', $lang) ?? __('settings.start_time')); ?></label>
            <input type="time" class="form-control <?php echo e($errors->has('start_time') ? 'is-invalid' : ''); ?>" name="start_time" placeholder="<?php echo e(meta('start_time', $lang) ?? __('settings.start_time')); ?>" value='<?php echo e(old("start_time", $settings->start_time ?? "")); ?>'/>
        </div>

        <div class="form-group col-lg-6">
            <label><?php echo e(meta('end_time', $lang) ?? __('settings.end_time')); ?></label>
            <input type="time" class="form-control <?php echo e($errors->has('end_time') ? 'is-invalid' : ''); ?>" name="end_time" placeholder="<?php echo e(meta('end_time', $lang) ?? __('settings.end_time')); ?>" value='<?php echo e(old("end_time", $settings->end_time ?? "")); ?>'/>
        </div>--->
        <div class="form-group col-lg-6">
            <label><?php echo e(__('settings.website_logo')); ?> </label>
            <input type="file" class="form-control <?php echo e($errors->has('website_logo') ? 'is-invalid' : ''); ?>" name="website_logo" placeholder="<?php echo e(__('settings.website_logo')); ?>" value='<?php echo e(old('website_logo', '')); ?>' accept="image/*"/>
            <?php if($settings->website_logo ?? null): ?>
                <a href="<?php echo e(getFileUrl($settings->website_logo)); ?>" class="btn btn-primary" target="_new"><i class="fas fa-download"></i></a>
            <?php endif; ?>
        </div>

        <div class="form-group col-lg-6">
            <label><?php echo e(__('settings.website_favicon')); ?> </label>
            <input type="file" class="form-control <?php echo e($errors->has('website_favicon') ? 'is-invalid' : ''); ?>" name="website_favicon" placeholder="<?php echo e(__('settings.website_favicon')); ?>" value='<?php echo e(old('website_favicon', '')); ?>' accept="image/*"/>
            <?php if($settings->website_favicon ?? null): ?>
                <a href="<?php echo e(getFileUrl($settings->website_favicon)); ?>" class="btn btn-primary" target="_new"><i class="fas fa-download"></i></a>
            <?php endif; ?>
        </div>

        <div class="text-center mt-5 col-12">
            <button class="butn"><span><?php echo e(__('dashboard.save')); ?></span></button>
        </div>
    </form>
</div>
<?php /**PATH /home/alyomhostorg/public_html/madar/resources/views/admin/settings/site_settings.blade.php ENDPATH**/ ?>