<style type="text/css">
	.title-row{
		background-color: #dc3545;
		color: #fff;
		cursor: pointer;
	}
</style>


<?php $this->load->view('hr/staff-profiling/page/transaction/components/widget/workflow'); ?>
<section style="padding-bottom:2rem;">
	<div class="container">
		<?php // $this->load->view('hr/staff-profiling/page/transaction/components/widget/done_task'); ?>
	</div>
</section>


<div class="container">

<!-- FORMS -->
<section style="padding-bottom: 2rem;">

	<!-- form start here -->
	<form id="action_type_form">
		<div class="row">
<?php //if ($this->router->fetch_class()=='StaffProfile' && 
//$this->router->fetch_method()=='new_action_type') { ?>

			<!-- infotype form toggle -->
			<div class="col-lg-3 col-12">
				<div class="card bg-light-transparent">
					<div class="card-body">
						<div class="card no-shadow" >
							<div class="card-body">
								<h4 class="card-title">
									Info Type
								</h4>
								<br>
								<?php $this->load->view('hr/staff-profiling/page/transaction/components/widget/toggle_infotype'); ?>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- infotype form toggle -->
			<div class="col-lg-9 col-12">
<?php //} else 
	echo '<div class="col-lg-12 col-12">';?>
			<!-- action type form -->
			<!--div class="col-lg-9 col-12"-->
				<div class="card bg-light-transparent">
					<div class="card-body">
						<div class="card no-shadow" >
							<div class="card-body">
								<h4 class="card-title" data-toggle="collapse" href="#collapsePersonalData" role="button" aria-expanded="false" style="cursor:pointer;">
									<i class="fas fa-users-cog"></i> <?php echo($page_setup)?$page_setup['page_title']:''; ?>
								</h4>
								<hr>
								
	<!-- infotype form -->
	
	<?php $data['default'] = 'open'; 
	$this->load->view('hr/staff-profiling/page/transaction/components/infotype/personal_data'); ?>
	<?php if ($this->router->fetch_class()=='StaffProfile' && 
$this->router->fetch_method()=='new_action_type') { 
	$this->load->view('hr/staff-profiling/page/transaction/components/infotype/employment_detail'); } ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/address',$data); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/family_info'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/academic_qualification'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/education_in_progress'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/emergency_contact'); ?>



	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/additional_personal_data'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/previous_employment_detail'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/professional_membership'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/professional_licenses'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/professional_education'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/professional_certificate'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/recognition'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/contract_element'); ?>
	<?php if ($this->router->fetch_class()=='StaffProfile' && 
$this->router->fetch_method()=='new_action_type') { 
	$this->load->view('hr/staff-profiling/page/transaction/components/infotype/basic_pay'); 
	} ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/bank_details'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/statutory_details'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/recurring_payment_and_deduction'); ?>
	<?php $this->load->view('hr/staff-profiling/page/transaction/components/infotype/third_party_payment'); ?>
	<!-- end: infotype form -->

								<br>
								<div class="row">
									<div class="col-12 col-lg-4 ml-auto">
										<button type="submit" class="btn btn-success btn-block" id="btn-submit-form" screenshot><i class="fas fa-save"></i>Save</button>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- action type form -->

		</div>
	</form>
	<!-- form end here -->

</section>
</div>

<!-- modal -->
<?php $this->load->view('hr/staff-profiling/page/transaction/components/modal/edit/edit'); ?>
<?php $this->load->view('hr/staff-profiling/page/transaction/components/modal/new/new'); ?>
<!-- end: modal -->

<!-- scripts -->
<?php $this->load->view('hr/staff-profiling/page/transaction/components/scripts/action'); ?>
<?php $this->load->view('hr/staff-profiling/page/transaction/components/scripts/action-edit'); ?>
<?php $this->load->view('hr/staff-profiling/page/transaction/components/scripts/screenshots'); ?>
<!-- end: scripts -->