<div class="modal inmodal" id="addLicenseSubscription" tabindex="-1" role="dialog">

    <div class="modal-dialog">

        <div class="modal-content animated fadeIn">

            <div class="modal-header">

                <button type="button" class="close" data-dismiss="modal"><span>×</span><span
                        class="sr-only">Close</span></button>

                <h4 class="modal-title">Add new subscription length</h4>

            </div>

            <div class="modal-body">

                @include('partials.error')

                <form class="form-horizontal" action="" method="post" id="license-subscription-form">

                    {{csrf_field()}}

                    <div class="form-group">

                        <label class="col-lg-4 control-label">Duration</label>

                        <div class="col-lg-8">
                            <div class="row">
                                <div class="col-sm-4">
                                    <input type="number" class="form-control" min="1" oninput="validity.valid||(value='');" name="duration" value="{{old('duration')}}" required>
                                </div>
                                <div class="col-sm-8">
                                    <select class="form-control" name="duration_type">
                                        <option value="Month">Month(s)</option>
                                        <option value="Year">Year(s)</option>
                                    </select>
                                </div>
                            </div>
                            
                            

                        </div>

                    </div>


                </form>

            </div>

            <div class="modal-footer">

                <button type="button" class="btn btn-link" data-dismiss="modal">Cancel</button>

                <button type="button" class="btn btn-primary" id="submit">Save</button>

            </div>

        </div>

    </div>

</div>