
<?php $__env->startSection('title'); ?>
    <?php echo e(get_label('create_ticket', 'Create Ticket')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="container-fluid">
        <div class="row mt-4">
            <div class="col-12">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb breadcrumb-style1">
                        <li class="breadcrumb-item">
                            <a href="<?php echo e(route('home.index')); ?>" class="text-decoration-none">
                                <i class="bi bi-house-door"></i> <?php echo e(get_label('home', 'Home')); ?>

                            </a>
                        </li>
                        <li class="breadcrumb-item">
                            <a href="<?php echo e(route('support.index')); ?>" class="text-decoration-none">
                                <i class="bi bi-life-preserver"></i> <?php echo e(get_label('support', 'Support')); ?>

                            </a>
                        </li>
                        <li class="breadcrumb-item active">
                            <?php echo e(get_label('create_ticket', 'Create Ticket')); ?>

                        </li>
                    </ol>
                </nav>
            </div>
        </div>
        <div class="card border-0 shadow-sm">
            <div class="card-header">
                <h4 class="mb-0">
                    <i class="bi bi-ticket-detailed me-2"></i><?php echo e(get_label('create_new_ticket', 'Create New Ticket')); ?>

                </h4>
            </div>
            <div class="card-body">
                <form class="form-submit-event" action="<?php echo e(route('support.store')); ?>" method="POST"
                    enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="redirect_url" value="<?php echo e(route('support.index')); ?>">
                    <div class="mb-4">
                        <label for="title" class="form-label fw-bold"><?php echo e(get_label('title', 'Title')); ?></label>
                        <input type="text" class="form-control <?php $__errorArgs = ['title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="title"
                            name="title" value="<?php echo e(old('title')); ?>" required>
                        <?php $__errorArgs = ['title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="mb-4">
                        <label for="description"
                            class="form-label fw-bold"><?php echo e(get_label('description', 'Description')); ?></label>
                        <textarea class="form-control <?php $__errorArgs = ['description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="description" name="description"
                            rows="5" required><?php echo e(old('description')); ?></textarea>
                        <?php $__errorArgs = ['description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="row">
                        <div class="col-md-6 mb-4">
                            <label for="priority"
                                class="form-label fw-bold"><?php echo e(get_label('priority', 'Priority')); ?></label>
                            <select class="form-select <?php $__errorArgs = ['priority_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="priority"
                                name="priority_id" required>
                                <option value="" disabled selected>
                                    <?php echo e(get_label('select_priorities', 'Select Priorities')); ?></option>
                                <?php $__currentLoopData = $ticket_priorities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $priority): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($priority->id); ?>"
                                        <?php echo e(old('priority_id') == $priority->id ? 'selected' : ''); ?>>
                                        <?php echo e(ucfirst($priority->name)); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            <?php $__errorArgs = ['priority_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="invalid-feedback"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>

                    </div>
                    <div class="mb-4">
                        <label for="media" class="form-label fw-bold"><?php echo e(get_label('media', 'Attach Media')); ?></label>
                        <input type="file" class="form-control <?php $__errorArgs = ['media.*'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="media"
                            name="media[]" accept="image/jpeg,image/png,image/jpg,image/gif,image/svg,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"  multiple>
                        <span
                            class="form-text text-muted"><?php echo e(get_label('media_help', 'You can attach multiple files. Allowed file types: jpeg,png,jpg,gif,svg,pdf,doc,docx.')); ?></span>
                        <?php $__errorArgs = ['media.*'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="invalid-feedback"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="d-grid gap-2">
                        <button type="submit" class="btn btn-primary btn-lg">
                            <i class="bi bi-send me-2"></i><?php echo e(get_label('submit_ticket', 'Submit Ticket')); ?>

                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>

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

<?php echo $__env->make('layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/infinitie/Prashant/Taskify SaaS/Taskify SaaS v2.0.2 - Project Management -Task Management & Productivity Tool/Taskify SaaS Fresh Install & Files v2.0.2/Code v2.0.2 upload this on server/resources/views/support/create.blade.php ENDPATH**/ ?>