@extends('layout.app') @section('title','Edit Item') @push('header_script') @endpush @section('content')
{!! Form::open(['route' => ['product.update',$productData->id],'onsubmit'=>'BtnSubmit.disabled = true', 'class'=>'row g-3 needs-validation', 'method' => 'put', 'autocomplete'=>'off']) !!}
{!! Form::select('product_category_id', [''=>'--Select--',]+$category, $productData->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--'] + $brands, old('brand_id', $productData->brand_id), [ 'class' => 'form-control select2', 'id' => 'brand_id', ]) !!}
{{ $errors->first('brand_id') }}
{!! Form::select('units', [''=>'--Select--']+$units, $productData->units, ['class'=>'form-control select2','id'=>'units','required']) !!}
{{$errors->first('units')}}
{!! Form::select('gst_applicable', [''=>'--Select--','yes'=>'Applicable','no'=>'Not-Applicable'], $productData->gst_applicable, ['class'=>'form-control','id'=>'gst_applicable','required']) !!}
{{$errors->first('gst_applicable')}}
{{$errors->first('opening_stock')}}
{{$errors->first('rate_per')}}
{{$errors->first('value')}}
application_reverse_charge == 'yes')? 'checked': ''}}>
{{$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