2019-02-19 11:19:00 -08:00
|
|
|
@extends('layouts/edit-form', [
|
2021-11-02 06:25:21 -07:00
|
|
|
'createText' => {{ trans('admin/kits/general.append_consumable') }},
|
|
|
|
'updateText' => {{ trans('admin/kits/general.update_appended_consumable') }},
|
2019-12-10 19:32:50 -08:00
|
|
|
'formAction' => (isset($item->id)) ? route('kits.consumables.update', ['kit_id' => $kit->id, 'consumable_id' => $item->consumable_id]) : route('kits.consumables.store', ['kit_id' => $kit->id]),
|
2019-02-19 11:19:00 -08:00
|
|
|
])
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('inputFields')
|
2021-11-02 06:25:21 -07:00
|
|
|
@include ('partials.forms.edit.consumable-select', ['translated_name' => {{ trans('general.consumable')}}, 'fieldname' => 'consumable_id', 'required' => 'true'])
|
2019-02-19 11:19:00 -08:00
|
|
|
|
|
|
|
<div class="form-group {{ $errors->has('quantity') ? ' has-error' : '' }}">
|
|
|
|
<label for="quantity" class="col-md-3 control-label">{{ trans('general.quantity') }}</label>
|
|
|
|
<div class="col-md-7 required">
|
|
|
|
<div class="col-md-2" style="padding-left:0px">
|
2019-12-10 19:32:50 -08:00
|
|
|
<input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" />
|
2019-02-19 11:19:00 -08:00
|
|
|
</div>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first('quantity', '<span class="alert-msg"><i class="fas fa-times"></i> :message</span>') !!}
|
2019-02-19 11:19:00 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<input type="hidden" name="pivot_id" value="{{$item->id}}">
|
2019-12-10 19:32:50 -08:00
|
|
|
{{-- <input class="form-control" type="text" name="quantity" id="quantity" value="{{ Request::old('quantity', $item->quantity) }}" /> --}}
|
2019-02-19 11:19:00 -08:00
|
|
|
|
|
|
|
@stop
|