<section class="container" style="padding-bottom: 2rem;">
	<div class="card no-shadow">
        <div class="card-body">
            <h2>Add Claim Allocation</h2>
            <hr>
            <form method="post" action="<?php echo base_url('hr/overtime/addOvertimeDetail') ?>">
                <div class="row form-group">
                    <div class="col-lg-3">
                        <label for="name">Name</label>
                    </div>
                    <div class="col">
                        <select class="form-control select" name="name" id="name" placeholder="Select Staff">
                            <option value="-1">Select Staff</option>
                            <?php if(!empty($staff)) foreach ($staff as $row): ?>
                                <option value="<?php echo $row['id'];?>"><?php echo $row['name'];?></option>

                            <?php endforeach ?>                                                        
                        </select>
                    </div>
                </div>  
                <div class="row form-group">
                    <div class="col-lg-3">
                        <label for="outpatient">Outpatient Benefit per Year</label>
                    </div>
                    <div class="col">
                        <?php if(!empty($outpatient)) foreach ($outpatient as $row): ?>
                            <div class="form-check">
                                <label class="form-check-label">
                                    <input type="radio" class="form-check-input radio-primary" name="outpatient" id="outpatient">
                                    <?php echo $row['description'] ?> - RM <?php echo number_format($row['amount'], 2) ?>
                                </label>
                            </div>
                        <?php endforeach ?>
                    </div> 
                </div>
                <div class="row form-group">
                    <div class="col-lg-3">
                        <label for="hospitalization">Hospitalization Benefit per Year</label>
                    </div>
                    <div class="col">
                        <?php if(!empty($hospitalization)) foreach ($hospitalization as $row): ?>
                            <div class="form-check">
                                <label class="form-check-label">
                                    <input type="radio" class="form-check-input radio-primary" name="outpatient" id="outpatient">
                                    <?php echo $row['description'] ?> - RM <?php echo number_format($row['amount'], 2) ?>
                                </label>
                            </div>
                        <?php endforeach ?>
                    </div>
                </div>
                <div class="row form-group">
                    <div class="col-lg-3">
                        <label for="room">Room Package</label>
                    </div>
                    <div class="col">
                        <?php if(!empty($room)) foreach ($room as $row): ?>
                            <div class="form-check">
                                <label class="form-check-label">
                                    <input type="radio" class="form-check-input radio-primary" name="outpatient" id="outpatient">
                                    <?php echo $row['description'] ?> - RM <?php echo number_format($row['amount'], 2) ?>
                                </label>
                            </div>
                        <?php endforeach ?>
                    </div>
                </div>
                <div class="row form-group">
                    <div class="col-lg-3">
                        <label for="dental&optical">Dental & Optical Benefit per Year</label>
                    </div>
                    <div class="col">
                        <?php if(!empty($dental)) foreach ($dental as $row): ?>
                            <div class="form-check">
                                <label class="form-check-label">
                                    <input type="radio" class="form-check-input radio-primary" name="outpatient" id="outpatient">
                                    <?php echo $row['description'] ?> - RM <?php echo number_format($row['amount'], 2) ?>
                                </label>
                            </div>
                        <?php endforeach ?>
                    </div>
                </div>
                <div class="row form-group">
                    <div class="col-lg-3">
                        <label for="status">Status</label>
                    </div>
                    <div class="col">
                         <div class="form-check">
                            <label class="form-check-label">
                                <input type="radio" class="form-check-input" name="status" id="status">
                                Active
                            </label>
                        </div>
                        <div class="form-check">
                            <label class="form-check-label">
                                <input type="radio" class="form-check-input" name="status" id="status">
                                Inactive
                            </label>
                        </div>
                    </div>
                </div> 
                <div class="row form-group">
                    <div class="col-lg-3">
                        <label for="approver">Approver Name</label>
                    </div>
                    <div class="col">
                        <select class="form-control select" name="approver" id="approver" placeholder="Select Approver">
                            <option value="-1">Select Approver</option>
                            <?php if(!empty($staff)) foreach ($staff as $row): ?>
                                <option value="<?php echo $row['id'];?>"><?php echo $row['name'];?></option>
                            <?php endforeach ?>                                                        
                        </select>
                    </div>
                </div> 
                <div class="row form-group">
                    <div class="col-lg-3">
                        <label for="start_date">Start Date</label>
                    </div>
                    <div class="col">
                       <input type="text" class="form-control datepicker" id="start_date">
                    </div>
                </div> 
                <div class="row form-group">
                    <div class="col-lg-3">
                        <label for="end_date">End Date</label>
                    </div>
                    <div class="col">
                        <input type="text" class="form-control datepicker" id="end_date">
                    </div>
                </div> 
            </form>
        </div>
        <div class="card-footer bg-white">
            <div class="btn-group float-right">
                <button type="button" class="btn btn-primary">Cancel</button>
                <button type="button" class="btn btn-light text-primary"><i class="fas fa-save text-primary" style="color: blue"></i> Save</button>
            </div>
        </div>
    </div>
</section>

<script>
    $(document).ready(function(){
    
    });

    function roomPackage(){
        if ($('#managernabove').is(':checked')) {
            $('#manager').removeClass('d-none');
        }else if($('#supervior&asst').is(':checked')){
            $('#manager').removeClass('d-none');
        }
    }
</script>
