
<?php $__env->startPush('title'); ?>
    <?php echo e(__('Create Ticket')); ?>

<?php $__env->stopPush(); ?>

<?php $__env->startPush('style'); ?>
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('common/css/summernote/summernote.min.css')); ?>"/>
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('common/css/summernote/summernote-lite.min.css')); ?>"/>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>

    <!-- hero area start -->
    <section class="breadcrumb-section bg-main-color py-30 py-sm-150">
        <div class="breadcrumb-content">
            <h4 class="title"><?php echo e($pageTitle); ?></h4>
            <ol class="breadcrumb sf-inner-breadcrumb justify-content-center">
                <li class="breadcrumb-item"><a href="<?php echo e(route('frontend')); ?>"><?php echo e(__("Home")); ?></a></li>
                <li class="breadcrumb-item active"><a href=""><?php echo e($pageTitle); ?></a></li>
            </ol>
        </div>
    </section>
    <!-- hero area end -->

    <!-- Create Ticket start-->
    <section class="py-sm-150 py-31 position-relative z-1">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="create-ticket">
                        <form action="<?php echo e(route('ticket.guest-ticket-submit')); ?>" method="post" class="form-horizontal"
                            enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            <div class="row rg-24">
                                <input type="hidden" name="guest" value="1">
                                <div class="col-md-6">
                                    <div class="user-info-from">
                                        <label class="zForm-label"><?php echo e(__("Subject")); ?> <span>*</span></label>
                                        <input type="text" placeholder="<?php echo e(__("Subject")); ?>" class="zForm-control" name="subject">
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="user-info-from">
                                        <label class="zForm-label w-100"><?php echo e(__("Category")); ?> <span>*</span></label>
                                        <select id="" class="form-select zForm-control" name="category">
                                            <option><?php echo e(__('Select Category')); ?></option>
                                            <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($item->id); ?>"><?php echo e($item->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                    </div>
                                </div>

                                <?php if(count($dynamicFields) > 0): ?>
                                    <div class="col-12">
                                        <?php $__currentLoopData = $dynamicFields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="zi-lg-w-100"
                                                style="width: <?php echo e($field->width != null ? $field->width : 100); ?>%;">
                                                <div class="user-info-from">
                                                    <?php if($field->type == TEXT_FIELD_ID): ?>
                                                        <label class="zForm-label"><?php echo e($field->level); ?> <span><?php echo e($field->required == REQUIRED_YES ? '*' : ''); ?></span></label>
                                                        <input type="text" placeholder="<?php echo e($field->placeholder); ?>" class="zForm-control" name="<?php echo e($field->name); ?>">
                                                    <?php elseif($field->type == TEXTAREA_FIELD_ID): ?>
                                                        <label class="zForm-label"><?php echo e($field->level); ?> <span><?php echo e($field->required == REQUIRED_YES ? '*' : ''); ?></span></label>
                                                        <textarea class="zForm-control mb-3 text-h" placeholder="<?php echo e($field->placeholder); ?>" name="<?php echo e($field->name); ?>"></textarea>
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                <?php endif; ?>


                                <?php if($envato?->enable_purchase_code == 1): ?>
                                    <div class="col-lg-6">
                                        <div class="user-info-from">
                                            <label class="zForm-label"><?php echo e(__('Purchase Code')); ?> <span>*</span></label>
                                            <input type="text" placeholder="8c3b8f37-34bd-4d4c-71da-331abb35ecc9" class="zForm-control" name="purchase_code">
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <div class="col-lg-6">
                                    <div class="user-info-from">
                                        <label class="zForm-label"><?php echo e(__('Email')); ?> <span>*</span></label>
                                        <input type="text" placeholder="example@email.com" class="zForm-control" name="email">
                                    </div>
                                </div>

                                <div class="col-12">
                                    <div class="user-info-from">
                                        <label class="zForm-label"><?php echo e(__('Description')); ?> <span>*</span></label>
                                        <textarea class="zForm-control" placeholder=" Massage" name="details"></textarea>
                                    </div>
                                </div>

                                <div class="col-12">
                                    <div class="file-upload">
                                        <div class="ticket-upload-box pb-12">
                                            <div class="ticket-upload-btn-box">
                                                <p class="fs-15 fw-600 lh-24 text-para-text pb-12"><?php echo e(__("Upload file (JPG, JPEG, PNG, ZIP, MP4, GIF, DOC)")); ?></p>
                                                <div class="choose-file-border file-upload-one">
                                                    <label class="upload__btn" for="ticket-upload-img">
                                                        <p class="fs-12 fw-500 lh-16 text-para-text"><?php echo e(__('Choose files to upload')); ?></p>
                                                        <p class="fs-12 fw-500 lh-16 text-white browse-file"><?php echo e(__('Browse File')); ?></p>
                                                    </label>
                                                    <input type="file" multiple="" data-max_length="20" id="ticket-upload-img"
                                                           name="file[]" class="ticket-img-input d-none">
                                                </div>
                                            </div>
                                            <div class="ticket-upload-img-wrap"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="agree-box align-items-start">
                                <div class="agree-left zForm-wrap-checkbox">
                                    <input type="checkbox" id="service">
                                    <label for="service"> <?php echo e(__('I agree with')); ?> <a href="<?php echo e(route('terms.of.use.index')); ?>" target="__blank"  class="text-main-color text-decoration-underline"><?php echo e(__('Terms & Service')); ?></a></label>
                                </div>
                                <button id="submit-btn" class="border-0 bg-main-color py-8 px-26 bd-ra-8 fs-15 fw-600 lh-25 text-white mt-25" disabled="disabled"><?php echo e(__('Create Ticket')); ?></button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- Create Ticket end-->

<?php $__env->stopSection(); ?>


<?php $__env->startPush('script'); ?>
    <script src="<?php echo e(asset('common/js/summernote/summernote-lite.min.js')); ?>"></script>
    <script src="<?php echo e(asset('admin/js/custom/summernote-init.js')); ?>"></script>
    <script src="<?php echo e(asset('customer/assets/js/custom/tickets.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('tenant.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home6/metawebd/metagrievance.metawebdevelopment.cloud/resources/views/customer/tickets/guest_create_ticket.blade.php ENDPATH**/ ?>