{{-- "Add review item" modal form. --}}
<div class="modal-dialog" role="document">
  <div class="modal-content">
    <form class="medwf-form" action="{{ route('medwf.compliance.review.store') }}" method="POST">
      {{ csrf_field() }}
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">@lang('medworkforce::lang.add_review')</h4>
      </div>
      <div class="modal-body">
        <div class="row">
          <div class="col-md-6 form-group">
            <label>@lang('medworkforce::lang.staff') *</label>
            <select name="user_id" class="form-control" required>
              @foreach($staff as $id => $name)
                <option value="{{ $id }}" @selected($userId === (int) $id)>{{ $name }}</option>
              @endforeach
            </select>
          </div>
          <div class="col-md-6 form-group">
            <label>@lang('medworkforce::lang.item_type') *</label>
            <select name="item_type" class="form-control" required>
              @foreach($itemTypes as $type)
                <option value="{{ $type }}">@lang('medworkforce::lang.item_type_' . $type)</option>
              @endforeach
            </select>
          </div>
        </div>

        <div class="form-group">
          <label>@lang('medworkforce::lang.title') *</label>
          <input type="text" name="title" class="form-control" maxlength="191" required>
        </div>

        <div class="row">
          <div class="col-md-4 form-group">
            <label>@lang('medworkforce::lang.due_date')</label>
            <input type="date" name="due_date" class="form-control">
          </div>
          <div class="col-md-4 form-group">
            <label>@lang('medworkforce::lang.completed_date')</label>
            <input type="date" name="completed_date" class="form-control">
          </div>
          <div class="col-md-4 form-group">
            <label>@lang('medworkforce::lang.status') *</label>
            <select name="status" class="form-control" required>
              @foreach($statuses as $st)
                <option value="{{ $st }}">@lang('medworkforce::lang.review_status_' . $st)</option>
              @endforeach
            </select>
          </div>
        </div>

        <div class="form-group">
          <label>@lang('medworkforce::lang.notes')</label>
          <input type="text" name="notes" class="form-control" maxlength="500">
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">@lang('medworkforce::lang.cancel')</button>
        <button type="submit" class="btn btn-primary">@lang('medworkforce::lang.save')</button>
      </div>
    </form>
  </div>
</div>
