<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 {{ ucfirst($type) }}, Title: {{$data->title ?? '-'}}</h4>
		</div>
		<div class="modal-body">
      <form id="form-update-product-shopify">
        <input type="hidden" name="sku" id="sku" value="{{ $sku ?? '-' }}">
				@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="{{ $data->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="{{ $data->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>				
				@endif
				<div class="col-lg-12">
					<small style="color: red">*Please note that it may take 30 seconds until 2 minutes for changes to reflect in your shopify account.</small>
				</div>
      </form>
		</div>
		<div class="modal-footer">
			@if($type == 'qty')
			<button type="button" class="btn btn-primary no-print"
				aria-label="Print"
				onclick="updateQuantityApi(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="updatePriceApi(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>