156 lines
9.8 KiB
PHP
Executable File
156 lines
9.8 KiB
PHP
Executable File
<!--sidebar end-->
|
|
<!--main content start-->
|
|
<div class="app-content content">
|
|
<section class="content-wrapper">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h3 class="font-weight-bold">
|
|
<?php
|
|
echo lang('Approve timesheet');
|
|
?>
|
|
</h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr class="mt-0 mb-0" />
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12">
|
|
<div class="card pull-up">
|
|
<div class="card-content">
|
|
<div class="card-body">
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-6 text-left">
|
|
<h2 class="card-title">Caregiver Details</h2>
|
|
<ul class="list-unstyled patient-info-card">
|
|
<?php $name = $data->caregiver_fname." ".$data->caregiver_lname; ?>
|
|
<li><span class="patient-info-heading">Caregiver Name:</span><?= $name ?></li>
|
|
<li><span class="patient-info-heading">Phone:</span><?= $data->caregiver_phone ?></li>
|
|
<li><span class="patient-info-heading">Language:</span><?= $data->caregiver_language ?></li>
|
|
<li><span class="patient-info-heading">Gender:</span><?= $data->caregiver_gender ?></li>
|
|
<li><span class="patient-info-heading">Address:</span><?= $data->caregiver_address ?></li>
|
|
<li><span class="patient-info-heading">Country:</span><?= $data->caregiver_country ?></li>
|
|
<li><span class="patient-info-heading">State:</span><?= $data->caregiver_state ?></li>
|
|
<li><span class="patient-info-heading">City:</span><?= $data->caregiver_city ?></li>
|
|
<li><span class="patient-info-heading">Zipcode:</span><?= $data->caregiver_zipcode ?></li>
|
|
<li><span class="patient-info-heading">Level of Care:</span><?=$data->patient_level_of_care?></li>
|
|
<li><span class="patient-info-heading">Level of service:</span><?=$data->patient_level_service?></li>
|
|
<li><span class="patient-info-heading">Service activity:</span><?=$data->patient_service_activity?></li>
|
|
<li><span class="patient-info-heading">Therapy type:</span><?=$data->patient_therapy_type?></li>
|
|
<li><span class="patient-info-heading">Date:</span><?=$data->date?></li>
|
|
<li><span class="patient-info-heading">In Time:</span><?=$data->timeIn?></li>
|
|
<li><span class="patient-info-heading">Out Time:</span><?=$data->timeOut?></li>
|
|
<?php
|
|
$from_time = strtotime($data->timeIn);
|
|
$to_time = strtotime($data->timeOut);
|
|
$dateDiff = round(abs($to_time - $from_time) / 60,2);
|
|
$hours = intval($dateDiff/60);
|
|
$minutes = $dateDiff%60;
|
|
$period = $hours."Hrs ".$minutes."Mins";
|
|
?>
|
|
<li><span class="patient-info-heading">Period:</span><?=$period?></li>
|
|
|
|
</ul>
|
|
</div>
|
|
<div class="col-6">
|
|
<h2 class="card-title">Patient Details</h2>
|
|
<ul class="list-unstyled patient-info-card">
|
|
<li><span class="patient-info-heading">Patient Name:</span><?=$data->patient_name?></li>
|
|
<li><span class="patient-info-heading">Gender:</span><?=$data->patient_gender?></li>
|
|
<li><span class="patient-info-heading">Address:</span><?=$data->patient_address?></li>
|
|
<li><span class="patient-info-heading">Email:</span><?=$data->patient_email?></li>
|
|
<li><span class="patient-info-heading">Phone:</span><?=$data->patient_phone?></li>
|
|
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<form role="form" id="patientDischargeForm" action="<?php echo base_url(); ?>approve_timesheet/addNew" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="patient_id" value='<?php if (!empty($data->patient_id)) { echo $data->patient_id; } ?>'>
|
|
<input type="hidden" name="caregiver_id" value='<?php if (!empty($data->caregiver_id)) { echo $data->caregiver_id; } ?>'>
|
|
<input type="hidden" name="assessment_id" value='<?php if (!empty($data->id)) { echo $data->id; } ?>'>
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
|
|
|
|
|
<input type="hidden" class="form-control" name="date" id="exampleInputEmail1" value='<?php
|
|
if (!empty($data->date)) {
|
|
echo $data->date;
|
|
}
|
|
?>' placeholder="" readonly>
|
|
|
|
<input type="hidden" class="form-control" name="inTime" id="exampleInputEmail1" value='<?php
|
|
|
|
if (!empty($data->timeIn)) {
|
|
echo $data->timeIn;
|
|
}
|
|
?>' placeholder="" readonly>
|
|
|
|
<input type="hidden" class="form-control" name="outTime" value='<?php
|
|
|
|
if (!empty($data->timeOut)) {
|
|
echo $data->timeOut;
|
|
}
|
|
?>' placeholder="" readonly>
|
|
|
|
<input type="hidden" class="form-control" name="totalTime" value='<?php
|
|
|
|
if (!empty($period)) {
|
|
echo $period;
|
|
}
|
|
?>' placeholder="" readonly>
|
|
|
|
<div class="row">
|
|
<div class="form-group col-md-12">
|
|
<label ><?php echo lang('Comment'); ?></label>
|
|
<input type="text" class="form-control" name="comment" value="" placeholder="">
|
|
</div>
|
|
</div>
|
|
<div class="btn-group">
|
|
<button type="submit" name="submit" value="submit" class="btn btn-default"><?php echo lang('Approve'); ?></button>
|
|
</div>
|
|
<div class="btn-group">
|
|
<a class="btn btn-info btn-min-width" title="<?php echo lang('Back'); ?>" href="<?php echo base_url(); ?>payroll_timesheet">
|
|
<i class="fa fa-undo" aria-hidden="true"></i> <?php echo lang('Back'); ?>
|
|
</a>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|