<div class="panel panel-primary">

    <header class="panel-heading">
      <h2><?php echo app('translator')->getFromJson('backend.sitemap'); ?></h2>
    </header>

    <div class="panel-body">
      <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

      <form action="<?php echo e(route('updateSitemap')); ?>" method="post" enctype="multipart/form-data">
        <?php echo e(csrf_field()); ?>


        <div class="form-group col-xs-12 col-sm-8 col-sm-offset-2">
          <div class="well well-lg">
            <?php if(Storage::disk('root')->exists('sitemap.xml')): ?>
              <h3><a id="openxml" href="javascript:CreatepopUp('<?php echo e(str_replace('public/','',url('/sitemap.xml'))); ?>')">sitemap.xml</a></h3>
              <span class="label label-info"><?php echo app('translator')->getFromJson('backend.last-modified'); ?> : <?php echo e(date('d-m-Y H:i:s',Storage::disk('root')->lastModified('sitemap.xml'))); ?></span>
            <?php else: ?>
              <div class="alert alert-danger" role="alert">
                <p class="lead"><?php echo app('translator')->getFromJson('backend.no-sitemap-detected'); ?></p>
              </div>
            <?php endif; ?>
          </div>
          <div class="alert alert-info"><?php echo app('translator')->getFromJson('backend.generate-sitemap-at'); ?> <strong><a href="https://www.xml-sitemaps.com/" target="_blank">www.xml-sitemaps.com</a></strong></div>
          <hr/>
          <?php echo Form::label('sitemap_file', __('backend.upload-a-sitemap'),['class'=>'control-label btn btn-primary btn-outlined']); ?>

          <div class="">
            <?php echo Form::file('sitemap_file',['class'=>'form-control','style'=>'display:none']); ?>

            <br>
                            <div class="upload-rules text-left">
                                <ul>
                                    <li><?php echo app('translator')->getFromJson('backend.file-type'); ?> : <strong>*.xml</strong></li>
                                </ul>
                            </div>
          </div>
        </div>

        <div class="col-xs-12 text-right">
          <button type="submit" class="btn btn-primary"><?php echo app('translator')->getFromJson('backend.update'); ?></button>
        </div>

      </form>

    </div>
  </div>