<!-- Modal ADD Branch -->
<div class="modal fade" id="md_inventory_report" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('route' => 'report.inventory', 'class' => 'cls_form')) }}
  <div class="modal-dialog modal-md" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Inventory Report</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-6">
            <label class="label-color"> Select {{ucwords(str_replace('_',' ',$branch_labels['module']))}}:</label>
            <small class="form-errors pull-right" value="">{{ $errors->first($branch_labels['module'],":message") }}</small>
            <div class="input-group mb-3">
              <select name="{{$branch_labels['module']}}" class="form-control form-control-sm">
                <option value="{{Crypt::encrypt(0)}}">Select {{ucwords($branch_labels['module'])}}</option>
                @foreach($branch_list as $rows)
                  <option value="{{Crypt::encrypt($rows->id)}}">{{ucfirst($rows->name)}}
                  </option>
                @endforeach
              </select>
            </div>
          </div>

          <div class="col-sm-6">
            <label class="label-color"> Select Type:</label>
            <small class="form-errors pull-right" value="">{{ $errors->first('type',":message") }}</small>
            <div class="input-group mb-3">
              <select name="type" class="form-control form-control-sm">
                <option value="{{Crypt::encrypt(0)}}">Select type</option>
                @foreach($type_list as $rows)
                  <option value="{{Crypt::encrypt($rows->type)}}">{{ucfirst($rows->type)}}
                  </option>
                @endforeach
              </select>
            </div>
          </div>
        

          

          <div class="col-sm-6">
            <label class="label-color"> Select Category:</label>
            <small class="form-errors pull-right" value="">{{ $errors->first('category',":message") }}</small>
            <div class="input-group mb-3">
              <select name="category" class="form-control form-control-sm">
                <option value="{{Crypt::encrypt(0)}}">Select Category</option>
                @foreach($category_list as $rows)
                  <option value="{{Crypt::encrypt($rows->category)}}">{{ucfirst($rows->category)}}
                  </option>
                @endforeach
              </select>
            </div>
          </div>

          



          <div class="col-sm-6">
            <label class="label-color"> Select Size:</label>
            <small class="form-errors pull-right" value="">{{ $errors->first('size',":message") }}</small>
            <div class="input-group mb-3">
              <select name="size" class="form-control form-control-sm">
                <option value="{{Crypt::encrypt(0)}}">Select Size</option>
                @foreach($size_list as $rows)
                  <option value="{{Crypt::encrypt($rows->size)}}">{{ucfirst($rows->size)}}
                  </option>
                @endforeach
              </select>
            </div>
          </div>


          <div class="col-sm-12">
            <label class="label-color"> Select Status:</label>
            <small class="form-errors pull-right" value="">{{ $errors->first('status',":message") }}</small>
            <div class="input-group mb-3">
              <select name="status" class="form-control form-control-sm">
                <option value="{{Crypt::encrypt(0)}}">Select Status</option>
                @foreach($status_list as $rows)
                  <option value="{{Crypt::encrypt($rows->status)}}">{{ucfirst($rows->status)}}
                  </option>
                @endforeach
              </select>
            </div>
          </div>

         

          <div class="col-sm-12">
            <label class="label-color"> Select Format:</label>
            <small class="form-errors pull-right" value="">{{ $errors->first('format',":message") }}</small>
            <div class="input-group mb-3">
              <select name="format" class="form-control form-control-sm">
                <option value="0">PDF</option>
                <option value="1">EXCEL</option>

                
              </select>
            </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 cls_submit" content="generate inventory report">Generate</button>
      </div>
    </div>
  </div>
  {{ Form::close() }}
</div>
<!-- END MODAL ADD BRANCH -->