<div class="ticket-form">
    <?php echo e(Form::open([
        'route' => 'create.ticket', 
        'method' => 'post', 
        'id' => 'createTicket', 
        'enctype' => 'multipart/form-data'
    ])); ?>


        <div class="form-group subject-group">

            <?php echo e(Form::text('subject', null, ['class' => 'form-control subject', 'placeholder' => 'Subject' ])); ?>

            <span class="help-block "></span>

        </div>

        <div class="form-group department-group">

            <select name="department_id" class="form-control department" >
                <option disabled  selected value>What type of support you want?</option>
                <?php foreach($departments as $department): ?>
                    <option value="<?php echo e($department->id); ?>"> <?php echo e($department->name); ?> </option>
                <?php endforeach; ?>
            </select>
            <span class="help-block"></span>

        </div>


        <div class="form-group message-group">

            <?php echo e(Form::textarea('message', null, ['class' => 'form-control message', 'placeholder' => 'Type your message here', 'wrap' => 'hard', 'onkeyup' => 'autoGrow(this);' ])); ?>

            <span class="help-block"></span>

        </div>


