Skip to content

Commit

Permalink
Merge pull request #262 from wanderlust-group-project-1/guide_availab…
Browse files Browse the repository at this point in the history
…ility

Guide Dashboard edits
  • Loading branch information
Gayandee authored Apr 29, 2024
2 parents a5cd12a + 2eee6c0 commit 1279afb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions app/views/customer/profile.view.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@


<form id="customer" action="<?= ROOT_DIR ?>/customer/update" method="post">
<h2>Update Customer Details</h2>
<h2 class="row">Update Customer Details</h2>
<?php if (isset($errors)) : ?>
<div> <?= implode('<br>', $errors) ?> </div>
<?php endif; ?>
Expand All @@ -322,7 +322,9 @@
<label for="nic">NIC Number</label>
<input type="text" name="nic" id="nic" value="<?= $user->nic ?>" required>
<br />
<input type="submit" name="submit" value="Update" class="btn-edit-profile-pic">
<div class="row">
<input type="submit" name="submit" value="Update" class="btn-edit-profile-pic">
</div>
</form>
<!-- </div> -->
</div>
Expand Down
7 changes: 4 additions & 3 deletions app/views/guide/GuideDashboard.view.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
xaxis: {
type: 'category', // Change type to 'category' for non-datetime values
categories: ["Sep", "Oct", "Nov", "Dec", "Jan", "Feb", "Mar"] // Use month names instead of date strings
// categories: ["Sep", "Oct", "Nov", "Dec", "Jan", "Feb", "Mar"] // Use month names instead of date strings
},
tooltip: {
x: {
Expand All @@ -134,7 +134,6 @@
};

var chart = new ApexCharts(document.querySelector("#chart"), options);
chart.render();
</script>

<script>
Expand Down Expand Up @@ -188,8 +187,10 @@
options.series[1].name = 'Completed bookings';
options.series[1].data = completedBookingData;

xaxisCategories = data.data.map(entry => entry.month);
const xaxisCategories = data.data.map(entry => entry.month_year);

// Update the x-axis categories
options.xaxis.categories = xaxisCategories;



Expand Down

0 comments on commit 1279afb

Please sign in to comment.