@extends('layouts.admin') @section('content')
{{ Form::open(array('route' => $routes, 'method' => 'POST' ,'id' => 'ajaxSave'));}}
{{Form::label('name', __('inventory_item.name'), array('class' => 'control-label mb-2'))}} {{ Form::text('name', $data->name, array('class' => 'form-control'))}}
{{Form::label('code', __('inventory_item.code'), array('class' => 'control-label mb-2'))}} {{ Form::text('code', $data->code, array('class' => 'form-control','id'=>'code'))}}
{{Form::label('tripletex_item_id', __('inventory_item.tripletex_item_id'), array('class' => 'control-label mb-2'))}} {{ Form::text('tripletex_item_id', $data->tripletex_item_id, array('class' => 'form-control','id'=>'code'))}}
{{Form::label('category', __('inventory_item.category'), array('class' => 'control-label mb-2'))}} {{ Form::select('category', $category, $data->category_id, array('class' => 'form-control select2','id' => 'category_id', 'data-live-search' => 'true')) }}
{{Form::label('location', __('inventory_item.location'), array('class' => 'control-label mb-2'))}} {{ Form::select('location', $location, $data->location_id, array('class' => 'form-control select2','id' => 'location_id', 'data-live-search' => 'true')) }}
{{Form::label('unit_id', __('unit.unit'), array('class' => 'control-label mb-2'))}} {{ Form::select('unit_id', $units, $data->unit_id, array('class' => 'form-control select2','id' => 'unit', 'data-live-search' => 'true')) }}
{{Form::label('weight', __('inventory_item.weight'), array('class' => 'control-label mb-2'))}} {{ Form::text('weight', $data->weight, array('class' => 'form-control','id'=>'weight'))}}
{{Form::label('weight_type', __('inventory_item.weight_type'), array('class' => 'control-label mb-2'))}} {{ Form::select('weight_type', weightType(), $data->weight_type, array('class' => 'form-control select2','id' => 'weight_type', 'data-live-search' => 'true')) }}
{{Form::label('volume', __('inventory_item.volume'), array('class' => 'control-label mb-2'))}} {{ Form::text('volume', $data->volume, array('class' => 'form-control','id'=>'volume'))}}
{{Form::label('volume_type', __('inventory_item.volume_type'), array('class' => 'control-label mb-2'))}} {{ Form::select('volume_type', volumeType(), $data->volume_type, array('class' => 'form-control select2','id' => 'volume_type', 'data-live-search' => 'true')) }}
{{Form::label('calories', __('inventory_item.calories'), array('class' => 'control-label mb-2'))}} {{ Form::text('calories', $data->calories, array('class' => 'form-control','id'=>'calories'))}}
{{Form::label('gstin', __('inventory_item.gstin'), array('class' => 'control-label mb-2'))}} {{ Form::text('gstin', $data->gstin, array('class' => 'form-control','id'=>'gstin'))}}
{{Form::label('inventory_type', __('inventory_item.inventory_type'), array('class' => 'control-label mb-2'))}} {{ Form::select('inventory_type', inventoryType(), $data->inventory_type, array('class' => 'form-control select2')) }}
{{Form::label('image', __('inventory_item.image'), array('class' => 'control-label mb-2'))}} {{ Form::file('image', array('class' => 'form-control'))}}
@if (is_object($data) && ($data->image)) @endif

{!! __('inventory_item.feature_image_note') !!}

{{Form::label('department', __('inventory_item.department'), array('class' => 'control-label mb-2'))}} {{ Form::select('department[]', $departments, ($data->department_ids != "") ? explode(',',$data->department_ids) : [], array('class' => 'form-control select2', 'multiple' => true, 'id' => 'department', 'data-live-search' => 'true')) }}
{{ Form::label('ms_item_id', __('inventory_item.microsoft_items'), ['class' => 'control-label']) }} {{ Form::select('ms_item_id', readJson(2,'id','name'), $data->ms_item_id, array('class' => 'form-control select2', 'id' => 'ms_item_id', 'data-live-search' => 'true')) }}
{{Form::label('status', __('inventory_item.status'), array('class' => 'control-label mb-2'))}}
{{Form::label('manage_stock', __('inventory_item.manage_stock'), array('class' => 'control-label mb-2'))}}
{{--
  • {{Form::label('status', __('inventory_item.status'), array('class' => 'control-label mb-2'))}}
  • {{Form::label('manage_stock', __('inventory_item.manage_stock'), array('class' => 'control-label mb-2'))}}
--}}
{{Form::label('description', __('inventory_item.description'), array('class' => 'control-label mb-2'))}} {{ Form::textarea('description', $data->description, array('class' => 'form-control','rows'=>'2','cols'=>2))}}

{{ __('inventory_item.price_information') }}

{{Form::label('purchase_price', __('inventory_item.purchase_price'), array('class' => 'control-label mb-2'))}} {{ Form::text('purchase_price', $data->purchase_price, array('class' => 'form-control','id'=>'purchase_price'))}}
{{ Form::label('cost', __('inventory_item.cost'), array('class' => 'control-label mb-2')) }} {{ Form::text('cost', $data->cost, array('class' => 'form-control','id'=>'cost'))}}
{{ Form::label('cost_perc', __('inventory_item.cost_perc'), array('class' => 'control-label mb-2')) }} {{ Form::text('cost_perc', $data->cost_perc, array('class' => 'form-control','id'=>'cost_perc'))}}
{{ Form::label('cost_price_info', __('inventory_item.cost_price'), array('class' => 'control-label mb-2')) }} {{ Form::text('cost_price_info', $data->cost_price_info, array('class' => 'form-control','id' => 'cost_price_info', 'readonly' => true)) }}
{{ Form::label('advance', __('inventory_item.advance'), array('class' => 'control-label mb-2')) }} {{ Form::text('advance', $data->advance, array('class' => 'form-control','id'=>'advance'))}}
{{ Form::label('advance_perc', __('inventory_item.advance_perc'), array('class' => 'control-label mb-2')) }} {{ Form::text('advance_perc', $data->advance_perc, array('class' => 'form-control','id'=>'advance_perc'))}}
{{ Form::label('price_tax_id', __('inventory_item.vat'), array('class' => 'control-label mb-2')) }} {{-- {{ Form::select('price_tax_id', $taxes, $data->price_tax_id, array('class' => 'form-control select2', 'id' => 'price_tax_id', 'data-live-search' => 'true')) }} --}}
{{ Form::label('is_round_price', __('inventory_item.round'), array('class' => 'control-label mb-2')) }}
{!! Form::hidden('round_difference', 0,['id'=>'round_difference']) !!}
{{ Form::label('sale_price_incl_vat', __('inventory_item.sale_incl_vat'), array('class' => 'control-label mb-2')) }} {{ Form::text('sale_price_incl_vat', $data->sale_price_incl_vat, array('class' => 'form-control','id'=>'sale_price_incl_vat'))}}
{{ Form::label('sale_price_excl_vat', __('inventory_item.sale_exclusive'), array('class' => 'control-label mb-2')) }} {{ Form::text('sale_price_excl_vat', $data->sale_price_excl_vat, array('class' => 'form-control','id'=>'sale_price_excl_vat'))}}
@if($data->id) @method('PUT') @endif {{ Form::close()}}
@endsection @section('script') @endsection