Skip to content

Instantly share code, notes, and snippets.

View iaditya's full-sized avatar
🐢
Learning

Aditya Pansari iaditya

🐢
Learning
View GitHub Profile
<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>
<?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;
<?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;
public function drugAlert() {
/**
* run on terminal
*
* bin/cake Alerts drugAlert
*
*/
// send notification to patient/caregiver/provider/fAdmin
<?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');
?>
<?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');
?>
public function drugAlert() {
/**
* run on terminal
*
* bin/cake Alerts drugAlert
*
*/
// send notification to patient/caregiver/provider/fAdmin
public function appointments()
{
/**
* run on terminal
*
* bin/cake Alerts appointments arg[minutes]
*
*/
public function editCaregivers($id = null)
{
if ($this->request->session()->read('Auth.User.role') == "Patient") {
$patient_user_id = $this->request->session()->read('Auth.User.id');
$patient = $this->Patients->findByUserId($patient_user_id)
->contain(['Users', 'Facilities', 'PatientAddresses', 'Languages'])->first();
} else {
$patient = $this->Patients->get($id, [
public function addCaregiver($patient, $p)
{
if ($p == 1) {
//debug("hh"); exit;
$caregiver1_email = $patient->primary_contact_email ? $patient->primary_contact_email : null;
$caregiver1_mobile = $patient->primary_contact_phone1 ? $patient->primary_contact_phone1 : null;
$caregiver1_name = $patient->primary_contact_name ? $patient->primary_contact_name : null;
$data['caregiver_type'] = 0;
}