<?php $__env->startSection('content'); ?>
  <div class="page-header">
    <h4 class="page-title"><?php echo e(__('Edit Ticket Settings')); ?></h4>
    <ul class="breadcrumbs">
      <li class="nav-home">
        <a href="<?php echo e(route('organizer.dashboard')); ?>">
          <i class="flaticon-home"></i>
        </a>
      </li>
      <li class="separator">
        <i class="flaticon-right-arrow"></i>
      </li>
      <li class="nav-item">
        <a href="#"><?php echo e(__('Event Management')); ?></a>
      </li>
      <li class="separator">
        <i class="flaticon-right-arrow"></i>
      </li>
      <li class="nav-item">
        <a
          href="<?php echo e(route('admin.event_management.event', ['language' => $defaultLang->code])); ?>"><?php echo e(__('All Events')); ?></a>
      </li>
      <li class="separator">
        <i class="flaticon-right-arrow"></i>
      </li>

      <?php
        $event_title = DB::table('event_contents')
            ->where('language_id', $defaultLang->id)
            ->where('event_id', $event->id)
            ->select('title')
            ->first();

      ?>
      <li class="nav-item">
        <a href="#">
          <?php echo e(strlen($event_title->title) > 35 ? mb_substr($event_title->title, 0, 35, 'UTF-8') . '...' : $event_title->title); ?>

        </a>

      </li>
      <li class="separator">
        <i class="flaticon-right-arrow"></i>
      </li>

      <li class="nav-item">
        <a href="#"><?php echo e(__('Edit Ticket Settings')); ?></a>
      </li>
    </ul>
  </div>

  <div class="row">
    <div class="col-md-12">
      <div class="card">
        <div class="card-header">
          <div class="card-title d-inline-block"><?php echo e(__('Edit Ticket Settings')); ?></div>
        </div>

        <div class="card-body">
          <div class="row">
            <div class="col-lg-8 offset-lg-2">
              <form id="ajaxEditForm" action="<?php echo e(route('organizer.event_management.update_ticket_setting')); ?>"
                method="POST" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <input type="hidden" name="event_id" value="<?php echo e($event->id); ?>">
                <!--------- cover & map image-->
                <div class="row">
                  <div class="col-md-12">
                    <div class="form-group">
                      <label for=""><?php echo e(__('Ticket Image')); ?> </label>
                      <br>
                      <div class="thumb-preview">
                        <img
                          src="<?php echo e($event->ticket_image ? asset('assets/admin/img/event_ticket/' . $event->ticket_image) : asset('assets/admin/img/noimage.jpg')); ?>"
                          alt="..." class="uploaded-img2">
                      </div>
                      <div class="mt-3">
                        <div role="button" class="btn btn-primary btn-sm upload-btn">
                          <?php echo e(__('Choose Image')); ?>

                          <input type="file" class="img-input2" name="ticket_image">
                        </div>
                      </div>
                      <p id="editErr_ticket_image" class="mt-1 mb-0 text-danger em"></p>
                      <p class="mt-2 mb-0 text-warning"><?php echo e(__('Best Size 255x390')); ?></p>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <label for=""><?php echo e(__('Ticket Logo')); ?> </label>
                      <br>
                      <div class="thumb-preview">
                        <img
                          src="<?php echo e($event->ticket_logo ? asset('assets/admin/img/event_ticket_logo/' . $event->ticket_logo) : asset('assets/admin/img/noimage.jpg')); ?>"
                          alt="..." class="uploaded-img">
                      </div>
                      <div class="mt-3">
                        <div role="button" class="btn btn-primary btn-sm upload-btn">
                          <?php echo e(__('Choose Image')); ?>

                          <input type="file" class="img-input" name="ticket_logo">
                        </div>
                      </div>
                      <p id="editErr_ticket_logo" class="mt-1 mb-0 text-danger em"></p>
                      <p class="mt-2 mb-0 text-warning"><?php echo e(__('Best Size 200*50')); ?></p>
                    </div>
                  </div>

                  <div class="col-md-12">
                    <div class="form-group">
                      <label><?php echo e(__('Instructions')); ?></label>
                      <textarea id="descriptionTmce" class="form-control summernote" name="instructions"
                        placeholder="<?php echo e(__('Enter Instructions')); ?>" data-height="300"> <?php echo e($event->instructions); ?></textarea>
                    </div>
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>

        <div class="card-footer">
          <div class="row">
            <div class="col-12 text-center">
              <button type="submit" id="updateBtn" class="btn btn-primary">
                <?php echo e(__('Update')); ?>

              </button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
  <?php
    $languages = App\Models\Language::get();
  ?>
  <script>
    let languages = "<?php echo e($languages); ?>";
  </script>
  <script type="text/javascript" src="<?php echo e(asset('assets/admin/js/admin-partial.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/admin/js/admin_dropzone.js')); ?>"></script>
  <script>
    $(document).ready(function() {
      $('.js-example-basic-single').select2();
    });
  </script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('variables'); ?>
  <script>
    "use strict";
    var storeUrl = "<?php echo e(route('organizer.event.imagesstore')); ?>";
    var removeUrl = "<?php echo e(route('organizer.event.imagermv')); ?>";

    var rmvdbUrl = "<?php echo e(route('organizer.event.imgdbrmv')); ?>";
    var loadImgs = "<?php echo e(route('organizer.event.images', $event->id)); ?>";
  </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('organizer.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ysakkarj/events.theend.africa/resources/views/organizer/event/ticket-settings.blade.php ENDPATH**/ ?>