<div class="note note-info"> <?php if($type == \App\Models\HostelFee::ELECTRIC): ?> <p> VD: Định mức 1 = 10; Đơn giá mức 1: 3.000. Tức là 10 KW đầu giá là 3.000 <br> Định mức 2 = 20; Đơn giá mức 2: 2.000. Tức là 20 KW tiếp theo giá là 2.000 <br> Nếu nhà trọ đang thu cố định 3.000đ/kwh thì bạn hãy điền định mức 1 là 1 số lớn (ví dụ 10000) và giá tiền định mức 1 là 3000 <?php else: ?> VD: Định mức 1 = 4; Đơn giá mức 1: 5.000. Tức là 4 khối đầu giá là 5.000 <br> Định mức 2 = 2; Đơn giá mức 2: 10.000. Tức là 2 khối tiếp theo giá là 10.000 <br> Nếu nhà trọ đang thu cố định 3.000đ/khối thì bạn hãy điền định mức 1 là 1 số lớn (ví dụ 10000) và giá tiền định mức 1 là 3000 <?php endif; ?> </div> <form id="form-hostel-quota" action="#"> <input type="hidden" name="hostel_id" value="<?php echo e($hostel->id); ?>"> <input type="hidden" name="type" value="<?php echo e($type); ?>"> <input type="hidden" name="fee_id" value="<?php echo e($feeId); ?>"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Định mức 1</th> <th>Định mức 2</th> <th>Định mức 3</th> <th>Định mức 4</th> <th>Định mức 5</th> <th>Định mức 6</th> <th>Định mức 7</th> </tr> </thead> <tbody> <tr> <td> <div class="form-group"><input class="form-control" name="quota_1" type="number" value="<?php echo e(!empty($item) ? $item->quota_1 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="quota_2" type="number" value="<?php echo e(!empty($item) ? $item->quota_2 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="quota_3" type="number" value="<?php echo e(!empty($item) ? $item->quota_3 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="quota_4" type="number" value="<?php echo e(!empty($item) ? $item->quota_4 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="quota_5" type="number" value="<?php echo e(!empty($item) ? $item->quota_5 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="quota_6" type="number" value="<?php echo e(!empty($item) ? $item->quota_6 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="quota_7" type="number" value="<?php echo e(!empty($item) ? $item->quota_7 : 0); ?>"></div> </td> </tr> </tbody> </table> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <th>Đơn giá mức 1</th> <th>Đơn giá mức 2</th> <th>Đơn giá mức 3</th> <th>Đơn giá mức 4</th> <th>Đơn giá mức 5</th> <th>Đơn giá mức 6</th> <th>Đơn giá mức 7</th> </tr> </thead> <tbody> <tr> <td> <div class="form-group"><input class="form-control" name="price_quota_1" type="number" value="<?php echo e(!empty($item) ? $item->price_quota_1 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="price_quota_2" type="number" value="<?php echo e(!empty($item) ? $item->price_quota_2 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="price_quota_3" type="number" value="<?php echo e(!empty($item) ? $item->price_quota_3 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="price_quota_4" type="number" value="<?php echo e(!empty($item) ? $item->price_quota_4 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="price_quota_5" type="number" value="<?php echo e(!empty($item) ? $item->price_quota_5 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="price_quota_6" type="number" value="<?php echo e(!empty($item) ? $item->price_quota_6 : 0); ?>"></div> </td> <td> <div class="form-group"><input class="form-control" name="price_quota_7" type="number" value="<?php echo e(!empty($item) ? $item->price_quota_7 : 0); ?>"></div> </td> </tr> </tbody> </table> </form>