<!-- basic pay -->
<section id="sect-basic-pay" class="border p-3 d-none">
	<div class="row title-row" data-toggle="collapse" href="#collapseBasicPay" role="button" aria-expanded="false">
		<div class="col-12">
			<h3 id="sect-basic-pay-header">Basic Pay</h3>
		</div>
	</div>
	<div id="collapseBasicPay">
		<div class="row">
			<div class="col-12 col-lg-6">
				<label><b>Pay Scale Group</b></label>
				<select class="form-control" name="basic_pay_scale_group">
					<?php foreach ($jobPositions as $key => $post): ?>
						<!-- <option value="<?php //echo $post->grade; ?>"><?php //echo $post->grade; ?> -->
						<option value="<?php echo $post->id; ?>"><?php echo $post->grade; ?>
							<?php if($post->level > 0){ ?>
								(<?php echo integerToRoman($post->level); ?>)
							<?php } ?>
						</option>
					<?php endforeach ?>
					
				</select>
			</div>
			<div class="col-12 col-lg-6">
				<label><b>Amount</b></label>
				<div class="input-group">
				  <div class="input-group-prepend">
				    <span class="input-group-text">RM</span>
				  </div>
				  <input type="number" class="form-control" name="basic_pay_amount" value="<?php echo(!empty($basic_pay->amount))?$basic_pay->amount:''; ?>">
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-12 col-lg-6">
				<label><b>Start Date</b></label>
				<input type="text" class="form-control" name="basic_pay_date_start" value="<?php echo (!empty($basic_pay->start_date))?date('d-m-Y',strtotime($basic_pay->start_date)):date('d-m-Y'); ?>" readonly>
			</div>
			<div class="col-12 col-lg-6">
				<label><b>End Date</b></label>
				<input type="text" class="form-control datepicker" name="basic_pay_date_end" value="<?php echo (!empty($basic_pay->end_date))?date('d-m-Y',strtotime($basic_pay->end_date)):date('d-m-Y'); ?>">
			</div>
		</div>

		<div class="row">
			<div class="col-6">
				<label><b>Reason</b></label>
				<input type="text" class="form-control" rows="5" name="basic_pay_reason" value="<?php echo (!empty($basic_pay->reason))?$basic_pay->reason:''; ?>">
			</div>
			<div class="col-6">
				<label><b>Status</b></label>
				<select class="form-control" name="basic_pay_status">
					<option value="1">Active</option>
					<option value="0">Inactive</option>
				</select>
			</div>
		</div>
	</div>
</section>
<!-- basic pay -->