HEX
Server: LiteSpeed
System: Linux sv4.hami.host 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: armgroup (1008)
PHP: 8.2.32
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, mail, socket_create, socket_create_listen, socket_create_pair, link, dl, openlog, syslog, stream_socket_server, curl_multi_init
Upload Files
File: /home/armgroup/libs/storage/framework/views/3948c07dac102d08a31d5d57a57a45fc64c313f1.php
<div>
    <?php echo $__env->make('layouts.errors', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <form role="form" wire:submit.prevent="store">
        <div class="row">
            <div class="form-group col-md-6">
                <label for="priority"><?php echo e(__('Priority')); ?> *</label>
                <select class="form-control form-select" id="priority" autofocus required wire:model.defer="priority">
                    <?php $__currentLoopData = \App\Enums\TicketPriority::getInstances(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $enum): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($enum->value); ?>"><?php echo e($enum->description); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
            <div class="form-group col-md-6">
                <label for="title"><?php echo e(__('Title')); ?> *</label>
                <input type="text" class="form-control" required id="title" wire:model.defer="title">
            </div>
        </div>
        <div class="row">
            <div class="form-group col-md-12">
                <label for="ticketMessage"><?php echo e(__('Message')); ?> *</label>
                <textarea class="form-control" id="ticketMessage" required wire:model.defer="ticketMessage" rows="5"></textarea>
            </div>
        </div>
        <table class="table table-hover mt-2">
            <small class="text-muted">* <?php echo e(__('You can upload 5 files with doc, pdf, docx, zip, jpg, png, jpeg formats max 2 MB by clicking the Add attachment button.')); ?></small>
            <thead>
            <tr>
                <th><?php echo e(__('File name')); ?> *</th>
                <th><?php echo e(__('File')); ?> *</th>
                <th><?php echo e(__('Actions')); ?></th>
            </tr>
            </thead>
            <tbody>
            <?php if(count($items)): ?>
                <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td>
                            <input type="text" class="form-control" wire:model.defer="items.<?php echo e($index); ?>.name" required>
                        </td>
                        <td>
                            <input type="file" class="form-control" wire:model.defer="items.<?php echo e($index); ?>.path" required>
                        </td>
                        <td>
                            <button type="button" class="btn btn-danger btn-sm" wire:click="removeItem(<?php echo e($index); ?>)">
                                <span class="fa fa-trash"></span> <?php echo e(__('Delete')); ?>

                            </button>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>
            </tbody>
            <?php if(count($items) < 5): ?>
                <tfoot>
                <tr>
                    <td colspan="2"></td>
                    <td>
                        <button type="button" id="add-item" class="btn btn-success btn-sm" wire:click="addItem"><span class="fa fa-plus"></span> <?php echo e(__('Add attachment')); ?></button>
                    </td>
                </tr>
                </tfoot>
            <?php endif; ?>
        </table>
        <button type="submit" class="btn btn-primary"><?php echo e(__('Save')); ?></button>
        <a href="<?php echo e(route('account.tickets.index')); ?>" class="btn btn-danger float-end"><?php echo e(__('Cancel')); ?></a>
    </form>
</div>
<?php /**PATH /home/masomi/armshop/resources/views/livewire/account/ticket/create.blade.php ENDPATH**/ ?>