@extends('layout.app') @section('title', 'Create Item') @push('header_script') @endpush @section('content')
@if ($errors->any()) @endif

New Item

{!! Form::open([ 'route' => ['product.store'], 'onsubmit' => 'BtnSubmit.disabled = true', 'class' => 'needs-validation', 'method' => 'post', 'autocomplete' => 'off', ]) !!}

Basic Item Details

{{ $errors->first('product_name') }}
{!! Form::select('product_category_id', ['' => '--Select--'] + $category, old('product_category_id'), [ 'class' => 'form-select select2', 'id' => 'product_category_id', ]) !!}
{{ $errors->first('product_category_id') }}
{!! Form::select('units', ['' => '--Select--'] + $units, old('units'), [ 'class' => 'form-select select2', 'id' => 'units', 'required' ]) !!}
{{ $errors->first('units') }}
{!! Form::select('brand_id', ['' => '--Select--'] + $brands, old('brand_id'), [ 'class' => 'form-select select2', 'id' => 'brand_id' ]) !!}
{{ $errors->first('brand_id') }}

Pricing & Tax

{{ $errors->first('purchase_rate') }}
{{ $errors->first('mrp') }}
{!! Form::select('gst_applicable', ['yes' => 'Applicable', 'no' => 'Not-Applicable'], old('gst_applicable', 'yes'), [ 'class' => 'form-select', 'id' => 'gst_applicable', 'required' ]) !!}
{{ $errors->first('gst_applicable') }}
{!! Form::select('tax_group_id', ['' => '--Select--'] + $taxGroup, old('tax_group_id'), [ 'class' => 'form-select select2', 'id' => 'tax_group_id' ]) !!}
{{ $errors->first('tax_group_id') }}
{{ $errors->first('hsn_code') }}

Opening Stock

{{ $errors->first('opening_stock') }}
{{ $errors->first('rate_per') }}
{{ $errors->first('stock_alert') }}

Additional / Tracking Details

{!! Form::select('manufacturer_id', ['' => '--Select--'] + $manufacturers, old('manufacturer_id'), [ 'class' => 'form-select select2', 'id' => 'manufacturer_id' ]) !!}
{{ $errors->first('manufacturer_id') }}
{{ $errors->first('status') }}
Cancel
{!! Form::close() !!}
@include('common.modal.category') @include('common.modal.unit') @include('common.modal.brand') @endsection @push('footer_script') @endpush