<div class="row">
    <div class="col-md-6 mb-3">
        <label class="form-label">Item Name *</label>
        <input type="text" class="form-control" name="{{ isset($isEdit) ? 'item_name' : 'item_name' }}" id="{{ isset($isEdit) ? 'edititem_name' : 'itemName' }}" required>
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Category *</label>
        <input type="text" class="form-control" name="{{ isset($isEdit) ? 'category' : 'category' }}" id="{{ isset($isEdit) ? 'editcategory' : 'category' }}" required>
    </div>
</div>
<div class="row">
    <div class="col-md-4 mb-3">
        <label class="form-label">Unit of Measure (UOM) *</label>
        <input type="text" class="form-control" name="{{ isset($isEdit) ? 'uom' : 'uom' }}" id="{{ isset($isEdit) ? 'edituom' : 'uom' }}" required>
    </div>
    <div class="col-md-4 mb-3">
        <label class="form-label">Tax Rate (%) *</label>
        <select class="form-select" name="{{ isset($isEdit) ? 'tax_rate' : 'tax_rate' }}" id="{{ isset($isEdit) ? 'edittax_rate' : 'tax' }}" required>
            <option value="">Select Tax</option>
            <option value="0">0%</option>
            <option value="3">3%</option>
            <option value="6">6%</option>
            <option value="9">9%</option>
            <option value="14">14%</option>
            <option value="18">18%</option>
        </select>
    </div>
    <div class="col-md-4 mb-3">
        <label class="form-label">Current Stock *</label>
        <input type="number" class="form-control" name="{{ isset($isEdit) ? 'current_stock' : 'current_stock' }}" id="{{ isset($isEdit) ? 'editcurrent_stock' : 'currentStock' }}" min="0" required>
    </div>
</div>
<div class="row">
    <div class="col-md-4 mb-3">
        <label class="form-label">Default Price *</label>
        <input type="number" class="form-control" name="{{ isset($isEdit) ? 'default_price' : 'default_price' }}" id="{{ isset($isEdit) ? 'editdefault_price' : 'defaultPrice' }}" min="0" step="0.01" required>
    </div>
    <div class="col-md-4 mb-3">
        <label class="form-label">Discount Price</label>
        <input type="number" class="form-control" name="{{ isset($isEdit) ? 'discount_price' : 'discount_price' }}" id="{{ isset($isEdit) ? 'editdiscount_price' : 'discountPrice' }}" min="0" step="0.01">
    </div>
    <div class="col-md-4 mb-3">
        <label class="form-label">TCS (%)</label>
        <input type="number" class="form-control" name="{{ isset($isEdit) ? 'tcs' : 'tcs' }}" id="{{ isset($isEdit) ? 'edittcs' : 'tcs' }}" min="0" max="100" step="0.01">
    </div>
</div>
<div class="row">
    <div class="col-md-4 mb-3">
        <label class="form-label">Minimum Order Level *</label>
        <input type="number" class="form-control" name="{{ isset($isEdit) ? 'min_order_level' : 'min_order_level' }}" id="{{ isset($isEdit) ? 'editmin_order_level' : 'minOrderLevel' }}" min="0" required>
    </div>
    <div class="col-md-4 mb-3">
        <label class="form-label">Maximum Order Level *</label>
        <input type="number" class="form-control" name="{{ isset($isEdit) ? 'max_order_level' : 'max_order_level' }}" id="{{ isset($isEdit) ? 'editmax_order_level' : 'maxOrderLevel' }}" min="0" required>
    </div>
    <div class="col-md-4 mb-3">
        <label class="form-label">HSN Code</label>
        <input type="text" class="form-control" name="{{ isset($isEdit) ? 'hsn_code' : 'hsn_code' }}" id="{{ isset($isEdit) ? 'edithsn_code' : 'hsnCode' }}">
    </div>
</div>
<div class="row">
    <div class="col-md-6 mb-3">
        <label class="form-label">Supplier Name</label>
        <input type="text" class="form-control" name="{{ isset($isEdit) ? 'supplier_name' : 'supplier_name' }}" id="{{ isset($isEdit) ? 'editsupplier_name' : 'supplierName' }}">
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Supplier Phone</label>
        <input type="tel" class="form-control" name="{{ isset($isEdit) ? 'supplier_phone' : 'supplier_phone' }}" id="{{ isset($isEdit) ? 'editsupplier_phone' : 'supplierPhone' }}">
    </div>
</div>
<div class="row">
    <div class="col-md-6 mb-3">
        <label class="form-label">Supplier Email</label>
        <input type="email" class="form-control" name="{{ isset($isEdit) ? 'supplier_email' : 'supplier_email' }}" id="{{ isset($isEdit) ? 'editsupplier_email' : 'supplierEmail' }}">
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Reason (if any)</label>
        <input type="text" class="form-control" name="{{ isset($isEdit) ? 'reason' : 'reason' }}" id="{{ isset($isEdit) ? 'editreason' : 'reason' }}">
    </div>
</div>
