<div class="modal-dialog modal-sm" style="width: 40%;" role="document">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close no-print" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h4 class="modal-title" id="modalTitle">Update Selling Quantity, Title: {{$title ?? '-'}}</h4>
		</div>
		<div class="modal-body">
      <form id="form-update-listing-qty">
        <input type="hidden" name="sku" id="sku" value="{{ $sku ?? '-' }}">
        <input type="hidden" name="sellerId" id="sellerId" value="{{ $store ?? '-' }}">
				@if($type == 'qty')
        <div class="col-lg-6">
          <div class="form-group">
            <label for="">Current Quantity</label>
            <input type="text" class="form-control" name="old_quantity" id="old_quantity" value="{{ $old_qty ?? 0 }}" readonly>
          </div>
        </div>
        <div class="col-lg-6">
          <div class="form-group">
            <label for="">Update Quantity</label>
            <input type="text" class="form-control" name="quantity" id="quantity">
          </div>
        </div>
				@elseif($type == 'price')
				<div class="col-lg-6">
          <div class="form-group">
            <label for="">Current Price</label>
            <input type="text" class="form-control" name="old_price" id="old_price" value="{{ $old_price ?? 0 }}" readonly>
          </div>
        </div>
        <div class="col-lg-6">
          <div class="form-group">
            <label for="">Update Price</label>
            <input type="text" class="form-control" name="price" id="price">
          </div>
        </div>
				@else 
				<div class="col-lg-6">
          <div class="form-group">
            <label for="">Current Condition</label>
            <input type="text" class="form-control" name="old_condition" id="old_condition" value="{{ $old_condition ?? 0 }}" readonly>
          </div>
        </div>
        <div class="col-lg-6">
          <div class="form-group">
            <label for="">Update Condition</label>
            <select class="form-control" name="condition" id="condition">
							<option value="">Choose Condition</option>
							<option value="used_like_new">USED_LIKE_NEW</option>
							<option value="used_very_good">USED_VERY_GOOD</option>
							<option value="used_good">USED_GOOD</option>
							<option value="used_acceptable">USED_ACCEPTABLE</option>
							<option value="collectible_like_new">COLLECTIBLE_LIKE_NEW</option>
							<option value="collectible_very_good">COLLECTIBLE_VERY_GOOD</option>
							<option value="collectible_good">COLLECTIBLE_GOOD</option>
							<option value="collectible_acceptable">COLLECTIBLE_ACCEPTABLE</option>
							<!-- <option value="new_not_used">NOT_USED</option> -->
							<option value="refurbished_refurbished">REFURBISHED</option>
							<option value="new_new">NEW</option>				
						</select>
          </div>
        </div>
				<div class="col-lg-12">
					<small style="color: red">*Please note that it may take 5-10 minutes for changes to reflect in you Amazon Seller Central account.</small>
				</div>
				@endif
      </form>
		</div>
		<div class="modal-footer">
			@if($type == 'qty')
			<button type="button" class="btn btn-primary no-print"
				aria-label="Print"
				onclick="updateListingQuantityApi(event)">
				<i class="fa fa-save"></i> @lang( 'messages.submit' )
			</button>
			@elseif($type == 'price')
			<button type="button" class="btn btn-primary no-print"
				aria-label="Print"
				onclick="updateListingPriceApi(event)">
				<i class="fa fa-save"></i> @lang( 'messages.submit' )
			</button>
			@else
			<button type="button" class="btn btn-primary no-print"
				aria-label="Print"
				onclick="updateListingConditionApi(event)">
				<i class="fa fa-save"></i> @lang( 'messages.submit' )
			</button>
			@endif
			<button type="button" class="btn btn-default no-print" data-dismiss="modal">@lang( 'messages.close' )</button>
		</div>
	</div>
</div>