snipe-it/resources/views/components/checkin.blade.php

74 lines
3.6 KiB
PHP
Raw Normal View History

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">
2023-10-03 12:30:08 -07:00
<form class="form-horizontal" method="post" action="{{ route('components.checkin.store', [$component_assets->id, 'backto' => 'asset']) }}" autocomplete="off">
2017-11-08 06:06:05 -08:00
{{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">
2023-02-01 13:30:07 -08:00
<p class="help-block">{{ trans('admin/components/general.checkin_limit', ['assigned_qty' => $component_assets->assigned_qty]) }}</p>
{!! $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>
{!! $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>
<x-redirect_submit_options
index_route="components.index"
:button_label="trans('general.checkin')"
:options="[
'index' => trans('admin/hardware/form.redirect_to_all', ['type' => trans('general.components')]),
'item' => trans('admin/hardware/form.redirect_to_type', ['type' => trans('general.component')]),
]"
/>
2017-11-08 06:06:05 -08:00
</div> <!-- /.box-->
</form>
</div> <!-- /.col-md-7-->
</div>
@stop