<!-- Modal ADD Branch -->

<div class="modal fade" id="md_add_category" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('route' => 'commit_category', 'id' => 'form_add_bill_category', 'class' => 'cls_form' , 'method' => 'POST' , 'enctype'=>'multipart/form-data'
)) }}
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Create Category</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <div class="modal-body ">
        <div class ="card">
          <div class = "card-body form-fieldset">
          <div class="row">

            <div class="col-sm-12">
            <label class="label-color"> Expense type: <i style = "color:red;">*</i></label>
            <div class="input-group mb-3">

              <input type="text" value="{{$selected}}" readonly="" name="expense_type" class="form-control" required id="expense_type">
               
{{--
              <select name="expense_type" class="form-control" required id="expense_type">
                @foreach($billexpensetypes as $type)
                <option @if(trim($selected) === $type)  selected @endif value="{{$type}}">{{$type}}</option>
                @endforeach
              </select>
--}}
            </div>
            </div>

            <div class="col-sm-12">
            <label class="label-color"> Name: <i style = "color:red;">*</i></label>
            <div class="input-group mb-3">
              <input type="text" name="name" class="form-control " required id="name" />
            </div>
            </div>

        </div>
          </div>
        </div>
      </div>

      <div class="modal-footer">

        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>

        <button type="submit" class="btn btn-primary"   content="create ballot">Create Category </button>

      </div>
      {{ Form::close() }}
    </div>
  </div>

</div>

<!-- END MODAL ADD BRANCH -->
