<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.user.layout','data' => ['title' => ''.e(auth()->user()->firstname.' '.auth()->user()->lastname).' | Open Ticket - '.e(config('settings.site_name')).'']] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('user.layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => ''.e(auth()->user()->firstname.' '.auth()->user()->lastname).' | Open Ticket - '.e(config('settings.site_name')).'']); ?>

    <div class="row">
        <div class="col-10 mx-auto">
            <div class="card h-100">
                <div class="card-inner">
                    <div class="card-title border-bottom d-flex justify-content-between mb-3">
                        <div><h6 class="title">Support Tickets</h6></div>
                        <div><a href="<?php echo e(route('user.tickets')); ?>" class="btn btn-primary btn-sm" ><em class="icon ni ni-ticket-plus"></em> My Tickets</a></div>
                    </div>

                    <?php if($errors->any()): ?>
                        <div class="form-group">
                            <div class="alert alert-danger">
                                <em class="icon ni ni-alert-circle"></em>
                                <strong><?php echo e($errors->first()); ?></strong>
                            </div>
                        </div>
                    <?php endif; ?>

                    <form class="form-validate is-alter" novalidate="novalidate" method="POST" id="formData">
                        <?php echo csrf_field(); ?>
                        <div class="row g-gs">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="form-label">Department</label>
                                    <div class="form-control-wrap">
                                        <select class="form-control form-select" id="department" name="department">
                                            <option <?php if(old('department')=='General'): ?> selected <?php endif; ?>>General</option>
                                            <option <?php if(old('department')=='Account & Billing'): ?> selected <?php endif; ?>>Account &amp; Billing</option>
                                            <option <?php if(old('department')=='Security'): ?> selected <?php endif; ?>>Security</option>
                                            <option <?php if(old('department')=='Technical'): ?> selected <?php endif; ?>>Technical</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="form-label" for="fva-subject">Subject</label>
                                    <div class="form-control-wrap">
                                        <input type="text" class="form-control" id="subject" name="subject" value="<?php echo e(old('subject')); ?>" placeholder="Enter subject" >
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label class="form-label" for="message">Message</label>
                                    <div class="form-control-wrap">
                                        <textarea class="form-control tinymce-basic form-control-sm" id="message" name="message" placeholder="Write your complaint" ><?php echo e(old('message')); ?></textarea>
                                    </div>
                                </div>
                            </div>
                            <div class="nk-pps-field form-action text-center">
                                <div class="nk-pps-action">
                                    <button class="btn btn-block btn-primary buttonClick">
                                        <span>Open Ticket</span>
                                        <span class="spinner-border spinner-border-sm hide button-spinner" style="display: none;" role="status" aria-hidden="true"></span>
                                    </button>
                                </div>
                            </div>
                            
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>


 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php /**PATH /home/fivemill/secure.fivemillionmiles.net/resources/views/user/open-ticket.blade.php ENDPATH**/ ?>