<form class="row g-3 auto-width update_prices" action="{{ route('product-prices.update', $price->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    <div class="col-md-6">
        <label for="batch" class="form-label">Batch <span class="text-danger"><b>*</b></span></label>
        <input type="text" name="batch" class="form-control" value="{!! old('batch',$price->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',$price->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',$price->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',$price->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',$price->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',$price->min_sale_price) !!}" placeholder="Min Sale Price">
    </div>
    <div class="col-md-6">
        <label for="opening_stock_pack" class="form-label">Opening Stock(Pack)</label>
        <input type="text" name="opening_stock_pack" class="form-control" value="{!! old('opening_stock_pack',$price->opening_stock_pack) !!}" id="opening_stock_pack" autocomplete="off" placeholder="Enter Opening Stock(Pack)">
    </div>
    <div class="col-md-6">
        <label for="opening_stock_loose" class="form-label">Opening Stock(Loose)</label>
        <input type="text" name="opening_stock_loose" class="datepicker form-control" value="{!! old('opening_stock_loose',$price->opening_stock_loose) !!}" id="opening_stock_loose" autocomplete="off" placeholder="Enter Opening Stock(Loose)">
    </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',$price->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',$price->mfg_cost) !!}" placeholder="Manufacturing Cost">
    </div>
    
    <div class="col-md-6">
        <label for="exp_date" class="form-label">Exp. Date</label>
        <input type="text" readonly name="exp_date" class="datepicker form-control" value="{!! old('exp_date',$price->exp_date) !!}" id="exp_date" autocomplete="off" placeholder="Enter exp date">
    </div>
    <div class="col-md-6">
        <label for="mfg_date" class="form-label">Manufacturing Date</label>
        <input type="text" readonly name="mfg_date" class="datepicker form-control" value="{!! old('mfg_date',$price->mfg_date) !!}" id="mfg_date" autocomplete="off" placeholder="Enter mfg date">
    </div>
    


</form>
