
@extends('layouts/contentLayoutMaster')

@section('title', 'Number Input')

@section('vendor-style')
        <!-- vednor css files -->
        <link rel="stylesheet" href="{{ asset(mix('vendors/css/forms/spinner/jquery.bootstrap-touchspin.css')) }}">
@endsection
@section('content')
<!-- Bootstrap TouchSpin Spinners start -->
<section id="basic-touchspin">
  <div class="row">
    <div class="col-12">
      <div class="card">
        <div class="card-header">
          <h4 class="card-title"> Touchspin</h4>
        </div>
        <div class="card-content">
          <div class="card-body">
            <div class="row">
                <div class="col-12">
                    <p>Add <code>.touchspin</code> class with input tag to add touchspin input group. Add <code>.disabled-touchspin</code> class and add attribute <code>disabled</code> with <code>input</code> tag to add disabled touchspin input group.</p>
                </div>
                <div class="d-inline-block mb-1">
                    <div class="input-group">
                        <input type="number" class="touchspin" value="50">
                    </div>
                </div>
                <div class="d-inline-block mb-1">
                    <div class="input-group disabled-touchspin">
                        <input type="number" class="touchspin" value="50" disabled>
                    </div>
                </div>
                <div class="d-inline-block mb-1">
                    <div class="input-group">
                        <input type="number" class="touchspin-icon" value="50">
                    </div>
                </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<!-- Bootstrap TouchSpin Spinners end -->

<!-- Bootstrap TouchSpin Spinners Size start -->
<section id="touchspin-size">
  <div class="row">
    <div class="col-12">
      <div class="card">
        <div class="card-header">
          <h4 class="card-title">Size</h4>
        </div>
        <div class="card-content">
          <div class="card-body">
            <div class="row">
                <div class="col-12">
                    <p>Add <code>.input-group-lg</code> and <code>.input-group-sm</code> class for touchspin large and small respectively.</p>
                </div>
                <div class="d-flex align-items-center mb-1">
                    <div class="input-group input-group-lg">
                        <input type="number" class="touchspin" value="50">
                    </div>
                </div>
                <div class="d-flex align-items-center mb-1">
                    <div class="input-group">
                        <input type="number" class="touchspin" value="50">
                    </div>
                </div>
                <div class="d-flex align-items-center mb-1">
                    <div class="input-group input-group-sm">
                        <input type="number" class="touchspin" value="50">
                    </div>
                </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<!-- Bootstrap TouchSpin Spinners end -->

<!-- Bootstrap TouchSpin Spinners Decimal start -->
<section id="touchspin-decimal">
  <div class="row">
    <div class="col-12">
      <div class="card">
        <div class="card-header">
          <h4 class="card-title">Decimal</h4>
        </div>
        <div class="card-content">
          <div class="card-body">
            <div class="row">
                <div class="col-12">
                    <p>Set <code>data-bts-step</code> and <code>data-bts-decimals</code> attributes for decimal type Input Touchspin.</p>
                </div>
                <div class="input-group">
                    <input type="text" class="touchspin" value="50" data-bts-step="0.5" data-bts-decimals="2">
                </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<!-- Bootstrap TouchSpin Spinners Decimal end -->

<!-- Bootstrap TouchSpin Spinners Min-max start -->
<section id="touchspin-min-max">
  <div class="row">
    <div class="col-12">
      <div class="card">
        <div class="card-header">
          <h4 class="card-title">Min - Max</h4>
        </div>
        <div class="card-content">
          <div class="card-body">
            <div class="row">
                <div class="col-12">
                    <p>Set <code>min</code> and <code>max</code> attributes values for minimum and maximum in page js file.</p>
                </div>
                <div class="input-group">
                    <input type="number" class="touchspin-min-max " value="19">
                </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<!-- Bootstrap TouchSpin Spinners Min - Max end -->

<!-- Bootstrap TouchSpin Spinners Step start -->
<section id="touchspin-step">
  <div class="row">
    <div class="col-12">
      <div class="card">
        <div class="card-header">
          <h4 class="card-title">Step</h4>
        </div>
        <div class="card-content">
          <div class="card-body">
            <div class="row">
                <div class="col-12">
                    <p>Set <code>step</code> attribute value in page js file.</p>
                </div>
                <div class="input-group">
                    <input type="number" class="touchspin-step" value="45">
                </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<!-- Bootstrap TouchSpin Spinners Min - Max end -->

<!-- Bootstrap TouchSpin Spinners Colors start -->
<section id="touchspin-colors">
  <div class="row">
    <div class="col-12">
      <div class="card">
        <div class="card-header">
          <h4 class="card-title">Colors Variation</h4>
        </div>
        <div class="card-content">
          <div class="card-body">
            <div class="row">
                <div class="col-12">
                   <p>set <code>data-bts-button-down-class</code> &amp; <code>data-bts-button-up-class</code> attribute and add value as <code>btn btn-{color}</code> for different colors spinner.</p>
                </div>
                <div class="d-inline-block mb-1">
                    <div class="input-group">
                        <input type="text" class="touchspin-color" value="60" data-bts-button-down-class="btn btn-primary"
                         data-bts-button-up-class="btn btn-primary" />
                    </div>
                </div>
                <div class="d-inline-block mb-1">
                    <div class="input-group">
                        <input type="text" class="touchspin-color" value="60" data-bts-button-down-class="btn btn-success"
                         data-bts-button-up-class="btn btn-success" />
                    </div>
                </div>
                <div class="d-inline-block mb-1">
                    <div class="input-group">
                        <input type="text" class="touchspin-color" value="60" data-bts-button-down-class="btn btn-warning"
                         data-bts-button-up-class="btn btn-warning" />
                    </div>
                </div>
                <div class="d-inline-block mb-1">
                    <div class="input-group">
                        <input type="text" class="touchspin-color" value="60" data-bts-button-down-class="btn btn-info"
                         data-bts-button-up-class="btn btn-info" />
                    </div>
                </div>
                <div class="d-inline-block mb-1">
                    <div class="input-group">
                        <input type="text" class="touchspin-color" value="60" data-bts-button-down-class="btn btn-danger"
                         data-bts-button-up-class="btn btn-danger" />
                    </div>
                </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<!-- Bootstrap TouchSpin Spinners Decimal end -->
@endsection

@section('vendor-script')
        <!-- vednor files -->
        <script src="{{ asset(mix('vendors/js/forms/spinner/jquery.bootstrap-touchspin.js')) }}"></script>
@endsection
@section('myscript')
        <!-- Page js files -->
        <script src="{{ asset(mix('js/scripts/forms/number-input.js')) }}"></script>
@endsection
