

<?php $__env->startSection('content'); ?>
    <div class="row clearfix">
        <div class="col-lg-12 col-md-12 col-sm-12">
            <div class="card">
                <div class="header">
                    <h2><strong>General </strong>Settings</h2>

                </div>
                <div class="mt-2">
                    <?php echo $__env->make('admin.layouts.partials.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                </div>
                <div class="body">
                    <?php if(count($errors) > 0): ?>
                        <div class="alert alert-danger">
                            <strong>Whoops!</strong> There were some problems with your input.<br><br>
                            <ul>
                                <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <li><?php echo e($error); ?></li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                        </div>
                    <?php endif; ?>
                    <form method="POST"
                        action="<?php if($generalsettings): ?> <?php echo e(route('update.general.settings')); ?><?php else: ?> <?php echo e(route('store.general.settings')); ?> <?php endif; ?>"
                        enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <input type="hidden" value="<?php if($generalsettings): ?> <?php echo e($generalsettings->id); ?> <?php endif; ?>"
                            name="id">
                        <div class="row">
                            <div class="col-6">
                                <label class="form-label">Site Title</label>
                                <input type="text" class="form-control" name="site_title"
                                    value="<?php if($generalsettings): ?> <?php echo e($generalsettings->site_title); ?> <?php endif; ?>">
                            </div>
                            <div class="col-6">
                                <label class="form-label">Meta Title</label>
                                <input type="text" class="form-control" name="meta_title"
                                    value="<?php if($generalsettings): ?> <?php echo e($generalsettings->meta_title); ?> <?php endif; ?>">
                            </div>
                        </div>
                        <br>
                        <div class="row">
                            <div class="col-6">
                                <label class="form-label">Description</label>
                                <textarea class="form-control" name="description">
                                  <?php if($generalsettings): ?>
                                        <?php echo e($generalsettings->description); ?>

                                        <?php endif; ?>
                                  </textarea>
                            </div>
                            <div class="col-6">
                                <label class="form-label">Meta Description</label>
                                <textarea class="form-control" name="meta_description">
                                  <?php if($generalsettings): ?>
                                      <?php echo e($generalsettings->meta_description); ?>

                                      <?php endif; ?>
                                  </textarea>
                            </div>
                        </div>
                        <br>
                        <div class="row">
                            <div class="col-6">
                                <label class="form-label">Meta Keywords</label>
                                <input type="text" class="form-control" name="meta_keywords"
                                    value="<?php if($generalsettings): ?> <?php echo e($generalsettings->meta_keywords); ?> <?php endif; ?>">
                            </div>
                            <div class="col-6">
                                <label class="form-label">Meta Tags</label>
                                <input type="text" class="form-control" name="meta_tags"
                                    value="<?php if($generalsettings): ?> <?php echo e($generalsettings->meta_tags); ?> <?php endif; ?>">
                            </div>
                        </div>
                        <br>
                        <div class="row">
                            <div class="col-8">
                                <label class="form-label">Main Logo</label>
                                <input type="file" class="form-control" name="main_logo" value="">

                            </div>
                            <div class="col-4">
                                <?php if($generalsettings): ?>
                                    <img src="<?php echo e(asset('public/assets/images/logos')); ?>/<?php echo e($generalsettings->main_logo); ?>"
                                        alt="" width="100">
                                <?php endif; ?>

                            </div>
                        </div>
                        <br>
                        <div class="row">
                            <div class="col-8">
                                <label class="form-label">Footer Logo</label>
                                <input type="file" class="form-control" name="footer_logo" value="">
                            </div>
                            <div class="col-4">
                                <?php if($generalsettings): ?>
                                    <img src="<?php echo e(asset('public/assets/images/logos')); ?>/<?php echo e($generalsettings->footer_logo); ?>"
                                        alt="" width="100">
                                <?php endif; ?>
                            </div>
                        </div>
                        <br>
                        <div class="row">
                            <div class="col-8">
                                <label class="form-label">Favicon</label>
                                <input type="file" class="form-control" name="favicon" value="">
                            </div>
                            <div class="col-4">
                                <?php if($generalsettings): ?>
                                    <img src="<?php echo e(asset('public/assets/images/logos')); ?>/<?php echo e($generalsettings->favicon); ?>"
                                        alt="" width="100">
                                <?php endif; ?>
                            </div>
                        </div>
                        <br>
                        <div class="row">
                            <div class="col-12">
                                <label class="form-label">Disclaimer</label>
                                <textarea class="form-control" name="disclaimer">
                              <?php if($generalsettings): ?>
                              <?php echo e($generalsettings->disclaimer); ?>

                              <?php endif; ?>
                              </textarea>
                            </div>
                        </div>
                        <br>
                        <div class="col-12">
                            <div class="d-grid">
                                <button type="submit" class="btn btn-primary">Save</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\Laravel\realtimebrief\resources\views/admin/pages/settings/general-settings.blade.php ENDPATH**/ ?>