This commit is contained in:
heama 2023-10-11 11:31:35 +05:30
parent 61193ba818
commit c972dcb50c

View File

@ -317,7 +317,7 @@
</form>
</div> <!-- end card-body-->
<div class="tab-pane fade show active" id="subscriptionDetails" role="tabpanel" aria-labelledby="subscriptionDetails-tab">
<div class="tab-pane fade show " id="subscriptionDetails" role="tabpanel" aria-labelledby="subscriptionDetails-tab">
<?php if (!empty($subscriptionData)): ?>
<table class="table table-bordered">
<thead>
@ -486,14 +486,14 @@
});
</script>
<script>
$(document).ready(function() {
// Show the Subscription Details tab by default
$('#subscriptionDetails-tab').tab('show');
$(document).ready(function() {
// Show the Customer Details tab by default
$('#customerDetails-tab').tab('show');
// Handle tab switching
$('#customerTabs a').on('click', function (e) {
e.preventDefault();
$(this).tab('show');
});
// Handle tab switching
$('#customerTabs a').on('click', function (e) {
e.preventDefault();
$(this).tab('show');
});
});
</script>