@extends('layouts.app') @section('style') @stop @section('content') @include('inventories.modal')
@lang('layout.AddNewItem') {{--@lang('layout.someinfo...')--}}
{!! Form::model($inventory, ['method' => 'PATCH','route' => ['inventory.m_update',$inventory->id],'class'=>'form-horizont','id'=>'inventory-edit-form','files'=> true]) !!}
{{Form::text('name',null,['class' => 'form-control','placeholder' => __('layout.EnterItemName'),'v-validate' =>'"required|min:2"','data-vv-as' => __('layout.Name')])}} @{{ errors.first('name') }} {{-- This is inline help --}}
{{Form::text('number',null,['class' => 'form-control','min' =>'0' ,'placeholder' => __('layout.ItemCode')])}}
@if(systemConfig()[9] == 0 )
{{Form::number('gauge',null,['class' => 'form-control','step' => 'any','min' =>'0','placeholder' => __('layout.Gauge')])}}
@endif
{{--{{Form::select('inventory_category_id',$category,null,['class' => 'form-control','min' =>'0' ,'placeholder' => __('layout.ItemCode')])}}--}}
@{{ errors.first('um_id') }} {{--{{Form::select('income_account',$income,null,['class' => 'form-control'])}}--}}

@lang('layout.MetricType')

@lang('layout.Measure')

@lang('layout.OtherMeasure')

@lang('layout.AddNewMeasure')

{{Form::number('cost',$itemCost,['class' => 'form-control','v-model'=>'cost','v-model'=>'cost',':class'=>'{"input-has-error":!isError}' ,'step' => 'any','min' =>'0'])}}
{{Form::number('rate',$inventory->rate,['class' => 'form-control','step' => 'any','min' =>'0','placeholder' => __('layout.Default_Rate')])}}
{!! Form::file('photo', null, array('placeholder' => 'photo','class' => 'form-control')) !!}
{{Form::number('min',null,['class' => 'form-control','step' => 'any','min' =>'0','placeholder' => __('layout.Min')])}}
{{Form::number('max',null,['class' => 'form-control','step' => 'any','min' =>'0','placeholder' => __('layout.Max')])}}
@if(itemBrand()=="true")
{{Form::text('item_location',null,['class' => 'form-control','placeholder' => __('layout.Location')])}}
@endif
{{--{{Form::select('income_account',$income,null,['class' => 'form-control'])}}--}}
@if(itemBrand()=="true")
@endif
{{Form::textarea('description',null,['class' => 'form-control','rows' => '1','placeholder' => __('layout.Description')])}}
{{Form::number('total',null,['class' => 'form-control','v-model'=>'result','step' => 'any','min' =>'0' ,'disabled'])}}
{{--{{Form::number('quantity',null,['class' => 'form-control','v-model'=>'onHand','step' => 'any','min' =>'0'])}}--}}
@if(getOtherMeasure()=="true")
@endif @if(getOtherMeasure2()=="true")
@endif @if(getM2()!="")
@endif @if(getM3()!="")
@endif @if(getM4()!="")
@endif
{{--
--}} {{----}} {{--
--}} {{--{{Form::select('tax',[],null,['class' => 'form-control'])}}--}} {{--
--}} {{--
--}}

@if(systemConfig()[21] == 1) @endif @if(systemConfig()[9] != 0 ) @endif @if(getShowWing()!="false") @endif @if(systemConfig()[9] == 0 || getCubicMetereItems()=="true") @endif @if(getCubicMetereItems()=="true") @endif @if(getShowSuperceedNo()=="true") @endif @if(itemBrand()=="true") @endif @if(showLocation()=="true") @endif @if(getOtherMeasure()=="true") @endif @if(getOtherMeasure2()=="true") @endif @if(systemConfig()[21] == 1) @endif @if(systemConfig()[9] != 0 ) @endif @if(getShowWing()!="false") @endif @if(systemConfig()[9] == 0 || getCubicMetereItems()=="true") @endif @if(getCubicMetereItems()=="true") @endif @if(getShowSuperceedNo()=="true") @endif @if(itemBrand()=="true") @endif @if(showLocation()=="true") @endif @if(getOtherMeasure()=="true") @endif @if(getOtherMeasure2()=="true") @endif
# @lang('layout.Site') @lang('layout.Code') @lang('layout.OnHand') @lang('layout.CostInInventory')@lang('layout.UnitPrice')@lang('layout.Default_Rate')@lang('layout.Photo') @lang('layout.ExpireDate')@lang('layout.Wing') @lang('layout.ApproxWeight')@lang('layout.Width') @lang('layout.Length') @lang('layout.Gauge')@lang('layout.SuperceedNo')@lang('layout.Brand') @lang('layout.Description')@lang('layout.Location')@lang('layout.OMeasureValue') 1@lang('layout.OMeasureValue') 2
@{{index+1}} @if($edit_sale != "yes") @endif
{{Form::close()}}
@endsection @push('scripts') @endpush