241 lines
14 KiB
PHP
241 lines
14 KiB
PHP
<div class="row">
|
|
<div class="col-12">
|
|
<div class="<?= isset($ticket_form) ? "card" : "" ?>" style="margin-right: 23px;">
|
|
<div class="card-body">
|
|
<?php if(isset($ticket_form)){ ?>
|
|
<!-- Header Section -->
|
|
<div class="row mb-3">
|
|
<div class="col-6 d-flex align-items-center">
|
|
<h4 class="mb-0">Claim GMC</h4>
|
|
</div>
|
|
<div class="col-6 text-right">
|
|
<a href="<?= base_url('ticket/list'); ?>" aria-label="Back to ticket list">
|
|
<i class="fas fa-arrow-left" style="font-size: 17px;"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
<form role="form" class="parsley-examples" method="post" id="ticket_form_gmc" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" id="ticket_type_id" name="ticket_type_id" value="1">
|
|
|
|
<div class="form-group">
|
|
<div class="form-row">
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="claim_status">Status<span class="text-danger"></span></label>
|
|
<select class="form-control" id="claim_status_id" name="claim_status_id">
|
|
<option value="0">Select status</option>
|
|
<?php
|
|
if (isset($claim_status) && count($claim_status)) {
|
|
foreach ($claim_status as $key => $value) {
|
|
echo "<option value=" . $value['id'] . ">" . $value['claim_status'] . "</option>";
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="priority">Priority<span class="text-danger"></span></label>
|
|
<select class="form-control" id="priority" name="priority">
|
|
<option value="0">Select Priority</option>
|
|
<?php
|
|
if (isset($priorityType) && count($priorityType)) {
|
|
foreach ($priorityType as $key => $value) {
|
|
echo "<option value=" . $key . ">" . $value . "</option>";
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="acm_id">Account Manager<span class="text-danger"></span></label>
|
|
<select class="form-control" id="acm_id" name="acm_id">
|
|
<option value="0">Select Account Manager</option>
|
|
<?php
|
|
if (isset($acms) && count($acms)) {
|
|
foreach ($acms as $key => $value) {
|
|
echo "<option value=" . $value['id'] . ">" . $value['first_name'] . "</option>";
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="policy_no">Policy No<span class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="policy_no"
|
|
value="<?= isset($client['client_name']) ? $client['client_name'] : '' ?>"
|
|
name="policy_no" placeholder="Policy Number" readonly>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="insurer_id">Insurer<span class="text-danger"></span></label>
|
|
<input type=hidden id="insurer_id" name="insurer_id">
|
|
<input type=text class="form-control" id="insurer_name" placeholder="Insurer" readonly>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="tpa_id">TPA<span class="text-danger"></span></label>
|
|
<input type=hidden id="tpa_id" name="tpa_id">
|
|
<input type=text class="form-control" id="tpa_name" placeholder="TPA" readonly>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="client_name">Corporate Name<span class="text-danger"></span></label>
|
|
<input type="hidden" id="client_id" name="client_id">
|
|
<input type="text" class="form-control" id="client_name" placeholder="Client" readonly>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="emp_code">Employee ID <i class="fa fa-search text-danger"
|
|
aria-hidden="true" onclick="openFetchEmpDataodal(this)"></i> <span
|
|
class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="emp_code" placeholder="Enter Employee ID"
|
|
value="<?= isset($client['client_name']) ? $client['client_name'] : '' ?>"
|
|
name="emp_code">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="tpa_id">TPA ID<span class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="tpa_no" placeholder="Enter TPA ID"
|
|
value="<?= isset($client['short_name']) ? $client['short_name'] : '' ?>"
|
|
name="tpa_no">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="emp_name">Employee Name<span class="text-danger"></span></label>
|
|
<input type=hidden id="emp_id" name="emp_id">
|
|
<input type="text" class="form-control" id="emp_name" placeholder="Enter Employee Name"
|
|
value="<?= isset($client['short_name']) ? $client['short_name'] : '' ?>"
|
|
name="emp_name">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="insured_name"> Insured Name <span class="text-danger"></span></label>
|
|
<input type=hidden id="insured_emp_id" name="insured_emp_id">
|
|
<input class="form-control" id="insured_name" name="insured_name">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="relationship"> Relationship <span class="text-danger"></span></label>
|
|
<select class="form-control" id="relationship" name="relationship">
|
|
<option value="0">Select Relationship</option>
|
|
<?php
|
|
if (isset($relationshipType) && count($relationshipType)) {
|
|
foreach ($relationshipType as $key => $value) {
|
|
echo "<option value='" . $key . "'>" . $value . "</option>";
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="client_name">Employee Mobile No<span class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="emp_mobile" placeholder="Enter EMP Mobile"
|
|
value="<?= isset($client['client_name']) ? $client['client_name'] : '' ?>"
|
|
name="emp_mobile">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="emp_mail">Employee Mail ID<span class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="emp_mail" placeholder="Enter EMP Mail"
|
|
value="<?= isset($client['short_name']) ? $client['short_name'] : '' ?>"
|
|
name="emp_mail">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="mode_of_intimation"> Mode of Intimation <span
|
|
class="text-danger"></span></label>
|
|
<select class="form-control" id="mode_of_intimation" name="mode_of_intimation">
|
|
<option value="0">Select Mode</option>
|
|
<?php
|
|
if (isset($modeOFIntimate) && count($modeOFIntimate)) {
|
|
foreach ($modeOFIntimate as $key => $value) {
|
|
echo "<option value='" . $key . "'>" . $value . "</option>";
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="claim_type"> Claim Type <span class="text-danger"></span></label>
|
|
<select class="form-control" id="claim_type" name="claim_type">
|
|
<option value="0">Select claim Type</option>
|
|
<?php
|
|
if (isset($modeOFIntimate) && count($modeOFIntimate)) {
|
|
foreach ($modeOFIntimate as $key => $value) {
|
|
echo "<option value='" . $key . "'>" . $value . "</option>";
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="hospital_name">Hospital Name<span class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="hospital_name"
|
|
placeholder="Enter Hospital Name"
|
|
value="<?= isset($client['short_name']) ? $client['short_name'] : '' ?>"
|
|
name="hospital_name">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="doa">DOA<span class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="doa" placeholder="Enter DOA"
|
|
value="<?= isset($client['client_name']) ? $client['client_name'] : '' ?>"
|
|
name="doa">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="dod">DOD<span class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="dod" placeholder="Enter DOD"
|
|
value="<?= isset($client['short_name']) ? $client['short_name'] : '' ?>" name="dod">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="claim_amount">Claim Amount<span class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="claim_amount"
|
|
placeholder="Enter Claim Amount"
|
|
value="<?= isset($client['short_name']) ? $client['short_name'] : '' ?>"
|
|
name="claim_amount">
|
|
</div>
|
|
|
|
<div class="form-group col-md-3">
|
|
<label for="pod_no">POD No<span class="text-danger"></span></label>
|
|
<input type="text" class="form-control" id="pod_no" placeholder="Enter POD NO"
|
|
value="<?= isset($client['short_name']) ? $client['short_name'] : '' ?>"
|
|
name="pod_no">
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-md-12 text-right m-b-0" style="margin-top: 29px;">
|
|
<a href="#" class="btn btn-primary waves-effect waves-light mr-1" id="btnSubmit" onclick="claimFormSubmit('ticket_form_gmc')">Submit</a>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
|
|
var doa = flatpickr("#doa", {
|
|
dateFormat: "d/m/Y",
|
|
allowInput: false
|
|
});
|
|
|
|
var dod = flatpickr("#dod", {
|
|
dateFormat: "d/m/Y",
|
|
allowInput: false
|
|
});
|
|
|
|
})
|
|
</script>
|