/
home
/
sjslayjy
/
public_html
/
devlok
/
resources
/
views
/
dashboard
/
stock
/
Upload File
HOME
<style> .readonly-select { pointer-events: none; background-color: #e9ecef !important; cursor: not-allowed; } </style> <form action="{{URL('/user/edit-inventory')}}" role="form" method="POST" id="editInventoryModal"> @csrf <div class="row"> <input type="hidden" value="{{$inventories->id}}" name="id"> <div class="col-md-6"> <div class="form-group"> <label for="name">Warehouse List</label> <select class="form-control select2 readonly-select" name="warehouse_id" id="warehouse_id"> <option value="">Select Warehouse List</option> @foreach($warehouses as $key=> $warehosue) <option value="{{$warehosue->id}}" {{ $warehosue->id == $inventories->warehouse_id ? 'selected' : '' }}>{{$warehosue->name}}</option> @endforeach </select> <span class="label label-danger" id="add_warehouse_ist_error" style="display: none;"></span> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="name">Product Company</label> <select class="form-control select2 readonly-select" name="product_company_id" id="product_company_id1"> <option value="">Select Product Company</option> @foreach($companies as $key=> $company) <option value="{{$company->id}}" {{ $company->id == $inventories->product_company_id ? 'selected' : '' }}>{{$company->name}}</option> @endforeach </select> <span class="label label-danger" id="add_product_company_error" style="display: none;"></span> </div> </div> <div class="clearfix"></div> <div class="col-md-6"> <div class="form-group"> <label for="name">Date</label> @foreach($openingstocks as $key=> $openingstock) <input type="date" class="form-control date-picker readonly-select" name="date" id="date" placeholder="Date" value= "{{$openingstock->date}}"> @endforeach <span class="label label-danger" id="add_date_error" style="display: none;"></span> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="proruct">Product</label> <select class="form-control select2 checkIfValid readonly-select" name="product_id[]" id="product_id"> <option value="">Select Product</option> @foreach($products as $key=> $product) <option value="{{$product->id}}" {{ $product->id == $inventories->product_id ? 'selected' : '' }}>{{$product->name}}</option> @endforeach </select> <span class="label label-danger" id="add_product_id_error" style="display: none;"></span> </div> </div> </div> <div class="row"> <div class="col-md-3"> <div class="form-group"> <label for="rate">Fresh Quantity</label> <input type="text" class="form-control checkIfValid" name="fresh_qty[]" placeholder="Fresh Quantity" value= "{{$inventories->quantity}}"> <span class="label label-danger" id="add_quantity_error" style="display: none;"></span> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="rate">Damage Quantity</label> <input type="text" class="form-control checkIfValid" name="damage_qty[]" placeholder="Damage Quantity" value= "{{$inventories->damage_qty}}"> <span class="label label-danger" id="add_quantity_error" style="display: none;"></span> </div> </div> </div> <div id="addMoreRowSection"> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <!-- <button type="button" id="addMasterRakeBtn" class="btn btn-primary">Submit</button> --> <input type="submit" value="submit" class="btn btn-primary" id="openingStockBtn"> </div> </form>