@extends('layout.app') @section('title', 'Create Item') @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( 'brand_id', ['' => '-- Select Brand --'] + $brands, old('brand_id', isset($product) ? $product->brand_id : null), [ 'class' => 'form-control select2', 'id' => 'brand_id', ], ) !!}
{{ $errors->first('brand_id') }}
{!! Form::select( 'units', ['' => '--Select--'] + $units, old('units'), ['class' => 'form-control select2', '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('rate_per') }}
{{ $errors->first('value') }}
{{ $errors->first('application_reverse_charge') }}
{{ $errors->first('stock_alert') }}
{{ $errors->first('remark') }}
{!! Form::close() !!}
@include('common.modal.category') @include('common.modal.brand') @include('common.modal.unit') @endsection @push('footer_script') @endpush