Skip to content
42 changes: 21 additions & 21 deletions agent/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<input type="hidden" name="enable_financial" value="0">
<input type="hidden" name="enable_technical" value="0">

<label for="year" class="mr-sm-2">Select Year:</label>
<label for="year" class="mr-sm-2"><?php echo __('select_year', 'Select Year'); ?>:</label>
<select id="year" onchange="this.form.submit()" class="form-control mr-sm-3 col-sm-2 mb-3 mb-sm-0" name="year">
<?php while ($row = mysqli_fetch_array($sql_years_select)) {
$year_select = $row['all_years'];
Expand All @@ -67,14 +67,14 @@
<?php if ($session_user_role == 1 || ($session_user_role == 3 && $config_module_enable_accounting == 1)) { ?>
<div class="custom-control custom-switch mr-3">
<input type="checkbox" onchange="this.form.submit()" class="custom-control-input" id="customSwitch1" name="enable_financial" value="1" <?php if ($user_config_dashboard_financial_enable == 1) { echo "checked"; } ?>>
<label class="custom-control-label" for="customSwitch1">Financial</label>
<label class="custom-control-label" for="customSwitch1"><?php echo __('financial', 'Financial'); ?></label>
</div>
<?php } ?>

<?php if ($session_user_role >= 2 && $config_module_enable_ticketing == 1) { ?>
<div class="custom-control custom-switch">
<input type="checkbox" onchange="this.form.submit()" class="custom-control-input" id="customSwitch2" name="enable_technical" value="1" <?php if ($user_config_dashboard_technical_enable == 1) { echo "checked"; } ?>>
<label class="custom-control-label" for="customSwitch2">Technical</label>
<label class="custom-control-label" for="customSwitch2"><?php echo __('technical', 'Technical'); ?></label>
</div>
<?php } ?>
</form>
Expand Down Expand Up @@ -282,7 +282,7 @@
<a class="small-box bg-secondary" href="clients.php?leads=1&dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
<div class="inner">
<h3><?php echo $leads_added; ?></h3>
<p>New Leads</p>
<p><?php echo __('new_leads', 'New Leads'); ?></p>
</div>
<div class="icon">
<i class="fa fa-users"></i>
Expand Down Expand Up @@ -310,7 +310,7 @@
<a class="small-box bg-secondary" href="vendors.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
<div class="inner">
<h3><?php echo $vendors_added; ?></h3>
<p>New Vendors</p>
<p><?php echo __('new_vendors', 'New Vendors'); ?></p>
</div>
<div class="icon">
<i class="fa fa-building"></i>
Expand All @@ -324,7 +324,7 @@
<a class="small-box bg-secondary" href="trips.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
<div class="inner">
<h3><?php echo number_format($total_miles, 2); ?></h3>
<p>Miles Traveled</p>
<p><?php echo __('miles_traveled', 'Miles Traveled'); ?></p>
</div>
<div class="icon">
<i class="fa fa-route"></i>
Expand All @@ -336,7 +336,7 @@
<div class="col-md-12">
<div class="card card-dark mb-3">
<div class="card-header">
<h3 class="card-title"><i class="fas fa-fw fa-chart-area mr-2"></i>Cash Flow</h3>
<h3 class="card-title"><i class="fas fa-fw fa-chart-area mr-2"></i><?php echo __('cash_flow', 'Cash Flow'); ?></h3>
<div class="card-tools">
<a href="reports/income_summary.php" class="btn btn-tool">
<i class="fas fa-eye"></i>
Expand All @@ -357,7 +357,7 @@
<div class="col-lg-4">
<div class="card card-dark mb-3">
<div class="card-header">
<h3 class="card-title"><i class="fas fa-fw fa-chart-pie mr-2"></i>Income by Category <small>(Top 5)</small></h3>
<h3 class="card-title"><i class="fas fa-fw fa-chart-pie mr-2"></i><?php echo __('income_by_category', 'Income by Category'); ?> <small>(<?php echo __('top_5', 'Top 5'); ?>)</small></h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="remove">
<i class="fas fa-times"></i>
Expand All @@ -375,7 +375,7 @@
<div class="col-lg-4">
<div class="card card-dark mb-3">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-fw fa-shopping-cart mr-2"></i>Expenses by Category <small>(Top 5)</small></h3>
<h3 class="card-title"><i class="fa fa-fw fa-shopping-cart mr-2"></i><?php echo __('expenses_by_category', 'Expenses by Category'); ?> <small>(<?php echo __('top_5', 'Top 5'); ?>)</small></h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="remove">
<i class="fas fa-times"></i>
Expand All @@ -393,7 +393,7 @@
<div class="col-lg-4">
<div class="card card-dark mb-3">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-fw fa-building mr-2"></i>Expenses by Vendor <small>(Top 5)</small></h3>
<h3 class="card-title"><i class="fa fa-fw fa-building mr-2"></i><?php echo __('expenses_by_vendor', 'Expenses by Vendor'); ?> <small>(<?php echo __('top_5', 'Top 5'); ?>)</small></h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="remove">
<i class="fas fa-times"></i>
Expand All @@ -411,7 +411,7 @@
<div class="col-md-4">
<div class="card card-dark mb-3">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-fw fa-piggy-bank mr-2"></i>Account Balances</h3>
<h3 class="card-title"><i class="fa fa-fw fa-piggy-bank mr-2"></i><?php echo __('account_balances', 'Account Balances'); ?></h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="remove">
<i class="fas fa-times"></i>
Expand Down Expand Up @@ -459,7 +459,7 @@
<div class="col-md-4">
<div class="card card-dark mb-3">
<div class="card-header">
<h3 class="card-title"><i class="fas fa-fw fa-credit-card mr-2"></i>Latest Income</h3>
<h3 class="card-title"><i class="fas fa-fw fa-credit-card mr-2"></i><?php echo __('latest_income', 'Latest Income'); ?></h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="remove">
<i class="fas fa-times"></i>
Expand Down Expand Up @@ -500,7 +500,7 @@
<div class="col-md-4">
<div class="card card-dark mb-3">
<div class="card-header">
<h3 class="card-title"><i class="fas fa-fw fa-shopping-cart mr-2"></i>Latest Expenses</h3>
<h3 class="card-title"><i class="fas fa-fw fa-shopping-cart mr-2"></i><?php echo __('latest_expenses', 'Latest Expenses'); ?></h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="remove">
<i class="fas fa-times"></i>
Expand Down Expand Up @@ -540,7 +540,7 @@
<div class="col-md-12">
<div class="card card-dark mb-3">
<div class="card-header">
<h3 class="card-title"><i class="fas fa-fw fa-route mr-2"></i>Trip Flow</h3>
<h3 class="card-title"><i class="fas fa-fw fa-route mr-2"></i><?php echo __('trip_flow', 'Trip Flow'); ?></h3>
<div class="card-tools">
<a href="trips.php" class="btn btn-tool">
<i class="fas fa-eye"></i>
Expand Down Expand Up @@ -608,7 +608,7 @@
<a class="small-box bg-secondary" href="clients.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
<div class="inner">
<h3><?php echo $clients_added; ?></h3>
<p>New Clients</p>
<p><?php echo __('new_clients', 'New Clients'); ?></p>
</div>
<div class="icon">
<i class="fa fa-users"></i>
Expand All @@ -621,7 +621,7 @@
<a class="small-box bg-success" href="contacts.php">
<div class="inner">
<h3><?php echo $contacts_added; ?></h3>
<p>New Contacts</p>
<p><?php echo __('new_contacts', 'New Contacts'); ?></p>
</div>
<div class="icon">
<i class="fa fa-user"></i>
Expand All @@ -634,7 +634,7 @@
<a class="small-box bg-info" href="assets.php">
<div class="inner">
<h3><?php echo $assets_added; ?></h3>
<p>New Assets</p>
<p><?php echo __('new_assets', 'New Assets'); ?></p>
</div>
<div class="icon">
<i class="fa fa-desktop"></i>
Expand All @@ -647,7 +647,7 @@
<a class="small-box bg-danger" href="tickets.php">
<div class="inner">
<h3><?php echo $active_tickets; ?></h3>
<p>Active Tickets</p>
<p><?php echo __('active_tickets', 'Active Tickets'); ?></p>
</div>
<div class="icon">
<i class="fa fa-ticket-alt"></i>
Expand All @@ -660,7 +660,7 @@
<a class="small-box bg-warning" href="domains.php?sort=domain_expire&order=ASC">
<div class="inner">
<h3><?php echo $expiring_domains; ?></h3>
<p>Expiring Domains <small>30 Day</small></p>
<p><?php echo __('expiring_domains', 'Expiring Domains'); ?> <small><?php echo __('30_day', '30 Day'); ?></small></p>
</div>
<div class="icon">
<i class="fa fa-globe"></i>
Expand All @@ -673,7 +673,7 @@
<a class="small-box bg-primary" href="certificates.php?sort=certificate_expire&order=ASC">
<div class="inner">
<h3><?php echo $expiring_certificates; ?></h3>
<p>Expiring Certificates<small>30 Day</small></p>
<p><?php echo __('expiring_certificates', 'Expiring Certificates'); ?><small><?php echo __('30_day', '30 Day'); ?></small></p>
</div>
<div class="icon">
<i class="fa fa-lock"></i>
Expand All @@ -688,7 +688,7 @@
<div class="col-12">
<div class="card card-dark mb-3">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-fw fa-life-ring mr-2"></i>Your Open Tickets</h3>
<h3 class="card-title"><i class="fa fa-fw fa-life-ring mr-2"></i><?php echo __('your_open_tickets', 'Your Open Tickets'); ?></h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-card-widget="remove">
<i class="fas fa-times"></i>
Expand Down
Loading