<form class="row g-3 auto-width update_prices" action="{{ route('product-prices.store')}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('POST')
    <div class="col-md-6">
        <label for="batch" class="form-label">Batch <span class="text-danger"><b>*</b></span></label>
        <input type="number" name="batch" class="form-control" value="{!! old('batch') !!}" placeholder="Enter batch">
        <span class="text-danger error_batch" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
            <label for="purchase_price" class="form-label">Purchase Price <span class="text-danger"><b>*</b></span></label>
            <input type="number" name="purchase_price" class="form-control" value="{!! old('purchase_price') !!}" placeholder="Enter Purchase Price">
            <span class="text-danger error_purchase_price" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="sale_price" class="form-label">Discounted/Sale Price(DP)</label>
        <input type="number" name="sale_price" class="form-control" value="{!! old('sale_price') !!}" placeholder="Enter Sale Price">
    </div>

    <div class="col-md-6">
        <label for="wholesale_price" class="form-label">WholeSale Price</label>
        <input type="number" name="wholesale_price" class="form-control" value="{!! old('wholesale_price') !!}" placeholder="Enter Wholesale Price">
    </div>
    <div class="col-md-6">
        <label for="mrp" class="form-label">MRP <span class="text-danger"><b>*</b></span></label>
        <input type="number" name="mrp" class="form-control" value="{!! old('mrp') !!}" placeholder="Enter MRP">

        <span class="text-danger error_mrp" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="min_sale_price" class="form-label">Min. Sale Price</label>
        <input type="number" name="min_sale_price" class="form-control" value="{!! old('min_sale_price') !!}" placeholder="Min Sale Price">
    </div>

    <div class="col-md-6">
        <label for="bar_code" class="form-label">Bar code</label>
        <input type="number" name="bar_code" class="form-control" value="{!! old('bar_code') !!}" placeholder="Enter Bar Code">
    </div>
    <div class="col-md-6">
        <label for="mfg_cost" class="form-label">Manufacturing Cost</label>
        <input type="number" name="mfg_cost" class="form-control" value="{!! old('mfg_cost') !!}" placeholder="Manufacturing Cost">
    </div>
    <div class="col-md-6">
        <label for="exp_date" class="form-label">Exp. Date</label>
        <input type="text" name="exp_date" class="form-control" autocomplete="off" placeholder="Enter Exp Date" id="exp_date">
    </div>
    <div class="col-md-6">
        <label for="mfg_date" class="form-label">Manufacturing Date</label>
        <input type="text" name="mfg_date" class="form-control" autocomplete="off" id="mfg_date" placeholder="Enter mfg_date">
    </div>

    <input type="hidden" name="product_id">
</form>
