{!! Form::open(array('route' => 'products.store','method'=>'POST', 'files'=> true,'id'=>'product_form','enctype'=>'multipart/form-data')) !!}
{!! Form::text('url', null, array('placeholder' => 'Product URL','class' => 'form-control form-control-sm')) !!} @error('url') {{ $message }} @enderror
{!! Form::text('purchase_link', null, array('placeholder' => 'Purchase Link','class' => 'form-control form-control-sm')) !!} @error('purchase_link') {{ $message }} @enderror
@error('expiry_period')
{{ $message }}
@enderror
{!! Form::radio('status', '1','checked'); !!} {!! Form::radio('status', '0'); !!} @error('status') {{ $message }} @enderror
@error('product_label')
@error('product_label2')
@error('s_warranty_count')
{{ $message }}
@enderror
@error('r_warranty_count')
{{ $message }}
@enderror
{!! Form::close() !!}
{!! Form::text('product_name', null, array('placeholder' => 'Product Name','class' => 'form-control form-control-sm','id' => 'product_name' )) !!}
@error('product_name')
{{ $message }}
@enderror
{!! Form::text('model_number', null, array('placeholder' => 'Model Number','class' => 'form-control form-control-sm', 'style' => 'text-transform: uppercase')) !!}
@error('model_number')
{{ $message }}
@enderror
{!! Form::text('description', null, array('placeholder' => 'Product Description','class' => 'form-control form-control-sm', 'rows' => 1)) !!}
@error('description')
{{ $message }}
@enderror
@error('image')
{{ $message }}
@enderror
{!! Form::text('product_code', $next_product_code, array('placeholder' => 'Product Code','class' => 'form-control form-control-sm' , 'disabled'=>'disabled' )) !!}
@error('product_code')
{{ $message }}
@enderror
{!! Form::text('url', null, array('placeholder' => 'Product URL','class' => 'form-control form-control-sm')) !!} @error('url') {{ $message }} @enderror
{!! Form::text('purchase_link', null, array('placeholder' => 'Purchase Link','class' => 'form-control form-control-sm')) !!} @error('purchase_link') {{ $message }} @enderror
{!! Form::text('quantity', null, array('placeholder' => 'Quantity','class' => 'form-control form-control-sm')) !!}
@error('quantity')
{{ $message }}
@enderror
{!! Form::text('quantity_measured', null, array('placeholder' => 'Measured','class' => 'form-control form-control-sm')) !!}
@error('quantity_measured')
{{ $message }}
@enderror
{!! Form::text('expiry_period', null, array('placeholder' => 'Expiry Period','class' => 'form-control form-control-sm')) !!}
Months
{!! Form::text('number_in_pack', null, array('placeholder' => 'Items per Packet','class' => 'form-control form-control-sm')) !!}
@error('number_in_pack')
{{ $message }}
@enderror
{!! Form::text('packing_method', null, array('placeholder' => 'Packing Method','class' => 'form-control form-control-sm')) !!}
@error('packing_method')
{{ $message }}
@enderror
{!! Form::radio('status', '1','checked'); !!} {!! Form::radio('status', '0'); !!} @error('status') {{ $message }} @enderror
Categories
@error('category')
{{ $message }}
@enderror
Brand Details
{!! Form::text('brand_name', null, array('placeholder' => 'Brand Name','class' => 'form-control form-control-sm')) !!}
@error('brand_name')
{{ $message }}
@enderror
@error('logo')
@enderror
Label Generation
{{ $message }}
@enderror
{{ $message }}
@enderror
Authentication Details
{!! Form::text('auth_prod_name', null, array('placeholder' => 'Product Name','class' => 'form-control form-control-sm', 'id' => 'auth_prod_name')) !!}
@error('auth_prod_name')
{{ $message }}
@enderror
{!! Form::text('auth_done_by', null, array('placeholder' => 'Authenticated By','class' => 'form-control form-control-sm', 'id' => 'auth_done_by')) !!}
@error('auth_done_by')
{{ $message }}
@enderror
Warranty Details
@error('promotion_status')
{{ $message }}
@enderror
@error('waranty_status')
{{ $message }}
@enderror
{!! Form::radio('warranty_type', '1',); !!}
{!! Form::radio('warranty_type', '2'); !!}
@error('warranty_type')
{{ $message }}
@enderror
@error('full_product')
{{ $message }}
@enderror
@php $x = 1; @endphp
@if(Session::has('warranty_details'))
@foreach(Session::get('warranty_details')['product_details'] as $t_products)
@php $x++; @endphp
@endforeach
@endif
{!! Form::text('part_name[]', null, array('placeholder' => 'Part Name','class' => 'form-control form-control-sm part-name', 'id' => 'tags_create')) !!}
@error('part_name')
{{ $message }}
@enderror
{!! Form::number('part_warranty[]', 1, array('placeholder' => 'Warranty Period','class' => 'form-control form-control-sm s-warranty-period', 'id' => 'part_warranty', 'min'=>"1")) !!}
@error('part_warranty')
{{ $message }}
@enderror
@include('template.authentication')