Merge branch 'dev' of bitbucket.org:jubilian/nhance into dev

This commit is contained in:
VENKATESHWARAN 2025-09-06 09:55:04 +05:30
commit ee3baf9ce0
24 changed files with 1876 additions and 499 deletions

View File

@ -628,6 +628,8 @@ $routes->group("/ticket", ["filter" => "authMVC"], function ($routes) {
$routes->post('upload_url',"TicketController::upload_url"); $routes->post('upload_url',"TicketController::upload_url");
$routes->post('getUrlDataByTicketId',"TicketController::getUrlDataByTicketId"); $routes->post('getUrlDataByTicketId',"TicketController::getUrlDataByTicketId");
$routes->get('remove_url',"TicketController::remove_url"); $routes->get('remove_url',"TicketController::remove_url");
$routes->get('fetchVehiclePolicy/(:any)','TicketController::fetchVehiclePolicy/$1');
}); });
$routes->group("clientApi",["filter" => "AuthClientApi"], function ($routes){ $routes->group("clientApi",["filter" => "AuthClientApi"], function ($routes){

View File

@ -22,6 +22,8 @@ use App\Models\EmployeeModel;
use App\Models\TPAModel; use App\Models\TPAModel;
use App\Models\ClaimFilesModel; use App\Models\ClaimFilesModel;
use App\Models\ClaimDumpFileModel; use App\Models\ClaimDumpFileModel;
use App\Models\VehicleModel;
use App\Models\PartnerPolicyModel;
use DOMDocument; use DOMDocument;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
@ -62,6 +64,8 @@ class TicketController extends BaseController
protected $TPAModel; protected $TPAModel;
protected $claimFilesModel; protected $claimFilesModel;
protected $claimDumpFileModel; protected $claimDumpFileModel;
protected $vehicleModel;
protected $partnerPolicyModel;
public function __construct() public function __construct()
{ {
@ -71,7 +75,7 @@ class TicketController extends BaseController
$this->ticketMasterModel = new TicketMasterModel(); $this->ticketMasterModel = new TicketMasterModel();
$this->ticketType = [1 => "Claim-GMC", 2 => "Claim-GPA", 3 => "EDLI", 4 => "GTLI"]; $this->ticketType = [1 => "Claim-GMC", 2 => "Claim-GPA", 3 => "EDLI", 4 => "GTLI", 8 => "Motor"];
$this->priorityType = [ $this->priorityType = [
1 => "Low", 1 => "Low",
2 => "Medium", 2 => "Medium",
@ -348,6 +352,8 @@ class TicketController extends BaseController
$this->TPAModel = new TPAModel(); $this->TPAModel = new TPAModel();
$this->claimFilesModel = new ClaimFilesModel(); $this->claimFilesModel = new ClaimFilesModel();
$this->claimDumpFileModel = new ClaimDumpFileModel(); $this->claimDumpFileModel = new ClaimDumpFileModel();
$this->vehicleModel = new VehicleModel();
$this->partnerPolicyModel = new PartnerPolicyModel();
} }
public function ticketList() public function ticketList()
@ -684,6 +690,9 @@ class TicketController extends BaseController
case 4: case 4:
$data['ticket_form'] = 'GTLI'; $data['ticket_form'] = 'GTLI';
break; break;
case 8:
$data['ticket_form'] = 'Motor';
break;
} }
// Fetch ACM Users // Fetch ACM Users
@ -719,11 +728,78 @@ class TicketController extends BaseController
$data['claim_type'] = $this->claimType[2]; $data['claim_type'] = $this->claimType[2];
} }
$data['client_for_motor'] = $this->clientModel->select('id,client_name')->where('client_type', 2)->where('is_active', 1)->findAll();
$this->myLogger->logme('error', "Ticket form data fetched successfully for Ticket Type: $ticket_type"); $this->myLogger->logme('error', "Ticket form data fetched successfully for Ticket Type: $ticket_type");
return $data; return $data;
} }
public function fetchVehiclePolicy($id)
{
$method = $this->request->getMethod();
try {
if (!$id) {
throw new \Exception('Invalid ID', 400);
}
if ($method === 'get') {
$data['vehicle_list'] = $this->vehicleModel
->where('is_active', 1)
->where('owner', $id)
->findAll();
$data['partner_policy_list'] = $this->partnerPolicyModel
->where('is_active', 1)
->findAll();
$client = $this->clientModel
->where('is_active', 1)
->where('id', $id)
->first();
$data['email'] = !empty($client) ? $client['email'] : null;
$data['phone'] = !empty($client) ? $client['phone'] : null;
if (empty($data['vehicle_list']) && empty($data['partner_policy_list'])) {
throw new \Exception('No Records found', 404);
}
return $this->response
->setJSON(['status' => 'success', 'data' => $data])
->setStatusCode(200);
}
throw new \Exception('Invalid request method', 405);
} catch (\Throwable $e) {
$code = ($e->getCode() && $e->getCode() >= 100 && $e->getCode() < 600) ? $e->getCode() : 500;
$isDbError = $e instanceof \CodeIgniter\Database\Exceptions\DatabaseException
|| $e instanceof \mysqli_sql_exception
|| $e instanceof \PDOException;
$context = [
'title' => get_class($e),
'type' => get_class($e),
'code' => $code,
'message' => $e->getMessage(),
'file' => $e->getFile(),
'line' => $e->getLine()
];
$this->myLogger->logme('error', "Exception: {message} in {file} on line {line}", $context, 0);
return $this->response->setJSON([
'status' => 'error',
'message' => $isDbError ? 'Data Access Error' : $e->getMessage(),
'ref' => ($isDbError ? 'database - ' : 'application - ') . $code . ' - ' . $e->getLine()
])->setStatusCode($code);
}
}
//transform the claim status //transform the claim status
public function transFormClaimStatus($claimStatusId, $ticket_type) public function transFormClaimStatus($claimStatusId, $ticket_type)
{ {

View File

@ -0,0 +1,42 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class PartnerPolicyModel extends Model
{
protected $table = 'partner_policy';
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
// Allowed fields (make sure to include only updatable/insertable ones)
protected $allowedFields = [
'quotation_id',
'insured_name',
'rc_no',
'premium_amount',
'policy_number',
'payment_mode',
'policy_pdf_file_name',
'policy_payment_receipt_file_name',
'is_active',
'issued_date',
'start_date',
'end_date',
'manager_id',
'client_id',
'client_policy_id',
'vehicle_id',
'policy_transaction_id',
'pt_oc_share_details_id',
'created_by',
'updated_by'
];
// Optional settings
protected $useTimestamps = true; // enables auto timestamp
protected $createdField = 'created_on';
protected $updatedField = 'updated_on';
protected $dateFormat = 'datetime';
}

View File

@ -64,6 +64,28 @@ input:checked + .slider:before {
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div class="card-body"> <div class="card-body">
<div class="form-row">
<div class="form-group">
<label for="">Upload Your Logo</label> <br>
<img
src="<?= isset($client['client_logo']) && !empty($client['client_logo']) ? base_url() . "public/uploads/logo/" . $client['client_logo'] : base_url()."public/assets/images/avatar_2x.png" ?>"
width="75" height="75"
id="uploadPreview"
class="avatar img-circle img-thumbnail"
style="border-radius:25px; border:1px solid #00999E;padding:10px;color:#00999E;"
alt="avatar"/>
<span style="margin-bottom:5px;">
<input type="file" name="client_logo" id="client_logo" accept="image/*" onchange="PreviewImage();"><br>
<i class="text">( Image dimensions 100 x 100 pixels and size of 200KB. )</i>
</span>
<br>
</div>
</div>
<form role="form" class="parsley-examples" method="post" id="general_form" enctype="multipart/form-data"> <form role="form" class="parsley-examples" method="post" id="general_form" enctype="multipart/form-data">
<input type="hidden" value="<?= csrf_hash() ?>" name="<?= csrf_token() ?>" /> <input type="hidden" value="<?= csrf_hash() ?>" name="<?= csrf_token() ?>" />
<input type="hidden" name="PrimaryKey" id="general_PrimaryKey" value="<?= isset($client['id']) ? $client['id'] : '' ?>"/> <input type="hidden" name="PrimaryKey" id="general_PrimaryKey" value="<?= isset($client['id']) ? $client['id'] : '' ?>"/>
@ -125,16 +147,7 @@ input:checked + .slider:before {
</div> </div>
<hr> <hr>
</div> </div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="gst">Logo</label>
<input type="file" name="client_logo" id="client_logo" accept="image/*" onchange="PreviewImage();"><br>
<i class="text">( Image dimensions 100 x 100 pixels and size of 200KB. )</i>
</div>
<div class="form-group col-md-6 float-right" style="position: relative;top: 20px;">
<img src="<?= isset($client['client_logo']) && !empty($client['client_logo']) ? base_url() . "public/uploads/logo/" . $client['client_logo'] : base_url()."public/assets/images/avatar_2x.png" ?>" width="100" height="100" id="uploadPreview" class="avatar img-circle img-thumbnail" alt="avatar"/>
</div>
</div>
<!-- <div> <!-- <div>
<label class="switch"> <label class="switch">
@ -346,7 +359,7 @@ input:checked + .slider:before {
if (!allowedExtensions.includes(fileExtension) || file.size > 200 * 1024) { if (!allowedExtensions.includes(fileExtension) || file.size > 200 * 1024) {
toastr.warning('Maximum file size allowed is 200KB.', 'File size exceeds limit.'); toastr.warning('Maximum file size allowed is 200KB.', 'File size exceeds limit.');
fileInput.value = ""; // Clear the file input fileInput.value = ""; // Clear the file input
document.getElementById("uploadPreview").src = "http://ssl.gstatic.com/accounts/ui/avatar_2x.png"; // Remove the preview image document.getElementById("uploadPreview").src = "<?= base_url()?>/public/assets/images/avatar_2x.png"; // Remove the preview image
} else { } else {
var reader = new FileReader(); var reader = new FileReader();
reader.readAsDataURL(file); reader.readAsDataURL(file);

View File

@ -1,3 +1,11 @@
<style>
#relationship_manager {
border-collapse: separate; /* important */
border-spacing: 20px 0; /* 20px horizontal, 0 vertical */
}
</style>
<div id="client_info"> <div id="client_info">
<div class="row"> <div class="row">
@ -34,62 +42,25 @@
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion"> <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body" style="position: relative;bottom: 25px;"> <div class="card-body" style="position: relative;bottom: 25px;">
<h2>Relationship Manager</h2>
<br>
<div class="row"> <div class="row">
<!-- <table id="relationship_manager">
<div class="col-6"> <thead>
<tr style="color:black;">
<table data-custom-table-css="table"> <th>Account Manager</th>
<tr> <th>Manager</th>
<td style="font-size: 18px;"></td> <th>Head</th>
</tr> </tr>
</thead>
<tbody>
<tr style="color:black;">
<td><?= implode(', ', $account_managers) ?></td>
<td><?= implode(', ', $managers) ?></td>
<td><?= implode(', ', $heads) ?></td>
</tr>
</tbody>
</table> </table>
</div> -->
<div class="col-6">
<table data-custom-table-css="table">
<tr>
<td style="font-size: 18px;"> <strong> Relationship Manager </strong></td>
</tr>
</table>
</div>
</div>
<br>
<div class="row">
<!-- <div class="col-6">
<table data-custom-table-css="table">
<tr>
<td style="padding: 3px;"></td>
</tr>
<tr>
<td style="padding: 3px;"></td>
</tr>
</table>
</div> -->
<div class="col-6">
<table data-custom-table-css="table">
<tr>
<td style="padding: 3px;"><label> Account Manager :
</label> <?= implode(', ', $account_managers) ?></td>
</tr>
<tr>
<td style="padding: 3px;"><label> Manager :
</label> <?= implode(', ', $managers) ?></td>
</tr>
<tr>
<td style="padding: 3px;"><label> Head : </label>
<?= implode(', ', $heads) ?>
</td>
</tr>
</table>
</div>
</div> </div>

View File

@ -1,4 +1,35 @@
<style> <style>
#kyc_table #tbody td,
#other_docs_table tbody td
{
background-color: white !important;
}
#kyc_table #tbody tr ,
#other_docs_table tbody tr
{
box-shadow: 0px 2px 4px 0px #00000024;
background-color: white;
border-radius: 10px;
}
#kyc_table #tbody tr:hover td ,
#other_docs_table tr:hover td
{
background-color: #e0e0e0 !important;
}
#KYC-DOC-tab .card-body ,
#other_docs_table .card-body
{
background-color: #F5FFFF !important;
border-radius: 10px;
box-shadow: 0px 4px 4px 0px #00000040;
}
#KYC-DOC-tab thead{
padding: 15px !important;
}
</style> </style>
@ -12,19 +43,19 @@
<table data-custom-table-css="table" id="kyc_table" class="table table-sm mb-0"> <table data-custom-table-css="table" id="kyc_table" class="table table-sm mb-0">
<thead> <thead>
<tr> <tr>
<th>S.no</th>
<th>Document Name</th> <th>Document Name</th>
<th>Status</th> <th>Status</th>
<th>Action</th> <th>Action</th>
</tr> </tr>
</thead> </thead>
<tbody id="tbody"> <tbody id="tbody">
</tbody> </tbody>
</table> </table>
</div> <!-- end table-responsive--> </div> <!-- end table-responsive-->
<hr> <!-- <button class="btn btn-primary waves-effect waves-light btn-sm" id="btn_other_docs">Other Documents</button> -->
<button class="btn btn-primary waves-effect waves-light btn-sm" id="btn_other_docs">Other Documents</button>
</div> </div>
</div> <!-- end card --> </div> <!-- end card -->
@ -34,6 +65,7 @@
<div class="col-12"> <div class="col-12">
<div class="card" style="margin-left: 12px;margin-right: -12px;"> <div class="card" style="margin-left: 12px;margin-right: -12px;">
<div class="card-body"> <div class="card-body">
<h3>Additional Documents</h3>
<form role="form" class="parsley-examples" method="post" id="kyc_form" <form role="form" class="parsley-examples" method="post" id="kyc_form"
enctype="multipart/form-data"> enctype="multipart/form-data">
<input type="hidden" class="form-control" value="<?= csrf_hash() ?>" name="<?= csrf_token() ?>" /> <input type="hidden" class="form-control" value="<?= csrf_hash() ?>" name="<?= csrf_token() ?>" />
@ -44,18 +76,20 @@
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-4"> <div class="form-group col-md-4">
<label for="emp_code">Other Documents<span <label for="emp_code">Document Name<span
class="text-danger">*</span></label> class="text-danger">*</span></label>
<input type="text" class="form-control" id="other_docs_name" placeholder="Document Name" name="other_docs_name" required> <input type="text" class="form-control" id="other_docs_name" placeholder="Document Name" name="other_docs_name" required>
</div> </div>
<div class="form-group col-md-4"> <div class="form-group col-md-4">
<label for="kyc_docs">File<span <label for="kyc_docs">File<span
class="text-danger">*</span></label> class="text-danger">*</span></label>
<input class="form-control" type="file" name="file_name" id="kyc_docs_file" required accept=".pdf, .jpeg, .jpg, .png"> <input class="form-control" type="file" name="file_name"
id="kyc_docs_file"
required accept=".pdf, .jpeg, .jpg, .png">
</div> </div>
<!-- <div class="form-group col-md-4 align-self-end"> --> <!-- <div class="form-group col-md-4 align-self-end"> -->
<div class="form-group col-md-4" style="<?= isset($client['id']) ? 'margin-top: 41px;' : 'margin-top: 30px;' ?>"> <div class="form-group col-md-4" style="<?= isset($client['id']) ? 'margin-top: 41px;' : 'margin-top: 30px;' ?>">
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1"id="btnSubmit">Upload</button> <button type="submit" class="btn btn-primary waves-effect waves-light mr-1"id="btnSubmit">Save</button>
</div> </div>
</div> </div>
@ -412,6 +446,7 @@
$.each(res.data, function(index, item) { $.each(res.data, function(index, item) {
var row = `<tr> var row = `<tr>
<td>${index+1}</td>
<td>${item.file_name}</td> <td>${item.file_name}</td>
<td id="form_${item.id}"> <td id="form_${item.id}">
<form class="ajax"> <form class="ajax">

View File

@ -48,6 +48,26 @@ table.dataTable thead th {
color: #16181b !important; color: #16181b !important;
cursor: pointer !important; cursor: pointer !important;
} }
.add-from-lead{
color:#E26828;
border : 0px solid white ;
background-color: white;
text-decoration: underline ;
}
.add-from-lead:hover{
color:#E26828;
border : 0px solid white ;
background-color: white;
text-decoration: underline ;
}
</style> </style>
<div class="row" id="client_list"> <div class="row" id="client_list">
@ -69,6 +89,7 @@ table.dataTable thead th {
id="tickets-table"> id="tickets-table">
<thead class="bg-light"> <thead class="bg-light">
<tr> <tr>
<th class="font-weight-medium">S.No</th>
<th class="font-weight-medium">Client Name</th> <th class="font-weight-medium">Client Name</th>
<th class="font-weight-medium">Account Manager</th> <th class="font-weight-medium">Account Manager</th>
<th class="font-weight-medium">Action</th> <th class="font-weight-medium">Action</th>
@ -76,8 +97,9 @@ table.dataTable thead th {
</thead> </thead>
<tbody> <tbody>
<?php foreach($clientList as $row){ ?> <?php foreach($clientList as $index => $row){ ?>
<tr > <tr >
<td><?=$index+1?></td>
<td class="client_info" data-id="<?php echo $row->id; ?>"><?php echo $row->client_name; ?> ( <?php echo $row->short_name; ?> ) </td> <td class="client_info" data-id="<?php echo $row->id; ?>"><?php echo $row->client_name; ?> ( <?php echo $row->short_name; ?> ) </td>
<td> <td>
<?php $account_managers = ''; ?> <?php $account_managers = ''; ?>
@ -278,6 +300,21 @@ $(document).ready(function()
"<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-5'i><'col-sm-7'p>>", "<'row'<'col-sm-5'i><'col-sm-7'p>>",
buttons: [ buttons: [
{
text: 'Add From Lead',
className: 'btn-filter add-from-lead', // custom class
action: function(e, dt, node, config) {
showModal();
}
},
{
text: '+ create New Client',
className: 'btn-filter buttons-html5', // custom class
action: function(e, dt, node, config) {
addClient();
}
},
{ {
extend: 'csv', extend: 'csv',
text: 'CSV', text: 'CSV',
@ -286,20 +323,6 @@ $(document).ready(function()
exportOptions: { exportOptions: {
columns: ':not(:last-child)' columns: ':not(:last-child)'
}, },
},
{
text: 'Add From Lead',
className: 'btn-filter', // custom class
action: function(e, dt, node, config) {
showModal();
}
},
{
text: 'Add',
className: 'btn-filter', // custom class
action: function(e, dt, node, config) {
addClient();
}
} }
], ],

View File

@ -258,6 +258,49 @@ body {
border-radius: 4px; border-radius: 4px;
border: 1px solid #dee2e6; border: 1px solid #dee2e6;
} }
#client_add .nav-pills ,
#client_add .nav-link
{
background-color: #F5FFFF !important;
color : #00999E !important;
border-radius:10px;
}
#client_add .nav-pills
{
background-color: #F5FFFF !important;
color : #00999E !important;
box-shadow: 0px 2px 4px 0px #00000040;
padding-top: 5px ;
}
#client_add .nav-link.active-tab {
color: white !important;
background-color: #00999E !important;
font-size: small !important;
padding:8px 16px;
border-radius: 10px !important;
box-shadow: 0px 2px 4px 0px #00000040;
}
#hr_activity_history_append_area{
padding-top:0;
margin-top:0;
background-color: #F5FFFF !important;
border: 2px solid #F5FFFF;
border-radius: 10px;
box-shadow: 0px 4px 4px 0px #00000040;
}
#hr_activity_history_append_area tbody tr{
background-color: white !important;
}
</style> </style>
@ -277,7 +320,7 @@ body {
<br> <br>
<ul class="nav nav-pills navtab-bg"> <ul class="nav nav-pills navtab-bg" >
<li class="nav-item"> <li class="nav-item">
<a href="#general-q-tab" data-toggle="tab" aria-expanded="false" <a href="#general-q-tab" data-toggle="tab" aria-expanded="false"
class="nav-link px-3 py-2 active" id="general_tab"> class="nav-link px-3 py-2 active" id="general_tab">
@ -357,7 +400,7 @@ body {
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div class="card"> <div class="card">
<div class="card-body" id="hr_activity_history_append_area" style="padding-top:0; margin-top:0;"> <div class="card-body" id="hr_activity_history_append_area">
</div> </div>
</div> </div>
</div> <!-- end col --> </div> <!-- end col -->
@ -932,4 +975,16 @@ body {
</script> </script>
<script>
$(document).ready(function(){
$('#client_add .nav-link').click(function(){
// change bg color of tab
$('#client_add .nav-link').removeClass('active-tab');
$(this).addClass('active-tab');
});
});
</script>

View File

@ -17,6 +17,14 @@
opacity: 1; opacity: 1;
} }
#lead_modal .modal-dialog{
width:600px !important;
}
#lead_modal .modal-body{
min-height: 200px !important;
}
</style> </style>
<div class="save-indicator" id="saveIndicator">Saved</div> <div class="save-indicator" id="saveIndicator">Saved</div>
@ -231,7 +239,7 @@
<!-- Center modal content --> <!-- Center modal content -->
<div class="modal fade" id="lead_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="false"> <div class="modal fade" id="lead_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="false">
<div class="modal-dialog modal-dialog-centered"> <div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h4 class="modal-title" id="myCenterModalLabel">Lead List</h4> <h4 class="modal-title" id="myCenterModalLabel">Lead List</h4>

View File

@ -1,13 +1,11 @@
<div class="tab-pane fade" id="RM-tab"> <div class="tab-pane fade card " id="RM-tab">
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12" id="collapseOne">
<div class="card-body"> <div class="card-body">
<div class="row float-right" style="position: relative; bottom: 20px; right:13px;"> <div class="row float-right" style="position: relative; bottom: 20px; right:13px;">
<button class="btn btn-primary btn-sm" id="client_rm_edit" ><span id="rm_icons" class="mdi mdi-lead-pencil"></span> Edit</button> <button class="btn btn-primary btn-sm" id="client_rm_edit" ><span id="rm_icons" class="mdi mdi-lead-pencil"></span> Edit</button>
</div> </div>
<hr>
<form role="form" class="parsley-examples" method="post" id="relation_form" enctype="multipart/form-data"> <form role="form" class="parsley-examples" method="post" id="relation_form" enctype="multipart/form-data">
<input type="hidden" class="form-control" value="<?= csrf_hash() ?>" name="<?= csrf_token() ?>" /> <input type="hidden" class="form-control" value="<?= csrf_hash() ?>" name="<?= csrf_token() ?>" />

View File

@ -16,7 +16,7 @@
<input type="hidden" name="<?= 'user' . $key ?>_post_hr_id" value="<?= $value['post_hr_id'] ?>"> <input type="hidden" name="<?= 'user' . $key ?>_post_hr_id" value="<?= $value['post_hr_id'] ?>">
<input type="hidden" name="<?= 'user' . $key ?>_post_client_id" value="<?= $value['post_client_id'] ?>"> <input type="hidden" name="<?= 'user' . $key ?>_post_client_id" value="<?= $value['post_client_id'] ?>">
<div class="card-header" onclick="toggleAccordion(this)"> <div class="card-header" onclick="toggleAccordion(this)" style="background-color: #F5FFFF;">
<div class="user-info"> <div class="user-info">
<h5 class="mb-0"><?= $value['hr_name'] ?> <h5 class="mb-0"><?= $value['hr_name'] ?>
<!-- <i class="mdi mdi-information-outline" aria-hidden="true" data-id="<?= (!empty($value['pre_hr_id']) ? $value['pre_hr_id'] : 0) . '-' . (!empty($value['post_hr_id']) ? $value['post_hr_id'] : 0) ?>"></i> --> <!-- <i class="mdi mdi-information-outline" aria-hidden="true" data-id="<?= (!empty($value['pre_hr_id']) ? $value['pre_hr_id'] : 0) . '-' . (!empty($value['post_hr_id']) ? $value['post_hr_id'] : 0) ?>"></i> -->
@ -28,7 +28,7 @@
</div> </div>
</div> </div>
<div class="card-content"> <div class="card-content">
<div class="content-inner"> <div class="content-inner" style="background-color: #F5FFFF;">
<div class="row"> <div class="row">
<div class="col-md-6 col-lg-3"> <div class="col-md-6 col-lg-3">
<div class="section"> <div class="section">

View File

@ -25,7 +25,6 @@ table.dataTable tbody td {
<div class="row" style="position: relative;left: 250px;top: 55px;"> <div class="row" style="position: relative;left: 250px;top: 55px;">
<div class="form-group col-md-3" id="date_div"> <div class="form-group col-md-3" id="date_div">
<!-- <label>ActivityDate<span class="text-danger"></span></label> -->
<div id="reportrange" class="form-control" style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc; width: 100%"> <div id="reportrange" class="form-control" style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc; width: 100%">
<i class="mdi mdi-calendar-blank"></i>&nbsp; <i class="mdi mdi-calendar-blank"></i>&nbsp;
<span></span> <i class="mdi mdi-menu-down"></i> <span></span> <i class="mdi mdi-menu-down"></i>

View File

@ -66,6 +66,9 @@
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap" rel="stylesheet">
<!-- google icons -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=image" />
<script> <script>
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
@ -593,13 +596,16 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus {
border-top: 0px solid #fff !important; border-top: 0px solid #fff !important;
border-bottom: 0px solid #fff !important; border-bottom: 0px solid #fff !important;
vertical-align: middle; vertical-align: middle;
font-weight: 600 !important;
} }
table[data-custom-table-css="table"] tbody td { table[data-custom-table-css="table"] tbody td {
background: #F5FFFF; background: #F5FFFF;
padding: 12px; padding: 12px;
border-top: 0px solid #fff !important; border-top: 0px solid #fff !important;
border-bottom: 2px solid #C3EDEE !important; border-bottom: 2px solid #C3EDEE !important;
font-weight: 400 !important;
} }
table[data-custom-table-css="table"] thead th:first-child { table[data-custom-table-css="table"] thead th:first-child {
@ -625,9 +631,13 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus {
} }
table[data-custom-table-css="table"] { table[data-custom-table-css="table"] {
border-collapse: separate !important; border-collapse: separate !important;
border-spacing: 0 8px !important; border-spacing: 0 8px !important;
width: 100% !important; width: 100% !important;
}
table[data-custom-table-css="table"].dataTable thead th {
padding: 15px !important;
} }
@ -706,6 +716,9 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus {
margin-right:10px !important; margin-right:10px !important;
} }
</style> </style>
@ -897,31 +910,43 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus {
input, input,
select, select,
textarea { textarea {
background-color: #F5FFFF !important;
border-radius: 10px !important; border-radius: 10px !important;
box-shadow: 0px 2px 4px 0px #00000024 !important; box-shadow: 0px 2px 4px 0px #00000024 !important;
border-color: #ffff !important; border-color: #F5FFFF !important;
} }
input[type='file'] {
padding:10px !important;
background-color: white !important; /* Chrome, Edge, Safari */
input[type="file"]::file-selector-button {
background-color: #00999E; /* button color */
color:#000 !important; /* text color */
border: none; /* remove border */
border-radius: 10px; /* rounded corners */
padding: 6px 20px; /* space inside */
cursor: pointer; /* pointer cursor */
font-size: 14px;
} }
/* Apply to Select2 (single select) */ /* Apply to Select2 (single select) */
.select2-container .select2-selection--single { .select2-container .select2-selection--single {
background-color: #F5FFFF !important;
border-radius: 10px !important; border-radius: 10px !important;
box-shadow: 0px 2px 4px 0px #00000024 !important; box-shadow: 0px 2px 4px 0px #00000024 !important;
height: 38px; /* match bootstrap input height */ height: 38px; /* match bootstrap input height */
display: flex; display: flex;
align-items: center; align-items: center;
border-color: #ffff !important; border-color: #F5FFFF !important;
} }
/* Apply to Select2 (multiple select) */ /* Apply to Select2 (multiple select) */
.select2-container .select2-selection--multiple { .select2-container .select2-selection--multiple {
background-color: #F5FFFF !important;
border-radius: 10px !important; border-radius: 10px !important;
box-shadow: 0px 2px 4px 0px #00000024 !important; box-shadow: 0px 2px 4px 0px #00000024 !important;
border-color: #ffff !important; border-color: #F5FFFF !important;
} }
@ -962,16 +987,68 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus {
<!-- accordian --> <!-- accordian -->
<style> <style>
.card #collapseOne .card-body , .card #collapseOne .card-body ,
.card #collapseTwo .card-body .card #collapseTwo .card-body ,
.card #collapseThree .card-body
{ {
background-color: #F5FFFF !important; background-color: #F5FFFF !important;
border: 2px solid #F5FFFF; border: 2px solid #F5FFFF;
border-radius: 10px; border-radius: 10px;
/* box-shadow: 2px 2px 2px; */ box-shadow: 0px 4px 4px 0px #00000040;
box-shadow: 0px 1px 1px 0px #00000040;
} }
/* Apply to normal inputs and selects */
.card #collapseOne .card-body input,
.card #collapseOne .card-body select,
.card #collapseOne .card-body textarea ,
.card #collapseTwo .card-body input,
.card #collapseTwo .card-body select,
.card #collapseTwo .card-body textarea ,
.card #collapseThree .card-body input,
.card #collapseThree .card-body select,
.card #collapseThree .card-body textarea {
background-color: #ffff !important;
border-radius: 10px !important;
box-shadow: 0px 2px 4px 0px #00000024 !important;
border-color: #ffff !important;
}
.card #collapseOne .card-body input[type='file']
, .card #collapseTwo .card-body input[type='file']
, .card #collapseThree .card-body input[type='file']
{
padding:10px !important;
background-color: white !important;
color:black !important;
}
/* Apply to Select2 (single select) */
.card #collapseOne .card-body .select2-container .select2-selection--single ,
.card #collapseTwo .card-body .select2-container .select2-selection--single ,
.card #collapseThree .card-body .select2-container .select2-selection--single
{
background-color: #ffff !important;
border-radius: 10px !important;
box-shadow: 0px 2px 4px 0px #00000024 !important;
height: 38px; /* match bootstrap input height */
display: flex;
align-items: center;
border-color: #ffff !important;
}
/* Apply to Select2 (multiple select) */
.card #collapseOne .card-body .select2-container .select2-selection--multiple
,.card #collapseTwo .card-body .select2-container .select2-selection--multiple
,.card #collapseThree .card-body .select2-container .select2-selection--multiple
{
background-color: #ffff !important;
border-radius: 10px !important;
box-shadow: 0px 2px 4px 0px #00000024 !important;
border-color: #ffff !important;
}
</style> </style>
<!-- legacy styles of random style applied --> <!-- legacy styles of random style applied -->
@ -984,7 +1061,6 @@ a.app-badge-secondary:focus, a.app-badge-secondary.focus {
.content-page{ .content-page{
background-color: white !important; background-color: white !important;
color:white !important;
padding: 0px !important; padding: 0px !important;
} }

View File

@ -31,6 +31,12 @@
margin: 1.75rem auto; margin: 1.75rem auto;
} }
.mail-section{
border: 1px solid #00999E;
border-radius:10px;
padding:5px !important;
}
</style> </style>
<div class="tab-pane fade" id="notification-tab"> <div class="tab-pane fade" id="notification-tab">
@ -106,8 +112,10 @@
</div> </div>
</div> </div>
<!-- mail section -->
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6 mail-section">
<label for="branch_name">Member welcome mail</label> <label for="branch_name">Member welcome mail</label>
<label class="switch"> <label class="switch">
<input id="member_welcome_mail_btn" type="checkbox" name="member_welcome_mail_btn" <?= ($member_welcome_mail == 1) ? 'checked' : '' ?>> <input id="member_welcome_mail_btn" type="checkbox" name="member_welcome_mail_btn" <?= ($member_welcome_mail == 1) ? 'checked' : '' ?>>
@ -116,14 +124,7 @@
&nbsp; &nbsp; &nbsp; &nbsp;
<a href="" data-toggle="modal" id="member_welcome_mail" onclick="getMailTemplateData(this)" data-target="#member_welcome_mail_modal">Edit</a> <a href="" data-toggle="modal" id="member_welcome_mail" onclick="getMailTemplateData(this)" data-target="#member_welcome_mail_modal">Edit</a>
</div> </div>
<div class="form-group col-md-5"> <div class="form-group col-md-6 mail-section">
<textarea style="display:none;" name="" id="" class="form-control "></textarea>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="branch_name">Member reminder mail</label> <label for="branch_name">Member reminder mail</label>
<label class="switch"> <label class="switch">
<input id="member_reminder_mail_btn" type="checkbox" name="member_reminder_mail_btn" <?= $member_reminder_mail == 1 ? 'checked' : '' ?>> <input id="member_reminder_mail_btn" type="checkbox" name="member_reminder_mail_btn" <?= $member_reminder_mail == 1 ? 'checked' : '' ?>>
@ -132,13 +133,10 @@
&nbsp; &nbsp; &nbsp; &nbsp;
<a href="" data-toggle="modal" id="member_reminder_mail" onclick="getMailTemplateData(this)" data-target="#member_reminder_mail_modal">Edit</a> <a href="" data-toggle="modal" id="member_reminder_mail" onclick="getMailTemplateData(this)" data-target="#member_reminder_mail_modal">Edit</a>
</div> </div>
<div class="form-group col-md-5">
<textarea style="display:none;" name="" id="" class="form-control "></textarea>
</div>
</div> </div>
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6 mail-section">
<label for="branch_name">Member ECard mail</label> <label for="branch_name">Member ECard mail</label>
<label class="switch"> <label class="switch">
<input id="member_ecard_mail_btn" type="checkbox" name="member_ecard_mail_btn" <?= $member_ecard_mail == 1 ? 'checked' : '' ?>> <input id="member_ecard_mail_btn" type="checkbox" name="member_ecard_mail_btn" <?= $member_ecard_mail == 1 ? 'checked' : '' ?>>
@ -147,13 +145,7 @@
&nbsp; &nbsp; &nbsp; &nbsp;
<a href="" data-toggle="modal" id="member_ecard_mail" onclick="getMailTemplateData(this)" data-target="#member_ecard_mail_modal">Edit</a> <a href="" data-toggle="modal" id="member_ecard_mail" onclick="getMailTemplateData(this)" data-target="#member_ecard_mail_modal">Edit</a>
</div> </div>
<div class="form-group col-md-5"> <div class="form-group col-md-6 mail-section">
<textarea style="display:none;" name="" id="" class="form-control "></textarea>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="branch_name">Member Review and summary mail</label> <label for="branch_name">Member Review and summary mail</label>
<label class="switch"> <label class="switch">
<input id="member_review_and_summary_mail_btn" type="checkbox" name="member_review_and_summary_mail_btn" <?= $member_review_and_summary_mail == 1 ? 'checked' : '' ?>> <input id="member_review_and_summary_mail_btn" type="checkbox" name="member_review_and_summary_mail_btn" <?= $member_review_and_summary_mail == 1 ? 'checked' : '' ?>>
@ -162,13 +154,10 @@
&nbsp; &nbsp; &nbsp; &nbsp;
<a href="" data-toggle="modal" id="member_review_and_summary_mail" onclick="getMailTemplateData(this)" data-target="#member_review_and_summary_mail_modal">Edit</a> <a href="" data-toggle="modal" id="member_review_and_summary_mail" onclick="getMailTemplateData(this)" data-target="#member_review_and_summary_mail_modal">Edit</a>
</div> </div>
<div class="form-group col-md-5">
<textarea style="display:none;" name="" id="" class="form-control "></textarea>
</div>
</div> </div>
<div class="form-row"> <div class="form-row">
<div class="form-group col-md-6"> <div class="form-group col-md-6 mail-section">
<label for="branch_name">Account Manager summary mail</label> <label for="branch_name">Account Manager summary mail</label>
<label class="switch"> <label class="switch">
<input id="account_maneger_summary_mail_btn" type="checkbox" name="account_maneger_summary_mail_btn" <?= $account_maneger_summary_mail ? 'checked' : '' ?>> <input id="account_maneger_summary_mail_btn" type="checkbox" name="account_maneger_summary_mail_btn" <?= $account_maneger_summary_mail ? 'checked' : '' ?>>
@ -177,13 +166,7 @@
&nbsp; &nbsp; &nbsp; &nbsp;
<a href="" data-toggle="modal" id="account_maneger_summary_mail" onclick="getMailTemplateData(this)" data-target="#account_maneger_summary_mail_modal">Edit</a> <a href="" data-toggle="modal" id="account_maneger_summary_mail" onclick="getMailTemplateData(this)" data-target="#account_maneger_summary_mail_modal">Edit</a>
</div> </div>
<div class="form-group col-md-5"> <div class="form-group col-md-6 mail-section">
<textarea style="display:none;" name="" id="" class="form-control "></textarea>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="branch_name">Client HR summary mail</label> <label for="branch_name">Client HR summary mail</label>
<label class="switch"> <label class="switch">
<input id="client_hr_summary_mail_btn" type="checkbox" name="client_hr_summary_mail_btn" <?= $client_hr_summary_mail == 1 ? 'checked' : '' ?>> <input id="client_hr_summary_mail_btn" type="checkbox" name="client_hr_summary_mail_btn" <?= $client_hr_summary_mail == 1 ? 'checked' : '' ?>>
@ -192,9 +175,6 @@
&nbsp; &nbsp; &nbsp; &nbsp;
<a href="" data-toggle="modal" id="client_hr_summary_mail" onclick="getMailTemplateData(this)" data-target="#client_hr_summary_mail_modal">Edit</a> <a href="" data-toggle="modal" id="client_hr_summary_mail" onclick="getMailTemplateData(this)" data-target="#client_hr_summary_mail_modal">Edit</a>
</div> </div>
<div class="form-group col-md-5">
<textarea style="display:none;" name="" id="" class="form-control "></textarea>
</div>
</div> </div>
<div class="form-row"> <div class="form-row">

View File

@ -96,358 +96,307 @@
<div class="row" style="margin-bottom: 10px;"> <div class="row" style="margin-bottom: 10px;">
<div class="col-md-6"> <div class="col">
<label for="sumInsured">Sum Insured</label> <div class="d-flex align-items-center gap-2">
</div> <label for="sumInsured" class="form-label" >Sum Insured</label>
<div class="col-md-4"> <input class="form-control mr-2" type="text" name="sumInsured2" id="sumInsured2" style="max-width:200px;"
<input style="width: 128%;" class="form-control" type="text" name="sumInsured2" id="sumInsured2" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)">
onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)" <button type="button" class="btn btn-primary si-add-more mr-2" onclick="appendGPASIAddMore()">+</button>
style="width: 100% !important;"> <div id='numberToWordSumInsured' class="text-danger-2 mr-2"></div>
</div> </div>
<div class="col-md-2" style="position: relative;left: 88px;">
<button type="button" class="btn btn-primary si-add-more" onclick="appendGPASIAddMore()">+</button> <div id="gpa_si_add_more"></div>
</div>
<div class="col-md-6">
</div>
<div class="col-md-6">
<div id='numberToWordSumInsured' class="text-danger-2"></div>
</div> </div>
</div> </div>
<div id="gpa_si_add_more"></div>
<div class="row" style="margin-bottom: 10px;"> <div class="row" style="margin-bottom: 10px;">
<div class="col-md-6">
<label for="totalSumInsured">Total Sum Assured</label> <div class="col">
</div> <div class="d-flex align-items-center gap-2">
<div class="col-md-6"> <label for="totalSumInsured">Total Sum Assured</label>
<input type="text" style="width: 100% !important;" class="form-control" name="totalSumInsured" <input type="text" style="max-width: 200px !important;" class="form-control mr-2" name="totalSumInsured"
id="totalSumInsured" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)"> id="totalSumInsured" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this)">
</div> <div id='numberToWordTotalSumInsured' class="text-danger-2 mr-2"></div>
<div class="col-md-6"> </div>
</div>
<div class="col-md-6">
<div id='numberToWordTotalSumInsured' class="text-danger-2"></div>
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row" style="margin-bottom: 10px;">
<div class="col-md-6"> <div class="col">
<label for=""></label>
</div>
<div class="col-md-6">
<table data-custom-table-css="table"> <table data-custom-table-css="table">
<tbody> <tbody>
<tr> <tr>
<td></td> <td>
</tr> <input disabled type="checkbox" style="color:black;" name="family_floaters[]"
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td style="width: 5%;">
<span style="margin-right: 20px;">Self:</span>
</td>
<td style="width: 11%;">
<input disabled type="checkbox" style="margin-right: 70px;" name="family_floaters[]"
value="self" id="self" checked> value="self" id="self" checked>
</td> </td>
<td style="width: 20%;"> <td >
<span style="margin-right: 20px;color:black;">Self</span>
</td>
<td >
<div class="self-age"> <div class="self-age">
<span style="margin-right: 20px;">Min Age:</span> <span style="margin-right: 20px;color:black;">Min Age:</span>
<input class="underline-input min_age" <input class="underline-input min_age"
style="background-color: white !important;"
value="<?php echo isset($self_min_age) ? $self_min_age : '18'; ?>" value="<?php echo isset($self_min_age) ? $self_min_age : '18'; ?>"
style="width: 65%;" type="number" name="self_min_age" id="self_min_age_gpa" type="number" name="self_min_age" id="self_min_age_gpa"
onchange="lowerIsEighteen(this)"> onchange="lowerIsEighteen(this)">
</div> </div>
</td> </td>
<td style="width: 20%;"> <td >
<div class="self-age"> <div class="self-age">
<span style="margin-right: 20px;">Max Age:</span> <span style="margin-right: 20px;color:black;">Max Age:</span>
<input class="underline-input max_age" <input class="underline-input max_age"
style="background-color:white !important"
value="<?php echo isset($self_max_age) ? $self_max_age : '60'; ?>" value="<?php echo isset($self_max_age) ? $self_max_age : '60'; ?>"
style="width: 65%;" type="number" name="self_max_age" id="self_max_age_gpa" type="number" name="self_max_age" id="self_max_age_gpa"
onchange="lowerIsEighteen(this)"> onchange="lowerIsEighteen(this)">
</div> </div>
</td> </td>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="col-md-6">
</div>
<div class="col-md-6">
</div>
</div> </div>
<hr> <div class="row mb-2">
<div class="col-md-2">
<div class="row" style="margin-bottom: 10px;"> <div class="form-check d-flex align-items-center">
<div class="col-md-1"> <input class="form-check-input me-2" type="checkbox" id="accidentalDeathBenefit_display" name="accidentalDeathBenefit_display" checked>
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="accidentalDeathBenefit_display" id="accidentalDeathBenefit_display" checked> <label class="form-check-label mb-0" for="accidentalDeathBenefit_display">
Accidental Death Benefit
</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="totalSumInsured">Accidental Death Benefit</label>
</div>
<div class="col-md-6">
<input type="text" name="accidentalDeathBenefit" class="form-control"> <input type="text" name="accidentalDeathBenefit" class="form-control">
</div> </div>
</div>
<div class="row" style="margin-bottom: 10px;"> <div class="col-md-2">
<div class="col-md-1"> <div class="form-check d-flex align-items-center">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="permanentTotalDisablement_display" id="permanentTotalDisablement_display" checked> <input class="form-check-input me-2" type="checkbox" id="permanentTotalDisablement_display" name="permanentTotalDisablement_display" checked>
<label class="form-check-label mb-0" for="permanentTotalDisablement_display">
Permanent Total Disablement
</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="permanentTotalDisablement">Permanent Total Disablement</label> <input type="text" name="permanentTotalDisablement" id="permanentTotalDisablement" class="form-control">
</div>
<div class="col-md-6">
<input type="text" name="permanentTotalDisablement" id="permanentTotalDisablement"
class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;">
<div class="col-md-1"> <div class="row mb-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="permanentPartialDisablement_display" id="permanentPartialDisablement_display" checked>
<div class="col-md-2">
<div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input me-2" name="permanentPartialDisablement_display" id="permanentPartialDisablement_display" checked>
<label class="form-check-label mb-0" for="permanentPartialDisablement">Permanent Partial Disablement</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="permanentPartialDisablement">Permanent Partial Disablement</label>
</div>
<div class="col-md-6">
<input type="text" name="permanentPartialDisablement" id="permanentPartialDisablement" <input type="text" name="permanentPartialDisablement" id="permanentPartialDisablement"
class="form-control"> class="form-control">
</div> </div>
</div>
<div class="row" style="margin-bottom: 10px;"> <div class="col-md-2">
<div class="col-md-1"> <div class="form-check d-flex align-items-center">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="temporaryTotalDisablementBenefit_display" id="temporaryTotalDisablementBenefit_display" checked> <input type="checkbox" class="form-check-input me-2" name="temporaryTotalDisablementBenefit_display" id="temporaryTotalDisablementBenefit_display" checked>
<label class="form-check-label mb-0" for="temporaryTotalDisablementBenefit">Temporary Total Disablement Benefit</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="temporaryTotalDisablementBenefit">Temporary Total Disablement Benefit</label>
</div>
<div class="col-md-6">
<input type="text" name="temporaryTotalDisablementBenefit" id="temporaryTotalDisablementBenefit" <input type="text" name="temporaryTotalDisablementBenefit" id="temporaryTotalDisablementBenefit"
class="form-control"> class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row mb-2">
<div class="col-md-1"> <div class="col-md-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="medical_expenses_medical_extension_display" id="medical_expenses_medical_extension_display" checked> <div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input me-2" name="medical_expenses_medical_extension_display" id="medical_expenses_medical_extension_display" checked>
<label class="form-check-label mb-0" for="medical_expenses_medical_extension">Medical Expenses / Medical Extension (IPD)</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="medical_expenses_medical_extension">Medical Expenses / Medical Extension (IPD)</label>
</div>
<div class="col-md-6">
<input type="text" name="medical_expenses_medical_extension" id="medical_expenses_medical_extension" <input type="text" name="medical_expenses_medical_extension" id="medical_expenses_medical_extension"
class="form-control"> class="form-control">
</div> </div>
</div>
<div class="col-md-2">
<div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input me-2" name="opd_treatment_cover_display" id="opd_treatment_cover_display" checked>
<label class="form-check-label mb-0" for="opd_treatment_cover">OPD Treatment Cover</label>
</div>
<div class="row" style="margin-bottom: 10px;">
<div class="col-md-1">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="opd_treatment_cover_display" id="opd_treatment_cover_display" checked>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="opd_treatment_cover">OPD Treatment Cover</label>
</div>
<div class="col-md-6">
<input type="text" name="opd_treatment_cover" id="opd_treatment_cover" class="form-control"> <input type="text" name="opd_treatment_cover" id="opd_treatment_cover" class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row mb-2">
<div class="col-md-1"> <div class="col-md-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="ambulanceCharges_display" id="ambulanceCharges_display" checked> <div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input me-2" name="ambulanceCharges_display" id="ambulanceCharges_display" checked>
<label class="form-check-label mb-0" for="ambulanceCharges"> Ambulance Charges</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="ambulanceCharges"> Ambulance Charges</label>
</div>
<div class="col-md-6">
<input type="text" name="ambulanceCharges" class="form-control"> <input type="text" name="ambulanceCharges" class="form-control">
</div> </div>
</div>
<div class="row" style="margin-bottom: 10px;"> <div class="col-md-2">
<div class="col-md-1"> <div class="form-check d-flex align-items-center">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="repatriation_of_mortal_remains_display" id="repatriation_of_mortal_remains_display" checked> <input type="checkbox"class="form-check-input me-2" name="repatriation_of_mortal_remains_display" id="repatriation_of_mortal_remains_display" checked>
<label class="form-check-label mb-0" for="repatriation_of_mortal_remains">Repatriation of Mortal Remains</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="repatriation_of_mortal_remains">Repatriation of Mortal Remains</label>
</div>
<div class="col-md-6">
<input type="text" name="repatriation_of_mortal_remains" id="repatriation_of_mortal_remains" class="form-control"> <input type="text" name="repatriation_of_mortal_remains" id="repatriation_of_mortal_remains" class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row mb-2">
<div class="col-md-1"> <div class="col-md-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="childrenEducationWelfareFund_display" id="childrenEducationWelfareFund_display" checked> <div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input me-2" name="childrenEducationWelfareFund_display" id="childrenEducationWelfareFund_display" checked>
<label class="form-check-label mb-0" for="childrenEducationWelfareFund">Children Education Welfare Fund</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="childrenEducationWelfareFund">Children Education Welfare Fund</label>
</div>
<div class="col-md-6">
<input type="text" name="childrenEducationWelfareFund" id="childrenEducationWelfareFund" class="form-control"> <input type="text" name="childrenEducationWelfareFund" id="childrenEducationWelfareFund" class="form-control">
</div> </div>
</div>
<div class="row" style="margin-bottom: 10px;"> <div class="col-md-2">
<div class="col-md-1"> <div class="form-check align-items-center">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="terrorism_display" id="gpa_terrorism_display" checked> <input type="checkbox" class="form-check-input me-2" name="terrorism_display" id="gpa_terrorism_display" checked>
<label class="form-check-label mb-0"for="terrorism">Terrorism</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="terrorism">Terrorism</label>
</div>
<div class="col-md-6">
<input type="text" name="terrorism" class="form-control"> <input type="text" name="terrorism" class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row mb-2">
<div class="col-md-1"> <div class="col-md-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="worldwideCover_display" id="worldwideCover_display" checked> <div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input" name="worldwideCover_display" id="worldwideCover_display" checked>
<label class="form-check-label" for="worldwideCover">Worldwide Cover</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="worldwideCover">Worldwide Cover</label>
</div>
<div class="col-md-6">
<input type="text" name="worldwideCover" class="form-control"> <input type="text" name="worldwideCover" class="form-control">
</div> </div>
</div>
<div class="row" style="margin-bottom: 10px;"> <div class="col-md-2">
<div class="col-md-1"> <div class="form-check d-flex align-items-center">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="family_transportation_benefits_display" id="family_transportation_benefits_display" checked> <input type="checkbox" class="form-check-input" name="family_transportation_benefits_display" id="family_transportation_benefits_display" checked>
<label class="form-check-label" for="family_transportation_benefits">Family Transportation Benefits</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="family_transportation_benefits">Family Transportation Benefits</label>
</div>
<div class="col-md-6">
<input type="text" name="family_transportation_benefits" id="family_transportation_benefits" class="form-control"> <input type="text" name="family_transportation_benefits" id="family_transportation_benefits" class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row mb-2">
<div class="col-md-1"> <div class="col-md-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="fractures_dislocation_burns_display" id="fractures_dislocation_burns_display" checked> <div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input" name="fractures_dislocation_burns_display" id="fractures_dislocation_burns_display" checked>
<label class="form-check-label"for="fractures_dislocation_burns">Fractures / Dislocation / Burns</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="fractures_dislocation_burns">Fractures / Dislocation / Burns</label>
</div>
<div class="col-md-6">
<input type="text" name="fractures_dislocation_burns" id="fractures_dislocation_burns" class="form-control"> <input type="text" name="fractures_dislocation_burns" id="fractures_dislocation_burns" class="form-control">
</div> </div>
</div> <div class="col-md-2">
<div class="form-check d-flex align-items-center">
<div class="row" style="margin-bottom: 10px;"> <input type="checkbox" class="form-check-input" name="coma_display" id="coma_display" checked>
<div class="col-md-1"> <label class="form-check-label" for="coma">Coma</label>
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="coma_display" id="coma_display" checked> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="coma">Coma</label>
</div>
<div class="col-md-6">
<input type="text" name="coma" id="coma" class="form-control"> <input type="text" name="coma" id="coma" class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row mb-2">
<div class="col-md-1"> <div class="col-md-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="carriageofDeadBody_display" id="carriageofDeadBody_display" checked> <div class="form-check d-flex-align-items-center">
<input type="checkbox" class="form-check-input" name="carriageofDeadBody_display" id="carriageofDeadBody_display" checked>
<label class="form-check-label" for="carriageOfDeadBody">Carriage of Dead Body</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="carriageOfDeadBody">Carriage of Dead Body</label>
</div>
<div class="col-md-6">
<input type="text" name="carriageOfDeadBody" class="form-control"> <input type="text" name="carriageOfDeadBody" class="form-control">
</div> </div>
</div> <div class="col-md-2">
<div class="form-check d-flex-align-items-center">
<div class="row" style="margin-bottom: 10px;"> <input type="checkbox" class="form-check-input" name="compassionateVisitExpenses_display" id="compassionateVisitExpenses_display" checked>
<div class="col-md-1"> <label class="form-check-label" for="compassionateVisitExpenses">Compassionate Visit Expenses</label>
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="compassionateVisitExpenses_display" id="compassionateVisitExpenses_display" checked> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="compassionateVisitExpenses">Compassionate Visit Expenses</label>
</div>
<div class="col-md-6">
<input type="text" name="compassionateVisitExpenses" class="form-control"> <input type="text" name="compassionateVisitExpenses" class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row mb-2">
<div class="col-md-1"> <div class="col-md-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="travel_expenses_for_medical_treatment_display" id="travel_expenses_for_medical_treatment_display" checked> <div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input" name="travel_expenses_for_medical_treatment_display" id="travel_expenses_for_medical_treatment_display" checked>
<label class="form-check-label" for="travel_expenses_for_medical_treatment">Travel expenses for Medical Treatment</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="travel_expenses_for_medical_treatment">Travel expenses for Medical Treatment</label>
</div>
<div class="col-md-6">
<input type="text" name="travel_expenses_for_medical_treatment" id="travel_expenses_for_medical_treatment" class="form-control"> <input type="text" name="travel_expenses_for_medical_treatment" id="travel_expenses_for_medical_treatment" class="form-control">
</div> </div>
</div> <div class="col-md-2">
<div class="form-check d-flex align-items-center">
<div class="row" style="margin-bottom: 10px;"> <input type="checkbox" class="form-check-input" name="daily_cash_allowance_display" id="daily_cash_allowance_display" checked>
<div class="col-md-1"> <label class="form-check-label" for="daily_cash_allowance">Daily cash Allowance</label>
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="daily_cash_allowance_display" id="daily_cash_allowance_display" checked> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="daily_cash_allowance">Daily cash Allowance</label>
</div>
<div class="col-md-6">
<input type="text" name="daily_cash_allowance" id="daily_cash_allowance" class="form-control"> <input type="text" name="daily_cash_allowance" id="daily_cash_allowance" class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row mb-2">
<div class="col-md-1"> <div class="col-md-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="artifical_limb_and_prosthesis_display" id="artifical_limb_and_prosthesis_display" checked> <div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input" name="artifical_limb_and_prosthesis_display" id="artifical_limb_and_prosthesis_display" checked>
<label class="form-check-label" for="artifical_limb_and_prosthesis">Artifical Limb and Prosthesis</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="artifical_limb_and_prosthesis">Artifical Limb and Prosthesis</label>
</div>
<div class="col-md-6">
<input type="text" name="artifical_limb_and_prosthesis" id="artifical_limb_and_prosthesis" class="form-control"> <input type="text" name="artifical_limb_and_prosthesis" id="artifical_limb_and_prosthesis" class="form-control">
</div> </div>
</div> <div class="col-md-2">
<div class="form-check d-flex align-items-center">
<div class="row" style="margin-bottom: 10px;"> <input type="checkbox" class="form-check-input" name="animalSnakeInsectBite_display" id="animalSnakeInsectBite_display" checked>
<div class="col-md-1"> <label class="form-check-label" for="animalSnakeInsectBite">Animal/Snake/Insect bite</label>
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="animalSnakeInsectBite_display" id="animalSnakeInsectBite_display" checked> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="animalSnakeInsectBite">Animal/Snake/Insect bite</label>
</div>
<div class="col-md-6">
<input type="text" name="animalSnakeInsectBite" id="animalSnakeInsectBite" class="form-control"> <input type="text" name="animalSnakeInsectBite" id="animalSnakeInsectBite" class="form-control">
</div> </div>
</div> </div>
<div class="row" style="margin-bottom: 10px;"> <div class="row mb-2">
<div class="col-md-1"> <div class="col-md-2">
<input type="checkbox" style="margin-top: 12px" class="unchecked" name="air_ambulance_display" id="air_ambulance_display" checked> <div class="form-check d-flex align-items-center">
<input type="checkbox" class="form-check-input" name="air_ambulance_display" id="air_ambulance_display" checked>
<label class="form-check-label" for="air_ambulance">Air Ambulance</label>
</div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label for="air_ambulance">Air Ambulance</label>
</div>
<div class="col-md-6">
<input type="text" name="air_ambulance" id="air_ambulance" class="form-control"> <input type="text" name="air_ambulance" id="air_ambulance" class="form-control">
</div> </div>
</div> </div>
@ -969,22 +918,22 @@
var html = ` var html = `
<div class="row" style="margin-bottom: 10px;"> <div class="row" style="margin-bottom: 10px;">
<div class="col-md-6"> <div class="col">
<label for="sumInsured">Additional Sum Insured</label> <div class="d-flex align-items-center gap-2">
</div> <label for="sumInsured" class="form-label" >Additional Sum Insured</label>
<div class="col-md-4"> <input
<input style="width: 128%;" value="${data == null || data == undefined || data == "" ? '' : data}" type="text" name="multiple_sum_insured[]" class="form-control multiple_sum_insured" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this); numtowordinkeyup(this)"> style="max-width:200px;"
</div> value="${data == null || data == undefined || data == "" ? '' : data}" type="text" name="multiple_sum_insured[]"
<div class="col-md-2" style="position: relative;left: 88px;"> class="form-control multiple_sum_insured mr-2" onkeypress="return onlyNumbers(event)" onkeyup="formatNumber(this); numtowordinkeyup(this)">
<button type="button" class="btn btn-danger si-remove-multi" onclick="removeGMCAdditionalSI(this)">x</button> <button type="button" class="btn btn-danger si-remove-multi mr-2" onclick="removeGMCAdditionalSI(this)">x</button>
<button type="button" class="btn btn-primary si-add-more" onclick="appendGPASIAddMore()">+</button> <button type="button" class="btn btn-primary si-add-more mr-2" onclick="appendGPASIAddMore()">+</button>
</div> <div id='numberToWordSumInsured' class="text-danger-2 "></div>
<div class="col-md-6"> </div>
</div> </div>
<div class="col-md-6"> </div>
<div class="text-danger-2 numberToWordSumInsured"></div>
</div>
</div>`; `;
$('#gpa_si_add_more').append(html); $('#gpa_si_add_more').append(html);
} }

View File

@ -26,9 +26,10 @@
border: 2px solid red; /* or any other style you prefer */ border: 2px solid red; /* or any other style you prefer */
} }
/* .unitDiv{ #bs-example-modal-lg .modal-dialog{
display: none; width:1080px !important;
} */ }
</style> </style>
<style> <style>
@ -60,7 +61,7 @@
<!-- Modal content for the Large example --> <!-- Modal content for the Large example -->
<div class="modal fade" id="bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" <div class="modal fade" id="bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
aria-hidden="true" aria-modal="true" data-backdrop="static" style="padding-right: 15px"> aria-hidden="true" aria-modal="true" data-backdrop="static" style="padding-right: 15px">
<div class="modal-dialog modal-full-width"> <div class="modal-dialog modal-lg">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<div class="col-md-6"> <div class="col-md-6">
@ -3391,7 +3392,7 @@ function appendNewTab(tabNameData = null, data = null)
<a href="#" id="copyfromexcel_${tabId}" onclick="copyFromExcel(this, '${tabId}')">Copy from excel</a> <a href="#" id="copyfromexcel_${tabId}" onclick="copyFromExcel(this, '${tabId}')">Copy from excel</a>
<hr> <hr>
<div class="form-row" id="grid_content_input_for_additional_${tabId}" style="display: true;"> <div class="form-row" id="grid_content_input_for_additional_${tabId}" style="display: block;">
</div> </div>

View File

@ -379,9 +379,9 @@ table.dataTable td.wrap {
var form = document.getElementById("ticketForm"); // your form ID var form = document.getElementById("ticketForm"); // your form ID
var formData = new FormData(form); var formData = new FormData(form);
var btn = document.querySelector("button[onclick='submitTicket()']"); var btn = event.target;
btn.disabled = true; btn.disabled = true;
btn.innerText = "Saving..."; btn.innerText = "Saving...";
$.ajax({ $.ajax({
url: "<?= base_url('ticketSave') ?>", url: "<?= base_url('ticketSave') ?>",

View File

@ -533,10 +533,17 @@ hr{
var form = document.getElementById("ticketForm"); var form = document.getElementById("ticketForm");
var id = form.querySelector("[name='thz_id']").value; var id = form.querySelector("[name='thz_id']").value;
var formData = new FormData(form); var formData = new FormData(form);
form.classList.remove('was-validated');
var btn = document.querySelector("button[onclick='submitTicket()']"); var btn = document.querySelector("button[onclick='submitTicket()']");
btn.disabled = true; btn.disabled = true;
btn.innerText = "Saving..."; btn.innerText = "Saving...";
var ticketType = document.getElementById('ticket_type').value.trim();
if (ticketType === "") {
toastr.warning('Please fill all required fields.', 'Warning');
form.classList.add('was-validated');
return;
}
$.ajax({ $.ajax({
url: "<?= base_url('ticketSave') ?>", url: "<?= base_url('ticketSave') ?>",

View File

@ -146,7 +146,7 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a class="btn btn-primary close" data-dismiss="modal" aria-label="Close">Submit</a> <a class="btn btn-primary" data-dismiss="modal" aria-label="Close">Submit</a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -46,6 +46,8 @@
if (!isset($view_ticket_page)) { if (!isset($view_ticket_page)) {
if ($selected_ticket_type == 1) { if ($selected_ticket_type == 1) {
include('ticket_form_gmc.php'); include('ticket_form_gmc.php');
} else if ($selected_ticket_type == 8) {
include('ticket_form_motor.php');
} else { } else {
include('ticket_form_gpa.php'); include('ticket_form_gpa.php');
} }
@ -193,7 +195,7 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a class="btn btn-primary close" data-dismiss="modal" aria-label="Close" <a class="btn btn-primary" data-dismiss="modal" aria-label="Close"
onclick="toResetTheModelFields()">Submit</a> onclick="toResetTheModelFields()">Submit</a>
</div> </div>
</div> </div>

File diff suppressed because it is too large Load Diff

View File

@ -14,6 +14,7 @@
<option value="2">Claim-GPA</option> <option value="2">Claim-GPA</option>
<option value="3">EDLI</option> <option value="3">EDLI</option>
<option value="4">GTLI</option> <option value="4">GTLI</option>
<option value="8">Motor</option>
</select> </select>
</div> </div>
</div> </div>

View File

@ -1,62 +1,59 @@
<style>
.metrics{
border:1px solid lightgrey;border-radius:10px;box-shadow: 0px 4px 4px 0px #00000040;
min-width: none;
max-width: 350px;
}
</style>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="text-center"> <div style="display: flex; align-items: center;">
<div class="row"> <a href="<?= base_url("client/deposit/$clientData->id"); ?>" style="color:black; font-size: 40px; margin-right: 10px;">
<div class="col-md-4"></div> <i class="mdi mdi-chevron-left"></i>
<div class="col-md-4"> </a>
<i class="font-24"></i> <h3 style="margin: 0;">Transaction Details - <?php echo $insurerName->name; ?></h3>
<h4>CD Account No : <?php echo isset($insurerName->cd_master_account_no) && !empty($insurerName->cd_master_account_no) ? $insurerName->cd_master_account_no : 'N/A' ?></h4>
</div>
</div>
</div> </div>
<div class="text-center"> <br>
<div class="row">
<div class="col-md-6 col-xl-5"> <div class="d-flex justify-content-between">
<div class="py-1"> <div><h4>CD Account No : <?php echo isset($insurerName->cd_master_account_no) && !empty($insurerName->cd_master_account_no) ? $insurerName->cd_master_account_no : 'N/A' ?></h4></div>
<i class="font-24"></i> <div> <h4>Deposit Summary Of <?php echo $clientData->short_name?></h4></div>
<h4>Deposit Summary Of <?php echo $clientData->short_name?></h4> </div>
</div> <div>
</div> <div class="row text-center">
<div class="col-md-6 col-xl-5">
<div class="py-1">
<i class=" font-24"></i>
<h4><?php echo $insurerName->name; ?></h4>
</div>
</div>
</div> <div class="col-3 d-flex justify-content-between align-items-center metrics mr-2 mt-2">
<span class="text-muted font-15 mb-1 text-truncate">Deposits</span>
<div class="row mt-3 text-center"> <h4 style="font-size: 18px;display:inline;"><i
class="fe-arrow-up text-success mr-1" ></i><?php echo $deposiamount->total_credit?>
<div class="col-3">
<p class="text-muted font-15 mb-1 text-truncate">Deposits</p>
<h4 style="font-size: 26px;"><i
class="fe-arrow-up text-success mr-1"></i><?php echo $deposiamount->total_credit?>
</h4> </h4>
</div> </div>
<div class="col-3"> <div class="col-3 d-flex justify-content-between align-items-center metrics mr-2 mt-2">
<p class="text-muted font-15 mb-1 text-truncate">Consumed</p> <span class="text-muted font-15 mb-1 text-truncate">Consumed</span>
<h4 style="font-size: 26px;"><i <h4 style="font-size: 20px;display:inline;"><i
class="fe-arrow-down text-danger mr-1"></i><?php echo $deposiamount->total_withdraw?> class="fe-arrow-down text-danger mr-1"></i><?php echo $deposiamount->total_withdraw?>
</h4> </h4>
</div> </div>
<div class="col-3"> <div class="col-3 d-flex justify-content-between align-items-center metrics mr-2 mt-2">
<p class="text-muted font-15 mb-1 text-truncate">Refund</p> <span class="text-muted font-15 mb-1 text-truncate">Refund</span>
<h4 style="font-size: 26px;"><i <h4 style="font-size: 20px;display:inline;"><i
class="fe-arrow-up text-success mr-1"></i><?php echo $deposiamount->total_refund?> class="fe-arrow-up text-success mr-1"></i><?php echo $deposiamount->total_refund?>
</h4> </h4>
</div> </div>
<div class="col-3"> <div class="col-3 d-flex justify-content-between align-items-center metrics mr-2 mt-2">
<p class="text-muted font-15 mb-1 text-truncate">Current Balance</p> <span class="text-muted font-15 mb-1 text-truncate">Current Balance</span>
<h4 style="font-size: 26px;"><i <h4 style="font-size: 20px;display:inline;"><i
class="fe-credit-card text-sucess mr-1"></i><?php echo $deposiamount->balance?> class="fe-credit-card text-sucess mr-1"></i><?php echo $deposiamount->balance?>
</h4> </h4>
</div> </div>
@ -68,39 +65,20 @@
</div> </div>
</div> </div>
</div> </div>
<!-- start page title -->
<!-- <div class="row">
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<h4 class="page-title"></h4>
<div class="page-title-right">
</div>
</div>
</div>
</div> -->
<!-- end page title -->
<div class="row" id="List-page"> <div class="row" id="List-page">
<div class="col-12"> <div class="col-12">
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="row"> <!-- <div class="row" style="margin-bottom:1rem;">
<div class="col-12" style="text-align: right;"> <div class="col-6" style="text-align: right; position: relative;top: 56px; z-index:999">
<a href="<?= base_url("client/deposit/$clientData->id"); ?>"><i class="mdi mdi-arrow-left" <button type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="modal" data-target="#addTransactionModal"> + Add</button>
style="font-size: 17px;"></i></a>
</div> </div>
</div> </div> -->
<div class="row" style="margin-bottom:1rem;">
<div class="col-6" style="align-self: center;">
<h4 style="position: relative;">Transaction Details</h4>
</div>
<div class="col-6" style="text-align: right; position: relative;top: 56px;">
<button type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light"
data-toggle="modal" data-target="#addTransactionModal">New</button>
</div>
</div>
<table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive w-100" cellspacing="0" <table data-custom-table-css="table" class="table table-sm table-hover m-0 table-centered dt-responsive w-100" cellspacing="0"
id="tickets-table"> id="tickets-table">
@ -172,46 +150,48 @@
</button> </button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<h3>Transaction Mode</h3>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label for="transactionMode" class="control-label">Transaction Mode</label>
<div class="form-check"> <div class="form-check mt-2">
<input class="form-check-input" type="radio" name="transactionMode" id="addMode"value="1" checked> <input class="form-check-input" type="radio" name="transactionMode" id="addMode"value="1" checked>
<label class="form-check-label" for="addMode">Replenishment by Client</label> <label class="form-check-label" for="addMode">Replenishment by Client</label>
</div> </div>
<div class="form-check"> <div class="form-check mt-2">
<input class="form-check-input" type="radio" name="transactionMode" id="refund_by_insurer"value="6"> <input class="form-check-input" type="radio" name="transactionMode" id="refund_by_insurer"value="6">
<label class="form-check-label" for="addMode">Refund by Insurer</label> <label class="form-check-label" for="addMode">Refund by Insurer</label>
</div> </div>
<!-- <div class="form-check"> </div>
<input class="form-check-input" type="radio" name="transactionMode" id="adjustmentModeadd"value="2"> </div>
<label class="form-check-label" for="adjustmentMode">Adjustment Add</label> <div class="col-md-6">
</div> <div class="form-group">
<div class="form-check"> <div class="form-check mt-2">
<input class="form-check-input" type="radio" name="transactionMode" id="adjustmentModereduce"value="3">
<label class="form-check-label" for="adjustmentMode">Adjustment Reduce</label>
</div> -->
<div class="form-check">
<input class="form-check-input" type="radio" name="transactionMode" id="assetpolicyadd"value="4"> <input class="form-check-input" type="radio" name="transactionMode" id="assetpolicyadd"value="4">
<label class="form-check-label" for="adjustmentMode">Non EB Credit</label> <label class="form-check-label" for="adjustmentMode">Non EB Credit</label>
</div> </div>
<div class="form-check"> <div class="form-check mt-2">
<input class="form-check-input" type="radio" name="transactionMode" id="assetpolicyreduce"value="5"> <input class="form-check-input" type="radio" name="transactionMode" id="assetpolicyreduce"value="5">
<label class="form-check-label" for="adjustmentMode">No EB Debit</label> <label class="form-check-label" for="adjustmentMode">No EB Debit</label>
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label for="field-1" class="control-label">Amount<span class="text-danger">*</span></label> <label for="field-1" class="control-label">Amount<span class="text-danger">*</span></label>
<input type="number" class="form-control" id="amount" placeholder="Amount" required> <input type="number" class="form-control" id="amount" placeholder="Amount" required>
<br><label for="record_date">Record Date <span class="text-danger"></span></label>
<input type="text" class="form-control policy_start_date" id="record_date" name="record_date" placeholder="Record Date">
</div> </div>
</div> </div>
<div class="col-md-6">
<div class="form-group">
<label for="record_date">Record Date <span class="text-danger"></span></label>
<input type="text" class="form-control policy_start_date" id="record_date" name="record_date" placeholder="Record Date">
</div>
</div>
</div> </div>
<!-- <div class="row" id="transactionTypeRow" style="display:none;"> <!-- <div class="row" id="transactionTypeRow" style="display:none;">
@ -275,45 +255,58 @@
}); });
$('#tickets-table').DataTable({ $('#tickets-table').DataTable({
dom: "<'row'<'col-sm-0'f><'col-sm-7 text-right'B>>" + dom: "<'row'<'col-sm-2'f><'col-sm-10 text-right'B>>" +
"<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-5'i><'col-sm-7'p>>", "<'row'<'col-sm-5'i><'col-sm-7'p>>",
buttons: [{
extend: 'csv', buttons: [
text: 'CSV', {
title: 'CD TransactionDetails', text: '+ add',
exportOptions: { className: 'btn btn-primary buttons-html5',
columns: '' action: function () {
var myModal = new bootstrap.Modal(document.getElementById('addTransactionModal'));
myModal.show();
}
} }
}, ,
{ {
extend: 'pdf', extend: 'csv',
text: 'PDF', text: 'CSV',
title: 'TransactionDetails', title: 'CD TransactionDetails',
exportOptions: { exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], columns: ''
format: {
body: function(data, row, column, node) {
return data.replace(/<.*?>/g, '');
}
} }
}, },
customize: function(doc) { {
doc.pageOrientation = 'landscape'; extend: 'pdf',
doc.styles.tableHeader.alignment = 'left'; text: 'PDF',
doc.defaultStyle.alignment = 'left'; title: 'TransactionDetails',
doc.content[1].table.widths = ['9%', '9%', '8%', '9%', '10%', '9%', '9%', '9%', '9%', '11%', '8%']; exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
format: {
body: function (data, row, column, node) {
return data.replace(/<.*?>/g, '');
}
}
},
customize: function (doc) {
doc.pageOrientation = 'landscape';
doc.styles.tableHeader.alignment = 'left';
doc.defaultStyle.alignment = 'left';
doc.content[1].table.widths = [
'9%', '9%', '8%', '9%', '10%',
'9%', '9%', '9%', '9%', '11%', '8%'
];
}
} }
} ],
language: {
], search: "_INPUT_",
language: { searchPlaceholder: "Search..."
search: "_INPUT_", },
searchPlaceholder: "Search..." ordering: false,
}, paging: true
ordering: false, });
paging: true,
});
}); });
</script> </script>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 626 B

After

Width:  |  Height:  |  Size: 787 B