<div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Transfer Dealer</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <form method="post" action="{{route('dealer.transfer')}}">
        {{csrf_field()}}
      <div class="modal-body" style="height: 128px;">
        <input type="hidden" name="property_id" value="{{$property_id}}">
        <input type="hidden" name="dealer_id" value="{{$dealer_id}}">

        <div class="form-group form-group-sm">
            <div class="col-xs-4">
                <label>Dealers</label>
            </div>
            <div class="col-xs-8">
                <select class="form-control chosen-select" name="new_dealer_id">
                  @foreach($dealers as $d)
                  <option value="{{$d->id}}"> {{$d->name}}</option>
                  @endforeach
                </select>
            </div>
        </div>

        <div class="form-group form-group-sm">
            <div class="col-xs-4">
                <label>Rebate</label>
            </div>
            <div class="col-xs-8">
                <input type="text" id="rebate" name="rebate" value="{{$rebate}}">
            </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">Update</button>
      </div>
      </form>
    </div>
  </div>