You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kwpayroll/app/Views/hr/employeeview.php

212 lines
8.8 KiB
PHTML

8 months ago
<!-- Extend area where template is defined -->
<?= $this->extend('templates/adminlte/generalcontent') ?>
<!-- .Extend -->
<!-- Title of the page -->
<?= $this->section('title') ?>Employee Maintenance<?= $this->endSection() ?>
<!-- .Title -->
<!-- CSS of the page -->
<?= $this->section('css') ?>
<?= $this->endSection() ?>
<!-- .CSS -->
<!-- body attribute - class definition -->
<?= $this->section('bodyclass') ?>sidebar-mini<?= $this->endSection() ?>
<!-- .body attribute -->
<!-- Container title -->
<?= $this->section('containertitle') ?>Employee Maintenance<?= $this->endSection() ?>
<!-- .Container title -->
<!-- Active breadcrumb -->
<?= $this->section('activebreadcrumb') ?>Employee Maintenance<?= $this->endSection() ?>
<!-- .Active breadcrumb -->
<!-- Main content -->
<?= $this->section('main') ?>
<!-- Modal Add Branch -->
<div class="modal fade" id="mdlAddEmployee">
<div class="modal-dialog">
<div class="modal-content">
<form action="<?= url_to('hr/addemp') ?>" method="post">
<div class="modal-header">
<h4 class="modal-title" >New Employee</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-12">
<p class="lead">Employee Information</p>
<div class="row">
<div class="col-12">
<p><strong>Company Name</strong></p>
<input type="hidden" name="company_id" value="<?= session()->get('companyInfo')->company_id ?>">
<p><?= session()->get('companyInfo')->company_name ?></p>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group">
<!-- select -->
<div class="form-group">
<label>Select Branch Assignment</label>
<select class="form-control" name="branch_code">
<?Php
foreach($branches as $branch){
$selected = ($branch->branch_code == old('branch_code')) ? 'selected' : '';
echo '<option value="'.$branch->branch_code.'" '.$selected.'>['.$branch->branch_code.'] '.$branch->branch_name.'</option>';
}
?>
</select>
</div>
</div>
<div class="form-group">
<!-- select -->
<div class="form-group">
<label>Select Department</label>
<select class="form-control" name="dept_id">
<?Php
foreach($departments as $department){
$selected = ($department->dept_id == old('dept_id')) ? 'selected' : '';
echo '<option value="'.$department->dept_id.'" '.$selected.'>['.$department->department_code.'] '.$department->department_name.'</option>';
}
?>
</select>
</div>
</div>
<div class="form-group">
<!-- select -->
<div class="form-group">
<label>Job Title</label>
<select class="form-control" name="job_title_id">
<?Php
foreach($jobTitles as $jobTitle){
$selected = ($jobTitle->job_title_id == old('job_title_id')) ? 'selected' : '';
echo '<option value="'.$jobTitle->job_title_id.'" '.$selected.'>'.$jobTitle->job_title_name.'</option>';
}
?>
</select>
</div>
</div>
<div class="form-group">
<!-- select -->
<div class="form-group">
<label>Employment Status</label>
<select class="form-control" name="emp_status_id">
<?Php
foreach($employmentStatus as $empStatus){
$selected = ($empStatus->emp_status_id == old('emp_status_id')) ? 'selected' : '';
echo '<option value="'.$empStatus->emp_status_id.'" '.$selected.'>'.$empStatus->status_name.'</option>';
}
?>
</select>
</div>
</div>
<div class="form-group">
<!-- select -->
<div class="form-group">
<label>Payroll Group</label>
<select class="form-control" name="pay_group_id">
<?Php
foreach($payGroups as $payGroup){
$selected = ($payGroup->pay_group_id == old('pay_group_id')) ? 'selected' : '';
echo '<option value="'.$payGroup->pay_group_id.'" '.$selected.'>'.$payGroup->pay_group_name.'</option>';
}
?>
</select>
</div>
</div>
8 months ago
<div class="form-group">
<label for="txtCompanyIssuedID">ID Number</label>
<input class="form-control" type="text" id="txtCompanyIssuedID" name="company_issued_id" value="<?= old('company_issued_id') ?>">
</div>
<div class="form-group">
<label for="txtLastname">Last Name</label>
<input class="form-control" type="text" id="txtLastname" name="last_name" value="<?= old('last_name') ?>">
</div>
<div class="form-group">
<label for="txtFirstName">First Name</label>
<input class="form-control" type="text" id="txtFirstName" name="first_name" value="<?= old('first_name') ?>">
</div>
<div class="form-group">
<label for="txtMiddleName">Middle Name</label>
<input class="form-control" type="text" id="txtMiddleName" name="middle_name" value="<?= old('middle_name') ?>">
</div>
<div class="form-group">
<label for="txtSuffix">Suffix (e.g. Jr, Sr, III)</label>
<input class="form-control" type="text" id="txtSuffix" name="suffix" value="<?= old('suffix') ?>">
</div>
<div class="form-group">
<label for="txtEmailAddress">Email Address</label>
<input class="form-control" type="text" id="txtEmailAddress" name="email_address" value="<?= old('email_address') ?>">
</div>
<div class="form-group">
<label for="txtContactNumber">Contact Number</label>
<input class="form-control" type="text" id="txtContactNumber" name="contact_number" value="<?= old('contact_number') ?>">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Save changes</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">List of Employees</h3>
</div>
<div class="card-body">
<div class="card-body table-responsive p-0">
<?= $tblEmployee ?>
</div>
</div>
<div class="card-footer">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#mdlAddEmployee">Add Employee</button>
</div>
</div>
</div>
</div>
<?= $this->endSection() ?>
<!-- .Main content -->
<!-- Javascript -->
<?= $this->section('js') ?>
<script>
$(document).ready(function() {
});
</script>
<?= $this->endSection() ?>
<!-- .Javascript -->