2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/components/general.checkout') }}
|
2016-03-25 01:18:05 -07:00
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9">
|
|
|
|
<form class="form-horizontal" method="post" action="" autocomplete="off">
|
2016-03-25 01:18:05 -07:00
|
|
|
<!-- CSRF Token -->
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ csrf_field() }}
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
<div class="box box-default">
|
2016-12-27 12:03:47 -08:00
|
|
|
@if ($component->id)
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<div class="box-heading">
|
2020-03-31 23:36:56 -07:00
|
|
|
<h2 class="box-title">{{ $component->name }} ({{ $component->numRemaining() }} {{ trans('admin/components/general.remaining') }})</h2>
|
2016-12-27 12:03:47 -08:00
|
|
|
</div>
|
|
|
|
</div><!-- /.box-header -->
|
|
|
|
@endif
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
<div class="box-body">
|
|
|
|
@if ($component->name)
|
|
|
|
<!-- consumable name -->
|
|
|
|
<div class="form-group">
|
2016-12-27 12:03:47 -08:00
|
|
|
<label class="col-sm-3 control-label">{{ trans('admin/components/general.component_name') }}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<p class="form-control-static">{{ $component->name }}</p>
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<!-- Asset -->
|
2017-10-26 03:43:28 -07:00
|
|
|
@include ('partials.forms.edit.asset-select', ['translated_name' => trans('general.select_asset'), 'fieldname' => 'asset_id'])
|
|
|
|
|
|
|
|
<div class="form-group {{ $errors->has('assigned_qty') ? ' has-error' : '' }}">
|
|
|
|
<label for="assigned_qty" class="col-md-3 control-label">{{ trans('general.qty') }}
|
|
|
|
<i class='icon-asterisk'></i></label>
|
|
|
|
<div class="col-md-9">
|
|
|
|
<input class="form-control" type="text" name="assigned_qty" id="assigned_qty" style="width: 70px;" value="{{ Input::old('assigned_qty') }}" />
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('assigned_qty', '<br><span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2017-10-26 03:43:28 -07:00
|
|
|
</div>
|
2016-12-27 12:03:47 -08:00
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
</div> <!-- .BOX-BODY-->
|
2017-10-11 13:29:22 -07:00
|
|
|
<div class="box-footer">
|
|
|
|
<a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
|
2020-04-01 01:26:44 -07:00
|
|
|
<button type="submit" class="btn btn-primary pull-right"><i class="fa fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkout') }}</button>
|
2017-10-11 13:29:22 -07:00
|
|
|
</div>
|
2016-12-27 12:03:47 -08:00
|
|
|
</div> <!-- .box-default-->
|
|
|
|
</form>
|
|
|
|
</div> <!-- .col-md-9-->
|
|
|
|
</div> <!-- .row -->
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
@stop
|