<?php $__env->startSection('content'); ?>
  <div class="content-wrapper">
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="textWhite">Email Global Template</h1>
          </div>
        </div>
      </div>
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-md-12">
            <div class="card">
              <form action="<?php echo e(route('admin.email.global-template.update')); ?>" method="post" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="card-body">
                  <div class="row">
                    <div class="col-md-6">
                      <div class="form-group">
                        <label>Email Header Logo</label>
                        <input type="file" class="form-control" name="email_header">
                      </div>
                      <?php if(!empty($emailGlobalTemplate->email_header)): ?>
                        <img src="<?php echo e(asset($emailGlobalTemplate->email_header)); ?>" style="height: 100px; width: 100px; margin-top: 10px;" alt="image">
                      <?php endif; ?>
                    </div>
                    <div class="col-md-6">
                      <div class="form-group">
                        <label>Email Footer</label>
                        <textarea
                          name="email_footer"
                          class="form-control"
                          rows="5"
                        >
                          <?php echo old('email_footer', $emailGlobalTemplate->email_footer ?? ''); ?>

                        </textarea>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="card-footer">
                  <button type="submit" class="btn btn-primary customButton">Update</button>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
  
  <script src="<?php echo e(asset('assets/backend/plugins/ckeditor/ckeditor.js')); ?>"></script>
  <script>
    var editor = CKEDITOR.replace( 'email_footer' , {
      toolbar: [
        { name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike'] },
        { name: 'paragraph', items: ['NumberedList', 'BulletedList'] },
        { name: 'links', items: ['Link', 'Unlink'] },
        { name: 'document', items: ['Source'] } // Source code view
      ],
      customConfig: "<?php echo e(asset('assets/backend/plugins/ckeditor/config.js')); ?>",
      removeButtons: 'Image',
      allowedContent: true,
    });
  </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\VPNCodeCanyon\resources\views/backend/admin/email_templates/email_global_template.blade.php ENDPATH**/ ?>