<?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>Edit Email 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.templates.update')); ?>" method="post">
                <?php echo csrf_field(); ?>
                <div class="card-body">
                  <div class="form-group">
                    <label>Name</label>
                    <input type="text" class="form-control" name="name" value="<?php echo e(old('name', $emailTemplate->name)); ?>" placeholder="Name">
                    <input type="hidden" class="form-control" name="email_template_id" value="<?php echo e($emailTemplate->id); ?>">
                  </div>
                  <div class="form-group">
                    <label>Slug</label>
                    <input type="text" class="form-control" name="slug" value="<?php echo e(old('slug', $emailTemplate->slug)); ?>" placeholder="Slug" readonly>
                  </div>
                  <div class="form-group">
                    <label>Subject</label>
                    <input type="text" class="form-control" name="subject" value="<?php echo e(old('subject', $emailTemplate->subject)); ?>" placeholder="Subject">
                  </div>
                  <div class="form-group">
                        <label>Email Body</label>
                        <textarea
                          name="content"
                          class="form-control"
                          rows="5"
                        >
                          <?php echo old('content', $emailTemplate->content ?? ''); ?>

                        </textarea>
                      </div>
                </div>
                <div class="card-footer">
                  <button type="submit" class="btn btn-primary">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( 'content' , {
      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\miniOTTSports\resources\views/backend/admin/email_templates/edit.blade.php ENDPATH**/ ?>