<div id="AddModal" class="modal fade" role="dialog">
    <div class="modal-dialog">
        <!-- Modal content-->
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">New Project</h5>
                <button type="button" aria-label="Close" class="close" data-dismiss="modal">×</button>
            </div>
            <?php echo Form::open(['id'=>'addNewForm']); ?>

            <div class="modal-body">
                <div class="alert alert-danger" style="display: none" id="validationErrorsBox"></div>
                <div class="row">
                    <div class="form-group col-sm-12">
                        <?php echo Form::label('name', 'Name'); ?><span class="required">*</span>
                        <?php echo Form::text('name', null, ['id'=>'name','class' => 'form-control','required']); ?>

                    </div>
                </div>
                <div class="row">
                    <div class="form-group col-sm-12">
                        <?php echo Form::label('prefix', 'Prefix'); ?><span class="required">*</span>
                        <?php echo Form::text('prefix', null, ['id'=>'prefix','class' => 'form-control','required','maxlength'=>'6','onkeypress'=>'return (event.charCode === 8 || (event.charCode >= 65 && event.charCode <= 90)||(event.charCode >= 95 && event.charCode <= 122))||(event.charCode === 0 || (event.charCode >= 48 && event.charCode <= 57))']); ?>

                    </div>
                </div>
                <div class="row">
                    <div class="form-group col-sm-12">
                        <?php echo Form::label('user_id', 'Users'); ?><span class="required">*</span>
                        <?php echo Form::select('user_ids[]', $users, null, ['id' => 'user_ids','class' => 'form-control', 'required', 'multiple']); ?>

                    </div>
                </div>
                <div class="row">
                    <div class="form-group col-sm-12">
                        <?php echo Form::label('client', 'Client'); ?><span class="required">*</span>
                        <?php echo Form::select('client_id', $clients, null, ['id'=>'client_id','class' => 'form-control', 'placeholder' => 'Select Client', 'required']); ?>

                    </div>
                </div>
                <div class="row">
                    <div class="form-group col-sm-12">
                        <?php echo Form::label('description', 'Description'); ?>

                        <?php echo Form::textarea('description', '', ['class' => 'form-control', 'rows' => 5]); ?>

                    </div>
                </div>
                <div class="text-right">
                    <?php echo Form::button('Save', ['type'=>'submit','class' => 'btn btn-primary','id'=>'btnSave','data-loading-text'=>"<span class='spinner-border spinner-border-sm'></span> Processing..."]); ?>

                    <button type="button" id="btnCancel" class="btn btn-light" data-dismiss="modal">Cancel</button>
                </div>
            </div>
            <?php echo Form::close(); ?>

        </div>
    </div>
</div>
<?php /**PATH /Users/dev/Documents/WebDevProjects/infy-tracker/resources/views/projects/modal.blade.php ENDPATH**/ ?>