2017-11-08 06:06:05 -08:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2020-04-01 01:26:44 -07:00
|
|
|
{{ trans('admin/components/general.checkin') }}
|
2017-11-08 06:06:05 -08:00
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
|
|
@section('header_right')
|
|
|
|
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
|
|
|
|
{{ trans('general.back') }}</a>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<!-- left column -->
|
|
|
|
<div class="col-md-7">
|
|
|
|
<form class="form-horizontal" method="post" action="{{ route('component.checkin.save', $component_assets->id) }}" autocomplete="off">
|
|
|
|
{{csrf_field()}}
|
|
|
|
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-header with-border">
|
2020-03-31 23:36:56 -07:00
|
|
|
<h2 class="box-title"> {{ $component->name }}</h2>
|
2017-11-08 06:06:05 -08:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
|
|
|
|
<!-- Checked out to -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-2 control-label">{{ trans('general.checkin_from') }}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<p class="form-control-static">{{ $asset->present()->fullName }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Qty -->
|
|
|
|
<div class="form-group {{ $errors->has('checkin_qty') ? 'error' : '' }}">
|
2020-04-01 01:26:44 -07:00
|
|
|
<label for="checkin_qty" class="col-md-2 control-label">{{ trans('general.qty') }}</label>
|
2017-11-08 06:06:05 -08:00
|
|
|
<div class="col-md-3">
|
2020-04-21 03:58:31 -07:00
|
|
|
<input type="text" class="form-control" name="checkin_qty" aria-label="checkin_qty" value="{{ old('assigned_qty', $component_assets->assigned_qty) }}">
|
2017-11-08 06:06:05 -08:00
|
|
|
</div>
|
|
|
|
<div class="col-md-9 col-md-offset-2">
|
|
|
|
<p class="help-block">Must be {{ $component_assets->assigned_qty }} or less.</p>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('checkin_qty', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i>
|
2017-11-08 06:06:05 -08:00
|
|
|
:message</span>') !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Note -->
|
|
|
|
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">
|
|
|
|
<label for="note" class="col-md-2 control-label">{{ trans('admin/hardware/form.notes') }}</label>
|
|
|
|
<div class="col-md-7">
|
2020-04-21 03:58:31 -07:00
|
|
|
<textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $component->note) }}</textarea>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('note', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2017-11-08 06:06:05 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<a class="btn btn-link" href="{{ route('components.index') }}">{{ trans('button.cancel') }}</a>
|
2021-09-26 01:11:08 -07:00
|
|
|
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkin') }}</button>
|
2017-11-08 06:06:05 -08:00
|
|
|
</div>
|
|
|
|
</div> <!-- /.box-->
|
|
|
|
</form>
|
|
|
|
</div> <!-- /.col-md-7-->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
@stop
|