2018-11-13 09:33:32 -08:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2019-03-13 12:15:48 -07:00
|
|
|
{{ trans('admin/kits/general.checkout') }}
|
2018-11-13 09:33:32 -08:00
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.input-group {
|
|
|
|
padding-left: 0px !important;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- left column -->
|
|
|
|
<div class="col-md-7">
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-body">
|
|
|
|
<form class="form-horizontal" method="post" action="" autocomplete="off">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
@include ('partials.forms.edit.user-select', ['translated_name' => trans('general.select_user'), 'fieldname' => 'user_id', 'required'=> 'true'])
|
|
|
|
|
|
|
|
<!-- Checkout/Checkin Date -->
|
|
|
|
<div class="form-group {{ $errors->has('checkout_at') ? 'error' : '' }}">
|
2024-06-23 10:24:23 -07:00
|
|
|
<label for="checkout_at" class="col-md-3 control-label">
|
|
|
|
{{ trans('admin/hardware/form.checkout_date') }}
|
|
|
|
</label>
|
2018-11-13 09:33:32 -08:00
|
|
|
<div class="col-md-8">
|
2022-09-26 14:34:35 -07:00
|
|
|
<div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-end-date="0d" data-date-clear-btn="true">
|
2024-06-27 07:05:47 -07:00
|
|
|
<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkout_at" id="checkout_at" value="{{ old('checkout_at') }}">
|
2021-09-26 01:11:08 -07:00
|
|
|
<span class="input-group-addon"><i class="fas fa-calendar"></i></span>
|
2018-11-13 09:33:32 -08:00
|
|
|
</div>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('checkout_at', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
|
2018-11-13 09:33:32 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Expected Checkin Date -->
|
|
|
|
<div class="form-group {{ $errors->has('expected_checkin') ? 'error' : '' }}">
|
2024-06-23 10:24:23 -07:00
|
|
|
<label for="expected_checkin" class="col-md-3 control-label">
|
|
|
|
{{ trans('admin/hardware/form.expected_checkin') }}
|
|
|
|
</label>
|
2018-11-13 09:33:32 -08:00
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="input-group date col-md-5" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-start-date="0d">
|
2024-06-27 07:05:47 -07:00
|
|
|
<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expected_checkin" id="expected_checkin" value="{{ old('expected_checkin') }}">
|
2021-09-26 01:11:08 -07:00
|
|
|
<span class="input-group-addon"><i class="fas fa-calendar"></i></span>
|
2018-11-13 09:33:32 -08:00
|
|
|
</div>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('expected_checkin', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
|
2018-11-13 09:33:32 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Note -->
|
|
|
|
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
|
2024-06-23 10:24:23 -07:00
|
|
|
<label for="note" class="col-md-3 control-label">
|
|
|
|
{{ trans('general.notes') }}
|
|
|
|
</label>
|
2018-11-13 09:33:32 -08:00
|
|
|
<div class="col-md-8">
|
2024-06-27 07:05:47 -07:00
|
|
|
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('note', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
|
2018-11-13 09:33:32 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> <!--./box-body-->
|
|
|
|
<div class="box-footer">
|
2019-03-13 12:15:48 -07:00
|
|
|
<a class="btn btn-link" href="{{ route('kits.index') }}"> {{ trans('button.cancel') }}</a>
|
2021-09-26 01:11:08 -07:00
|
|
|
<button type="submit" class="btn btn-success pull-right"><i class="fas fa-check icon-white"></i> {{ trans('general.checkout') }}</button>
|
2018-11-13 09:33:32 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div> <!--/.col-md-7-->
|
|
|
|
|
|
|
|
<!-- right column -->
|
|
|
|
<div class="col-md-5" id="current_assets_box" style="display:none;">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ trans('admin/users/general.current_assets') }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<div id="current_assets_content">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('moar_scripts')
|
|
|
|
@include('partials/assets-assigned')
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('notifications')
|
|
|
|
@parent
|
|
|
|
<!-- included content -->
|
|
|
|
@stop
|