FEAT_HEAD_APPROVE_AND_REJECT_FOR_GPA_SRI
This commit is contained in:
parent
e8cb7a2845
commit
5bebb7217f
@ -98,7 +98,7 @@ class ChatbotControllerNew extends BaseController
|
|||||||
});
|
});
|
||||||
// Start the Main Menu when user says "hi" or "start"
|
// Start the Main Menu when user says "hi" or "start"
|
||||||
$this->botman->hears('start|hi|hello', function (BotMan $bot) {
|
$this->botman->hears('start|hi|hello', function (BotMan $bot) {
|
||||||
$bot->reply('Hi how can i assit?');
|
$bot->reply('Hi how can i assist?');
|
||||||
$bot->startConversation(new MainMenuConversation());
|
$bot->startConversation(new MainMenuConversation());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -300,6 +300,7 @@
|
|||||||
<?php if(get_role_id() == 5 && isset($ticket_data) && $ticket_data['claim_status_id'] == 8) { ?>
|
<?php if(get_role_id() == 5 && isset($ticket_data) && $ticket_data['claim_status_id'] == 8) { ?>
|
||||||
<a class="btn btn-secondary waves-effect waves-light mr-1" onclick="showConfirmationModal(event)">Rejected Approve</a>
|
<a class="btn btn-secondary waves-effect waves-light mr-1" onclick="showConfirmationModal(event)">Rejected Approve</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
<!-- <button type="button" class="btn btn-primary waves-effect waves-light mr-1" id="btnApprove" >Approve</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -308,6 +309,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// $(document).ready(function() {
|
||||||
|
// var calim_status = $('#claim_status_id').val();
|
||||||
|
// if (calim_status == 8){
|
||||||
|
// $('#btnApprove').show();
|
||||||
|
// }else{
|
||||||
|
// $('#btnApprove').hide();
|
||||||
|
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|||||||
@ -29,6 +29,8 @@
|
|||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|
||||||
<input type="hidden" id="ticket_master_id" name="ticket_master_id" value="<?= isset($ticket_data['id']) ? $ticket_data['id'] : '' ?>">
|
<input type="hidden" id="ticket_master_id" name="ticket_master_id" value="<?= isset($ticket_data['id']) ? $ticket_data['id'] : '' ?>">
|
||||||
|
<input type="hidden" id="is_head_approved" name="is_head_approved" value="<?= isset($ticket_data['is_head_approved']) ? $ticket_data['is_head_approved'] : '' ?>">
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="claim_status">Status<span class="text-danger"></span></label>
|
<label for="claim_status">Status<span class="text-danger"></span></label>
|
||||||
@ -230,6 +232,9 @@
|
|||||||
<div class="form-group col-md-12 text-right m-b-0" style="margin-top: 29px;">
|
<div class="form-group col-md-12 text-right m-b-0" style="margin-top: 29px;">
|
||||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1"
|
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1"
|
||||||
id="btnSubmit">Submit</button>
|
id="btnSubmit">Submit</button>
|
||||||
|
<?php if(get_role_id() == 5 && isset($ticket_data) && in_array($ticket_data['claim_status_id'],[23,33,43])) { ?>
|
||||||
|
<a class="btn btn-secondary waves-effect waves-light mr-1" onclick="showConfirmationModal(event)">Rejected Approve</a>
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -71,7 +71,7 @@ table.dataTable tbody td {
|
|||||||
<td data-toggle="tooltip" data-placement="top" title="<?php echo $row['status']; ?>">
|
<td data-toggle="tooltip" data-placement="top" title="<?php echo $row['status']; ?>">
|
||||||
<span class="status-tooltip">
|
<span class="status-tooltip">
|
||||||
<?php
|
<?php
|
||||||
if ($row['claim_status_id'] == 8) {
|
if (in_array($row['claim_status_id'],[8,23,33,43])) {
|
||||||
if ($row['is_head_approved'] == 0) {
|
if ($row['is_head_approved'] == 0) {
|
||||||
echo $row['status'] . ' <i class="fa fa-exclamation-triangle" style="color:red;" aria-hidden="true"></i>';
|
echo $row['status'] . ' <i class="fa fa-exclamation-triangle" style="color:red;" aria-hidden="true"></i>';
|
||||||
} elseif ($row['is_head_approved'] == 1) {
|
} elseif ($row['is_head_approved'] == 1) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user