418 lines
28 KiB
PHP
Executable File

<!--sidebar end-->
<!--main content start-->
<?php
$dayArr=array();
$dayTimeArr=array();
foreach($master_schdule as $schedule){
$dayArr[$schedule->week_day][]=$schedule->id;
$dayTimeArr[$schedule->week_day][]=$schedule->from_time.' - '.$schedule->to_time;
}
?>
<style type="text/css">
.selectedTD{
background-color: skyblue !important;
cursor: pointer !important;
}
</style>
<div class="app-content content">
<section class="content-wrapper">
<div class="row">
<div class="col-12">
<div class="">
<div class="col-12">
<?php if($nurse->submited_for_verification=='no'){
if($progress>99){ $progress=100; }?>
<div class="col-md-12 card">
<label class="progres_bar"> Progress (<?php echo $progress; ?>%)</label>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: <?php echo $progress; ?>%;" aria-valuenow="<?php echo $progress; ?>" aria-valuemin="0" aria-valuemax="100"><?php echo $progress; ?>%</div>
</div>
<?php if($progress<100){ ?>
<span class="text-center text-danger custm_de">Please complete your profile.</span>
<?php }else{ ?>
<span class="text-center text-danger custm_de">Go to profile and click send for approval.</span>
<?php } ?>
</div>
<?php }else if($nurse->verification_status=='unverified'){?>
<div class="col-md-12 card">
<span class="text-center text-danger custm_de">Waiting for Verification.</span>
</div>
<?php } ?>
</div>
<div class="col-12 ">
<?php if($nurse->submited_for_verification=='yes' && $nurse->verification_status=='verified'){ ?>
<div class="state-overview col-md-12" >
<!-- <div class="clearfix">
<div class="col-lg-3 col-sm-6 card">
<section class="panel home_sec_blue">
<div class="symbol blue">
<i class="fa fa-users-medical"></i>
</div>
<div class="value">
<h3 class="">
<?php echo count($patient); ?>
</h3>
<p><?php echo lang('patient'); ?></p>
</div>
</section>
</div>
</div> -->
<div class="clearfix">
<!-- <div class="col-md-6 card">
<aside class="calendar_ui col-md-12 panel calendar_ui">
<section class="">
<div class="">
<div id="calendar" class="has-toolbar calendar_view"></div>
</div>
</section>
</aside>
</div> -->
<!-- <div class="col-md-12 table-responsive card">
<table class="table table-striped table-hover table-bordered" id="Patient-DataTable">
<thead>
<tr>
<th><?php echo lang('PatientId'); ?></th>
<th><?php echo lang('name'); ?></th>
<th><?php echo lang('Treatment Required'); ?></th>
<th><?php echo lang('phone'); ?></th>
<th><?php echo lang('options'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach($patient as $p){?>
<tr>
<td><?php echo $p->patient_id; ?></td>
<td><?php echo $p->first_name.' '.$p->last_name; ?></td>
<td><?php echo $p->level_of_care; ?></td>
<td><?php echo $p->cellphone; ?></td>
<td>
<a href="CaregiversDashboard/viewPatient" class="btn btn-success">View</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div> -->
</div>
<!-- <div class="clearfix">
<div class="col-md-12 card">
<div class="table-responsive">
<div class="adv-table editable-table ">
<div class="space15">MY SHEDULE</div>
<table class="table table-striped table-hover table-bordered">
<?php
foreach ($dayArr as $key => $value) {
echo '<tr>';
echo '<td rowspan="4">'.$key.'</td>';
for($i=0,$j=1;$i<count($value);$i++,$j++){
if(in_array($value[$i], $caregiverScheduleid))
{
$aloted='class="selectedTD"';
$removeId=$value[$i];
}else{
$aloted="";
$removeId=0;
}
echo '<td '.$aloted.' >';
echo $dayTimeArr[$key][$i];
echo '</td>';
if($j==6){ $j=0; echo '</tr><tr>'; }
}
echo '</tr>';
}
?>
</table>
</div>
</div>
</div>
</div> -->
<div class="clearfix card">
<div class="col-12">
<div class="row ">
<!-- <div class="col-3">
<div id='external-events'>
<h4>Draggable Events</h4>
<div class="fc-events-container">
<div class='fc-event' data-color='#2D95BF'>Event</div>
<div class='fc-event' data-color='#48CFAE'>Long Event</div>
<div class='fc-event' data-color='#50C1E9'>Meeting</div>
<div class='fc-event' data-color='#FB6E52'>Birthday party</div>
<div class='fc-event' data-color='#ED5564'>Lunch</div>
<div class='fc-event' data-color='#F8B195'>Conference Meeting</div>
<div class='fc-event' data-color='#6C5B7B'>Party</div>
<div class='fc-event' data-color='#355C7D'>Happy Hour</div>
<div class='fc-event' data-color='#547A8B'>Dance party</div>
<div class='fc-event' data-color='#3EACAB'>Dinner</div>
<p>
<input type='checkbox' id='drop-remove' />
<label for='drop-remove'>remove after drop</label>
</p>
</div>
</div>
</div> -->
<div class="col-11">
<div id='caregiver-calendar' class="rght_calndr mt_20"></div>
</div>
<div class="col-md-1">
<div class="align-items-center mt_20">
<a href="#" class="modal1 tooltip" data-toggle="modal" data-target="#exampleModal">
<span class="tooltiptext">CAREGIVER AVAILABILITY</span>
<i class="la la-calendar-o"></i>
</a><br>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog2 modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"><i class="la la-angle-right"></i></span>
</button>
<h5 class="modal-title" id="exampleModalLabel">Caregiver Availability</h5>
</div>
<div class="modal-body">
<div id="patient-Schedule">
<table class="table table-striped table-bordered dom-jQuery-events" cellspacing="0" width="100%">
<thead>
<tr>
<th><?php echo lang('Date'); ?></th>
<th><?php echo lang('From (Time)'); ?></th>
<th><?php echo lang('To (Time)'); ?></th>
<th><?php echo lang('Status'); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Not Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Running</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Not Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Running</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--- second modal ---->
<a href="#" class="modal2 tooltip" data-toggle="modal" data-target="#exampleModal2">
<span class="tooltiptext">PATIENT SCHEDULE</span>
<i class="la la-calendar-o"></i>
</a><br>
<div class="modal fade" id="exampleModal2" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog2 modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"><i class="la la-angle-right"></i></span>
</button>
<h5 class="modal-title" id="exampleModalLabel">Patient Schedule</h5>
</div>
<div class="modal-body">
<div id="patient-Schedule">
<table class="table table-striped table-bordered dom-jQuery-events" cellspacing="0" width="100%">
<thead>
<tr>
<th><?php echo lang('Date'); ?></th>
<th><?php echo lang('From (Time)'); ?></th>
<th><?php echo lang('To (Time)'); ?></th>
<th><?php echo lang('Status'); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Not Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Running</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Not Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Running</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--- third modal ---->
<a href="#" class="modal3 tooltip" data-toggle="modal" data-target="#exampleModal3">
<span class="tooltiptext">PREVIOUS SCHEDULE</span>
<i class="la la-calendar-o"></i><br>
</a>
<div class="modal fade" id="exampleModal3" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog2 modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"><i class="la la-angle-right"></i></span>
</button>
<h5 class="modal-title" id="exampleModalLabel">Previous Schedule of <?php echo $caregiver->fname.' '.$caregiver->lname; ?></h5>
</div>
<div class="modal-body">
<div id="Caregiver-Schedule2">
<table class="table table-striped table-bordered dom-jQuery-events" cellspacing="0" width="100%">
<thead>
<tr>
<th><?php echo lang('Date'); ?></th>
<th><?php echo lang('From (Time)'); ?></th>
<th><?php echo lang('To (Time)'); ?></th>
<th><?php echo lang('Status'); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Not Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Running</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Not Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Done</td>
</tr>
<tr>
<td>2020/09/25</td>
<td>8:00 AM</td>
<td>9:00 AM</td>
<td style="color: #de2066;">Running</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</section>
</div>
<script>
$(document).ready(function () {
$('#Patient-DataTable').DataTable();
var calendar=$('#caregiver-calendar').fullCalendar({
// header: {
// left: 'prev,next today',
// center: 'title',
// right: 'month,agendaWeek,agendaDay'
// },
allDaySlot: false,
defaultView:"agendaWeek",
columnHeaderFormat: 'D - ddd',
editable: false,
droppable: false, // this allows things to be dropped onto the calendar
defaultDate: new Date(),
//defaultView: 'agendaWeek',
slotDuration: '01:00',
defaultTimedEventDuration: '00:60:00',
forceEventDuration: true,
eventOverlap: false,
events: {
url: 'CaregiversDashboard/caregiverEventDetails/',
data: {id : <?php echo $nurse->id; ?>},
error: function() {
alert('error');
}
}
});
});
</script>
<!--main content end-->
<!--footer start-->