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

	<div class="modal-dialog">

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

			<div class="modal-header">

				<h4 class="modal-title">Retain Hold</h4>

			</div>

			<div class="modal-body">

				<form class="form-horizontal" action="/update-asset-status" method="post" id="search-asset-retain-hold-form">

					{{csrf_field()}}

					<input type="hidden" name="asset_id" id="asset_id">

					<input type="hidden" name="asset_status_id" id="status_id">

					<div class="form-group" id="data_1">

						<label class="col-lg-4 control-label">Retain Hold Release Date<span class="text-danger">*</span></label>

						<div class="col-lg-8">

							<div class="input-group date">

								<span class="input-group-addon"><i class="icon icon-calendar-2"></i></span>
								<input type="text"
									class="form-control" value="{{ \Carbon\Carbon::now()->addDays(config('date.period.retain_hold'))->format(config('date.formats.read_date_format')) }}"
									name="loaner_retention_date" required readonly>

							</div>
							<span class="errorText text-danger"></span>

						</div>

					</div>

					<div class="form-group">

						<label class="col-lg-4 control-label">Location<span class="text-danger">*</span></label>

						<div class="col-lg-8">
							@include('partials.dropdowns.location-search-input', ['filterClass' => config('status-location-type.retain-hold') == 'install' ?'filter-field-install-building-location ':'filter-field-storage-location','required'=>'required'])
							<span class="errorText text-danger"></span>
						</div>

					</div>

					<div class="form-group">

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

						<div class="col-lg-8">

							<input type="text" class="form-control" name="ticket_no" minlength="1">
							<span class="errorText text-danger"></span>
						</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 status-form-submit-btn"  data-form="#search-asset-retain-hold-form" id="asset-retain-hold-submit">Save</button>

			</div>

		</div>

	</div>

</div>