View CalendarApiComponent.php
public function getAvailableSlotOnDay($provider_id, $facility_id, $sdate, $slot_type)
{
$data = array();
if ($sdate == null) {
$sdate = Date::now()->toDateString();
}
// current time
$current_time = Time::now()->toDateTimeString();
Log::debug("Current Time : {$current_time}");
View CalendarApiComponent.php
public function getAvailableSlotByDay($provider_id, $facility_id, $sdate, $slot_type)
{
$data = array();
$day = $this->getDayIndex($sdate);
$date = new Date($sdate);
//$events_start = $date->toDateTimeString();
//$events_end = $date->addDays(1)->toDateTimeString();
View templates
// Patient cancel their tele-app
$notificationManager->addTemplate('cancelTeleAppointmentByPatient', [
'title' => 'Cancelled Tele Appointment',
'body' => 'Tele event has been cancelled.',
'smsbody' => 'Tele event has been cancelled.'
]);
// drugAlert
$notificationManager->addTemplate('drugAlert', [
View Payment-add.ctp
<div class="payments form col-lg-10 col-md-9 columns">
<?= $this->Form->create($payment);
//$url = $this->Url->build()
?>
<fieldset>
<legend><?= __('Submit Payment') ?></legend>
<div style="float: right">
<?= $this->Html->link('Cancel Appointment', ['controller' => 'Events', 'action' => 'cancelAppointment', $event_id], ['class' => 'btn-primary btn']) ?>
</div>
View PaymentsCtrl
<?php
namespace App\Controller;
use App\Controller\AppController;
use Cake\I18n\Date;
use Cake\I18n\Time;
use Cake\Log\Log;
use Cake\ORM\TableRegistry;
use Notifier\Utility\NotificationManager;
View EventsCtrl
<?php
namespace App\Controller;
use Aura\Intl\Exception;
use App\Controller\AppController;
use Cake\I18n\Date;
use Cake\I18n\Time;
use Cake\Log\Log;
use Shim\Model\Table\Table;
use Cake\ORM\TableRegistry;
View AlertShell.php
public function drugAlert() {
/**
* run on terminal
*
* bin/cake Alerts drugAlert
*
*/
// send notification to patient/caregiver/provider/fAdmin
View Events-cadd.ctp
<?php
echo $this->Html->script('moment/moment.min');
echo $this->Html->css('AdminLTE./bootstrap/css/bootstrap-datetimepicker.min');
echo $this->Html->script('AdminLTE./bootstrap/js/bootstrap-datetimepicker');
echo $this->Html->script('AdminLTE./plugins/datepicker/bootstrap-datepicker');
$log_role = $this->request->session()->read('Auth.User.role');
?>
View Events - cadd.ctp
<?php
echo $this->Html->script('moment/moment.min');
echo $this->Html->css('AdminLTE./bootstrap/css/bootstrap-datetimepicker.min');
echo $this->Html->script('AdminLTE./bootstrap/js/bootstrap-datetimepicker');
echo $this->Html->script('AdminLTE./plugins/datepicker/bootstrap-datepicker');
$log_role = $this->request->session()->read('Auth.User.role');
?>
View drug-alert
public function drugAlert() {
/**
* run on terminal
*
* bin/cake Alerts drugAlert
*
*/
// send notification to patient/caregiver/provider/fAdmin