CONTINUE BIG FIX: Adjust the breadcrumbs according to if you are in client section or main section when view ticket, invoice, quote, recurring ticket details

This commit is contained in:
johnnyq
2024-10-31 16:30:34 -04:00
parent 72240462a0
commit 08830fd21f
4 changed files with 38 additions and 13 deletions

View File

@@ -107,12 +107,18 @@ if (isset($_GET['quote_id'])) {
?>
<ol class="breadcrumb d-print-none">
<?php if (isset($_GET['client_id'])) { ?>
<li class="breadcrumb-item">
<a href="client_overview.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a>
</li>
<li class="breadcrumb-item">
<a href="client_quotes.php?client_id=<?php echo $client_id; ?>">Quotes</a>
</li>
<?php } else { ?>
<li class="breadcrumb-item">
<a href="quotes.php">Quotes</a>
</li>
<li class="breadcrumb-item">
<a href="client_quotes.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a>
</li>
<?php } ?>
<li class="breadcrumb-item active"><?php echo "$quote_prefix$quote_number"; ?></li>
</ol>