91 lines
4.3 KiB
PHP
91 lines
4.3 KiB
PHP
<div class="row" id="pt_onboarding"> <!-- style="position: relative; bottom: 25px; display:none;" -->
|
|
<div class="col-xl-12">
|
|
<div style="margin-top:10px !important;"></div>
|
|
<div class="card-body">
|
|
<div class="tab-wrapper position-relative">
|
|
<ul class="nav nav-pills navtab-bg" id="myTab">
|
|
<li class="nav-item d-flex justify-content-center align-items-center">
|
|
<button class="scroll-btn left-btn" type="button">◀</button>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="#form" data-toggle="tab" aria-expanded="false" class="nav-link px-3 py-2 active-tab active" id="general_tab">
|
|
<span class="mr-1"><i class="mdi mdi-contacts"></i></span>
|
|
<span class="d-none d-sm-inline-block">Policy</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="#KYC-DOC-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="kyc_tab2">
|
|
<span class="mr-1"><i class="mdi mdi-file"></i></span>
|
|
<span class="d-none d-sm-inline-block">KYC Docs</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" id="hide_file_upload" style="display: none;">
|
|
<a href="#fileupload" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="kyc_tab">
|
|
<span class="mr-1"><i class="mdi mdi-file"></i></span>
|
|
<span class="d-none d-sm-inline-block">Policy Docs</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" id="hide_vehicle_tab" style="display: none;">
|
|
<a href="#vehicle-docs-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-2" id="vehicle_tab">
|
|
<span class="mr-1"><i class="mdi mdi-file"></i></span>
|
|
<span class="d-none d-sm-inline-block">Vehicle Docs</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item d-flex justify-content-center align-items-center">
|
|
<!-- Right Arrow -->
|
|
<button class="scroll-btn right-btn" type="button">▶</button>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="tab-content">
|
|
<?php include('policy_transaction_inception_form.php'); ?>
|
|
<?php include('drive_file_upload.php'); ?>
|
|
<?php include('client_kyc.php'); ?>
|
|
<?php include('vehicle_docs.php'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
|
|
$('#kyc_tab').on('click', function(e) {
|
|
var ptId = $('#policy_tranction_primarykey').val();
|
|
|
|
if (!ptId) { // Check if ptId is empty or null
|
|
e.preventDefault(); // Prevent the tab from opening
|
|
$('#g_drive_file_upload_sbt_btn').hide()
|
|
toastr.warning('Please create Policy before proceeding to File Upload.');
|
|
} else {
|
|
$('#g_drive_file_upload_sbt_btn').show()
|
|
}
|
|
});
|
|
|
|
$('#kyc_tab2').on('click', function(e) {
|
|
var ptId = $('#policy_tranction_primarykey').val();
|
|
|
|
if (!ptId) { // Check if ptId is empty or null
|
|
e.preventDefault(); // Prevent the tab from opening
|
|
$('#btn_other_docs').hide()
|
|
toastr.warning('Please create Policy before proceeding to File Upload.');
|
|
} else {
|
|
$('#btn_other_docs').show()
|
|
}
|
|
});
|
|
|
|
$('#vehicle_tab').on('click', function(e) {
|
|
var ptId = $('#policy_tranction_primarykey').val();
|
|
|
|
if (!ptId) { // Check if ptId is empty or null
|
|
e.preventDefault(); // Prevent the tab from opening
|
|
$('#vehicle_file_upload_sbt_btn').hide()
|
|
toastr.warning('Please create Policy before proceeding to File Upload.');
|
|
} else {
|
|
$('#vehicle_file_upload_sbt_btn').show()
|
|
}
|
|
});
|
|
});
|
|
</script>
|