<div class="modal-dialog modal-lg" role="document">
  <div class="modal-content">
    {!! Form::open(['route' => 'bms.maintenance.store', 'method' => 'post', 'class' => 'bms-form']) !!}
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <h4 class="modal-title">@lang('bms::lang.new_request')</h4>
    </div>
    <div class="modal-body">
      <div class="form-group">
        {!! Form::label('title', __('bms::lang.title') . ':*') !!}
        {!! Form::text('title', null, ['class' => 'form-control', 'required', 'placeholder' => __('bms::lang.mnt_title_ph')]) !!}
      </div>
      <div class="row">
        <div class="col-md-6">
          <div class="form-group">
            {!! Form::label('hall_id', __('bms::lang.hall') . ':') !!}
            {!! Form::select('hall_id', $halls, null, ['class' => 'form-control', 'placeholder' => __('bms::lang.office_general')]) !!}
            <span class="help-block">@lang('bms::lang.mnt_target_hint')</span>
          </div>
        </div>
        <div class="col-md-6">
          <div class="form-group">
            {!! Form::label('location_id', __('bms::lang.office') . ':') !!}
            {!! Form::select('location_id', $locations, null, ['class' => 'form-control', 'placeholder' => __('messages.please_select')]) !!}
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-md-4">
          <div class="form-group">
            {!! Form::label('category', __('bms::lang.category') . ':') !!}
            {!! Form::select('category', $categories, 'other', ['class' => 'form-control']) !!}
          </div>
        </div>
        <div class="col-md-4">
          <div class="form-group">
            {!! Form::label('priority', __('bms::lang.priority') . ':*') !!}
            {!! Form::select('priority', $priorities, 'medium', ['class' => 'form-control', 'required']) !!}
          </div>
        </div>
        <div class="col-md-4">
          <div class="form-group">
            {!! Form::label('asset_id', __('bms::lang.affected_asset') . ':') !!}
            {!! Form::select('asset_id', $assets, null, ['class' => 'form-control', 'placeholder' => __('messages.please_select')]) !!}
          </div>
        </div>
      </div>
      <div class="form-group">
        {!! Form::label('assigned_to', __('bms::lang.assign_to') . ':') !!}
        {!! Form::select('assigned_to', $users, null, ['class' => 'form-control', 'placeholder' => __('bms::lang.unassigned')]) !!}
      </div>
      <div class="form-group">
        {!! Form::label('description', __('bms::lang.description') . ':') !!}
        {!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 3]) !!}
      </div>
    </div>
    <div class="modal-footer">
      <button type="submit" class="tw-dw-btn tw-dw-btn-primary tw-text-white">@lang('messages.save')</button>
      <button type="button" class="tw-dw-btn tw-dw-btn-neutral tw-text-white" data-dismiss="modal">@lang('messages.close')</button>
    </div>
    {!! Form::close() !!}
  </div>
</div>
