@if(Auth::user()->hasAnyPermission(['All','Update Inventory Bulk']))

<!-- Modal ADD Branch -->
<div class="modal fade" id="md_update_bulk" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  {{ Form::open(array('route' => 'inventory.bulkupdate', 'id' => 'form_update_bulk', 'class' => 'cls_form')) }}
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">{{ucwords(str_replace('_',' ',$plot_labels['module']))}} Bulk Update </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 Type:</label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('type',":message") }}</small>
            <div class="input-group mb-3">
              <select name="{{$plot_labels['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 req" value="*">{{ $errors->first('category',":message") }}</small>
            <div class="input-group mb-3">
              <select name="{{$plot_labels['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 Block:</label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('block',":message") }}</small>
            <div class="input-group mb-3">
              <select name="block" class="form-control form-control-sm">
                <option value="{{Crypt::encrypt(0)}}">Select Block</option>
                @foreach($block_list as $rows)
                  <option value="{{Crypt::encrypt($rows->block_name)}}">{{ucfirst($rows->block_name)}}
                  </option>
                @endforeach
              </select>
            </div>
          </div>
          --}}

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

          <div class="col-sm-6">
            <label class="label-color"> Select Floor:</label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('floor',":message") }}</small>
            <div class="input-group mb-3">
              <select name="{{$plot_labels['floor']}}" class="form-control form-control-sm">
                <option value="{{Crypt::encrypt(0)}}">Select Floor</option>
                @foreach($floor_list as $rows)
                  <option value="{{Crypt::encrypt($rows->floor)}}">{{ucfirst($rows->floor)}}
                  </option>
                @endforeach
              </select>
            </div>
          </div>
{{--
          <div class="col-sm-6">
            <label class="label-color"> Select Dimension:</label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first('dimension',":message") }}</small>
            <div class="input-group mb-3">
              <select name="dimension" class="form-control form-control-sm">
                <option value="{{Crypt::encrypt(0)}}">Select Dimension</option>
                @foreach($dimension_list as $rows)
                  <option value="{{Crypt::encrypt($rows->dimensions)}}">{{ucfirst($rows->dimensions)}}
                  </option>
                @endforeach
              </select>
            </div>

          </div>
--}}

         

         
          

           <div class="col-sm-12">
            <label class="label-color"> {{ucwords(str_replace('_',' ',$plot_labels['rate']))}}:</label>
            <small class="form-errors pull-right req" value="*">{{ $errors->first($plot_labels['rate'],":message") }}</small>
            <div class="input-group mb-3">
             
              {{Form::Text($plot_labels['rate'], '0', ['class' => 'form-control form-control-sm  cls_required', 'placeholder' => 'Inventory Rate' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
            </div>
           
          </div>
        </div>  
          </div>
        </div>
     
         
      </div>
      <div class="modal-footer">
        <input type="hidden" name="inventory" >
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-primary cls_submit" content="bulk update">Bulk Update</button>
      </div>
    </div>
  </div>
  {{ Form::close() }}
</div>
<!-- END MODAL ADD BRANCH -->
@endif