<?php $__env->startSection('title', 'Add SEO Entry | '); ?>
<?php $__env->startSection('content'); ?>
<section class="section dashboard">
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-body">
                    <h5 class="card-title">
                        <?php if(!empty($sitemap)): ?>
                            Edit Sitemap Entry
                        <?php else: ?>
                            Add New Sitemap Entry
                        <?php endif; ?>
                        </h5>
                    <?php if(Session::has('success')): ?>
                    <p id="flash-message" class="alert alert-info"><?php echo e(Session::get('success')); ?></p>
                <?php endif; ?>
                    <?php if($errors->any()): ?>
                        <div class="alert alert-danger">
                            <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 echo e(route('sitemap.store')); ?>">
                        <?php echo csrf_field(); ?>

                        <div class="mb-3">
                            <label for="script" class="form-label">Sitemap</label>
                            <textarea name="sitemap" id="script" class="form-control" rows="5"
                                placeholder="Enter the script here"><?php echo e(old('sitemap', $sitemap->sitemap ?? '')); ?></textarea>
                        </div>

                        <div class="mb-3">
                            <button type="submit" class="btn btn-success">Save</button>
                            <a href="<?php echo e(route('seo.index')); ?>" class="btn btn-secondary">Cancel</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/brandsignages/resources/views/admin/sitemap/index.blade.php ENDPATH**/ ?>