<form id="itemEditForm" enctype="multipart/form-data">
    <input type="hidden" name="_token" value="{{ csrf_token() }}" />
    <input type="hidden" name="product_id" value="{{$post->product_id}}" />
    <input type="hidden" name="invoice_main_id" value="{{$post->invoice_main_id}}" />
    <div class="row">
        <div class="col-12 text-center">
            <div class="mb-3 font-text">
                <label for="product_name" class="form-label label">Product Name</label>
                <input type="hidden" name="product_name" id="product_name" value="{{$post->name}}" />
                <h3>{{$post->name}}</h3>

                <label for="product_name" class="form-label label">Price</label>
                <h3>{{$post->price}}</h3>
            </div>
        </div>
        <div class="col-md-6">
            <div class="mb-3 font-text">
                <input type="number" name="quantity" id="quantity" class="form-control rounded-pill bg-light_c border-0" value="{{$post->qty}}" />
            </div>
        </div>
        <div class="col-md-6">
            <div class="mb-3 font-text">
                <select  id="unit" class="form-select rounded-pill bg-light cat" name="unit">
                    <option value="Pcs" @if($post->unit == 'Pcs') selected @endif>Pcs</option>
                </select>
            </div>
        </div>
        <div class="col-md-12">
            <div class="mb-3 font-text">
                <input type="number" name="price" id="price" class="form-control rounded-pill bg-light_c border-0" value="{{$post->price}}" />
            </div>
            <div class="mb-3 font-text">
                <input type="hidden" name="offer_id" value="{{$post->offer_id}}" />
            </div>
        </div>
    </div>
    <button type='button' onclick="updateProduct()" class='btn  btn-color rounded-pill text-light px-5 mt-3 '>{{ trans('Update') }}</button>
</form>