@extends('layout.app') @section('title', 'Create Product') @push('header_script') @endpush @section('content')
{!! Form::open([ 'route' => ['product.store'], 'onsubmit' => 'BtnSubmit.disabled = true', 'class' => 'row g-3 needs-validation', 'method' => 'post', 'autocomplete' => 'off', ]) !!}
{!! Form::select('product_category_id', ['' => '--Select--'] + $category, old('product_category_id'), [ 'class' => 'form-control select2', 'id' => 'product_category_id', 'required', ]) !!}
{{ $errors->first('product_category_id') }}
{{ $errors->first('product_name') }}
{!! Form::select( 'units', ['' => '--Select--', 'liter' => 'Liter', 'kg' => 'KG', 'piece' => 'Piece', 'other' => 'Other'], old('units'), ['class' => 'form-control', 'id' => 'units', 'required'], ) !!}
{{ $errors->first('units') }}
{!! Form::select( 'gst_applicable', ['' => '--Select--', 'yes' => 'Applicable', 'no' => 'Not-Applicable'], old('gst_applicable'), ['class' => 'form-control', 'id' => 'gst_applicable', 'required'], ) !!}
{{ $errors->first('gst_applicable') }}
{{ $errors->first('opening_stock') }}
{{ $errors->first('stock_alert') }}
{{ $errors->first('rate_per') }}
{{ $errors->first('value') }}
{{ $errors->first('application_reverse_charge') }}
{{ $errors->first('remark') }}
{!! Form::close() !!}
@endsection @push('footer_script') @endpush