{{ trans('labels.addinventory') }}
@if (count($errors) > 0)
@if($errors->any())
{{$errors->first()}}
@endif
@endif
{{ trans('labels.productName') }}: {{ $result['products'][0]->products_name }}
{{ trans('labels.Add Stock') }}
{!! Form::open(array('url' =>'admin/addnewstock', 'name'=>'inventoryfrom', 'id'=>'addewinventoryfrom', 'method'=>'post', 'class' => 'form-horizontal form-validate', 'enctype'=>'multipart/form-data')) !!}
{!! Form::hidden('products_id', $result['products'][0]->products_id, array('class'=>'form-control', 'id'=>'products_id')) !!}
@if(count($result['attributes'])==0 and $result['products'][0]->products_type==1)
@endif
@if(count($result['attributes'])>0 and $result['products'][0]->products_type==1 or $result['products'][0]->products_type==0)
@endif
{!! Form::close() !!}
{{ trans('labels.You can not add stock without attribute for variable product') }}
@endif
@if($result['products'][0]->products_type==1)
-
@foreach ($result['attributes'] as $attribute)
- @foreach ($attribute['values'] as $value) @endforeach
{{$result['stocks']}}
{{ $result['currency'][19]->value }}{{$result['purchase_price']}}
{{ trans('labels.Enter Stock Text') }}
{{ trans('labels.Purchase Price Text') }}
{{ trans('labels.Reference / Purchase Code Text') }}
{{ trans('labels.Manage Min/Max Quantity') }}
{!! Form::open(array('url' =>'admin/addminmax', 'name'=>'addminmax', 'id'=>'addminmax', 'method'=>'post', 'class' => 'form-horizontal form-validate-level', 'enctype'=>'multipart/form-data')) !!}
{!! Form::hidden('products_id', $result['products'][0]->products_id, array('class'=>'form-control', 'id'=>'products_id')) !!}
@if($result['products'][0]->products_type==1)
{!! Form::hidden('inventory_ref_id', '', array('class'=>'form-control check_reference_id', 'id'=>'inventory_ref_id')) !!}
@endif
{!! Form::close() !!}
{{ trans('labels.Min Level Text') }}
{{ trans('labels.Min Level Text') }}