update item movement master

This commit is contained in:
ameerulrasyid 2025-03-04 14:37:23 +08:00
parent 4afac02583
commit 26aaff2d2b
4 changed files with 186 additions and 143 deletions

View File

@ -42,6 +42,11 @@
<h2>Pending Item Movement</h2>
</div>
<div class="card-body">
<div v-if="loading">
<div class="spinner-border text-info" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<table class="table table-bordered table-hover table-striped no-wrap" id="itemMovementNotCompleteDatatable" style="width:100%;border-style: solid; border-width: 1px"></table>
</div>
</div>
@ -51,12 +56,22 @@
<h2>Complete Item Movement</h2>
</div>
<div class="card-body">
<div v-if="loading">
<div class="spinner-border text-info" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<table class="table table-bordered table-hover table-striped no-wrap" id="itemMovementCompleteDatatable" style="width:100%;border-style: solid; border-width: 1px"></table>
</div>
</div>
</div>
<div v-if="sortBy === 'logs'">
<div v-if="loading">
<div class="spinner-border text-info" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<div class="row card">
<div class="card-header">
<h2>Item Movement List</h2>
@ -68,6 +83,11 @@
</div>
<div v-if="sortBy === 'item'">
<div v-if="loading">
<div class="spinner-border text-info" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<div v-for="(group, itemId) in filteredItems" :key="itemId" class="row card">
<div class="card-header d-flex justify-content-between align-items-center">
<h2>Item : {{ group.uniqueID }}</h2>
@ -432,6 +452,8 @@
initiateTable() {
this.loading = true;
self = this;
this.itemDatatable = $('#itemDatatable').DataTable({
"data": this.items,
@ -518,34 +540,35 @@
self.deleteItem(itemId);
});
$('#itemDatatable tbody').on('click', '.print-btn', function () {
const $button = $(this); // The clicked button
const $row = $button.closest('tr'); // The parent row of the button
const itemId = $button.data('id'); // Get the item ID from the button's data attribute
// $('#itemDatatable tbody').on('click', '.print-btn', function () {
// const $button = $(this); The clicked button
// const $row = $button.closest('tr'); The parent row of the button
// const itemId = $button.data('id'); Get the item ID from the button's data attribute
let imageSrc;
// let imageSrc;
// Check if the table is collapsed
if ($row.hasClass('child')) {
// For collapsed view: Look for the closest `.dtr-data` that contains the img
imageSrc = $row.prev('tr').find('td:nth-child(1) img').attr('src');
} else {
// For expanded view: Find the img in the first column of the current row
imageSrc = $row.find('td:nth-child(1) img').attr('src');
}
// Check if the table is collapsed
// if ($row.hasClass('child')) {
// For collapsed view: Look for the closest `.dtr-data` that contains the img
// imageSrc = $row.prev('tr').find('td:nth-child(1) img').attr('src');
// } else {
// For expanded view: Find the img in the first column of the current row
// imageSrc = $row.find('td:nth-child(1) img').attr('src');
// }
if (imageSrc) {
self.printItem(itemId, imageSrc); // Call the print function with the itemId and imageSrc
} else {
console.error("Image source not found.");
}
});
// if (imageSrc) {
// self.printItem(itemId, imageSrc); Call the print function with the itemId and imageSrc
// } else {
// console.error("Image source not found.");
// }
// });
this.loading = false;
},
async fetchItem() {
await this.fetchUser();
this.loading = true;
await this.fetchUser();
try {
// const token = localStorage.getItem('token'); // Get the token from localStorage
const response = await fetch('/InvMainAPI/ItemMovementList', {
@ -561,6 +584,8 @@
}
if(this.currentRole == "Super Admin"){
this.items = await response.json();
} else {
const data = await response.json();
this.items = data.filter(item =>
@ -586,15 +611,10 @@
catch (error) {
console.error('Error fetching item:', error);
}
this.loading = false;
},
// FRONT END FUNCTIONS
//----------------------//
//Calculate Total Price
@ -706,6 +726,7 @@
if (roles.includes("SuperAdmin")) {
this.currentRole = "Super Admin";
this.sortBy = 'logs';
} else if (roles.includes("Inventory Master")) {
this.currentRole = "Inventory Master";
this.sortBy = "item";

View File

@ -36,6 +36,7 @@
<div id="registerItemMovement" v-if="!thisItem" data-aos="fade-right">
<p style="text-align:center; padding:10px;">Scan QR Code Here:</p>
<qrcode-stream :constraints="selectedConstraints"
:formats="['qr_code']"
:track="trackFunctionSelected.value"
@ -44,9 +45,13 @@
v-on:error="onError">
</qrcode-stream>
<!-- Debugging: Show Processed Video -->
<canvas ref="sharpenedCanvas" style="display:none;"></canvas>
<video ref="preview" autoplay style="width: 100%;"></video>
<p class="error">{{ error }}</p>
</div>
<p v-if="scanTime">Scan Time: {{ scanTime }} ms</p>
<div v-if="thisItem" style="display: flex; justify-content: center; align-items: center;">
<div class="col-lg-7 col-11 border rounded p-3 shadow-sm">
@ -150,6 +155,13 @@
<form v-on:submit.prevent="receiveItemMovement" data-aos="fade-right">
<div class="row register-form">
<div class="form-group row">
<label class="col-sm-4 col-form-label">Remark:</label>
<div class="col-sm-8">
<input type="text" id="remark" name="remark" v-model="remark" class="form-control" required />
</div>
</div>
<div style="display: flex; justify-content: center; margin-top: 20px;">
<button type="submit" class="btn btn-primary" style="width: 200px; padding: 10px; font-size: 16px;">
Cancel Item Movement
@ -324,7 +336,7 @@
<label class="col-sm-4 col-form-label">To Station:</label>
<div class="col-sm-8">
<div class="dropdown">
<select class="btn btn-primary dropdown-toggle col-md-10" v-model="selectedStation" v-on:change="handleSelection" required style="width: 100%;">
<select class="btn btn-primary dropdown-toggle col-md-10" v-model="selectedStation" required style="width: 100%;">
<option class="btn-light" value="" disabled selected>Select Station</option>
<option class="btn-light" v-for="(station, index) in stationlist" :key="index" :value="station.stationId">{{station.stationName}}</option>
</select>
@ -339,7 +351,7 @@
<label class="col-sm-4 col-form-label">To PIC:</label>
<div class="col-sm-8">
<div class="dropdown">
<input type="text" id="selectedStationPIC" name="selectedStationPIC" v-model="selectedStationPIC" class="form-control" readonly />
<input type="text" id="selectedStationPIC" name="selectedStationPIC" :value="selectedStationPicName" class="form-control" readonly />
</div>
</div>
</div>
@ -584,7 +596,7 @@
supplierlist: null,
selectedUser: "",
selectedStation: "",
selectedStationPIC: "",
selectedStationPIC: null,
selectedStore: "",
selectedAction: "",
assigndate: null,
@ -626,6 +638,8 @@
],
videoInputDevices: [],
selectedCameraId: null,
scanStartTime: null,
scanTime: null
}
},
mounted() {
@ -638,15 +652,19 @@
},
watch: {
selectedStation(newStationId) {
console.log(newStationId);
console.log(this.selectedStation);
// Find the station object that matches the selectedStation id
const selectedStationObj = this.stationlist.find(station => station.stationId === newStationId);
// Set the selectedPIC based on the stationPIC
this.selectedStationPIC = selectedStationObj ? selectedStationObj.stationPicID : "";
// this.selectedStationPIC = selectedStationObj ? selectedStationObj : null;
}
},
computed: {
selectedStationPicName() {
const selectedStationObj = this.stationlist.find(station => station.stationId === this.selectedStation);
return selectedStationObj ? selectedStationObj.stationPic.fullName : "";
},
filteredDepartments() {
if (!this.selectedCompany) {
return []; // No company selected, return empty list
@ -667,17 +685,11 @@
},
},
methods: {
// handleSelection(event) {
// console.log("Event Target Value:", event.target.value); Debugging
// const selectedstationid = event.target.value;
// console.log(this.stationlist);
// const selectedStationObj = this.stationlist.find(station => station.stationId == selectedstationid);
// Set the selectedPIC based on the stationPIC
// this.selectedStationPIC = selectedStationObj ? selectedStationObj.stationPicID : "";
// },
// Split Url dapatkan unique ID Je
onDecode(detectedCodes) {
// const endTime = performance.now();
// this.scanTime = Math.round(endTime - this.scanStartTime); Calculate scan time
if (detectedCodes.length > 0) {
this.qrCodeResult = detectedCodes[0].rawValue; // Ambil URL dari rawValue
this.UniqueID = this.qrCodeResult.split('/').pop(); // Ambil UniqueID dari URL
@ -702,6 +714,9 @@
//Setting Camera
async onCameraReady() {
// this.scanStartTime = performance.now(); Start timing
// this.scanTime = null; Reset previous scan time
try {
const devices = await navigator.mediaDevices.enumerateDevices();
this.videoInputDevices = devices.filter(device => device.kind === 'videoinput');
@ -771,7 +786,7 @@
const formData = {
...(this.selectedAction === 'user' ? { toUser: this.currentUser.id, toOther: 'On Delivery', SendDate: this.assigndate, lastUser: this.selectedUser, MovementComplete: false, Remark: this.remark, ConsignmentNote: this.document} : {}),
...(this.selectedAction === 'station' ? { toStation: this.selectedStation, toUser: this.currentUser.id, toOther: 'On Delivery', SendDate: this.assigndate, lastUser: this.selectedUser, MovementComplete: false, Remark: this.remark, ConsignmentNote: this.document} : {}),
...(this.selectedAction === 'station' ? { toUser: this.currentUser.id, toOther: 'On Delivery', SendDate: this.assigndate, lastStation: this.selectedStation, lastUser: this.selectedStationPIC, MovementComplete: false, Remark: this.remark, ConsignmentNote: this.document} : {}),
...(this.selectedAction === 'store' ? { toUser: this.currentUser.id, toOther: 'On Delivery', SendDate: this.assigndate, lastUser: this.selectedStore, MovementComplete: false, Remark: this.remark, ConsignmentNote: this.document} : {}),
...(this.selectedAction === 'supplier' ? { toUser: this.currentUser.id, toOther: this.selectedOther, SendDate: this.assigndate, Remark: this.remark + '. Item sent to ' + this.selectedSupplier + ' for ' + this.selectedOther, ConsignmentNote: this.document, lastUser: this.currentUser.id, MovementComplete: false, } : {}),
...(this.selectedAction === 'faulty' ? { toUser: this.currentUser.id,toOther: 'Faulty', Date: new Date(now.getTime() + 8 * 60 * 60 * 1000).toISOString(), Remark: this.remark, ConsignmentNote: this.document, MovementComplete: true, } : {}),
@ -834,6 +849,7 @@
Id: this.thisItem.movementId,
ReceiveDate: new Date(now.getTime() + 8 * 60 * 60 * 1000).toISOString(),
Remark: this.thisItem.toOther === "On Delivery" ? this.thisItem.remark + ". Inventory Master cancelled delivery with remark: " + this.remark : this.thisItem.remark,
LatestStatus: this.thisItem.toOther === "Return" ? "Faulty" : (this.thisItem.toOther === "Calibration" || this.thisItem.toOther === "Repair" || this.thisItem.toOther === "On Delivery" ) ? "Ready To Deploy" : ""
};
@ -884,6 +900,7 @@
this.thisItem = await response.json();
this.itemlateststatus = this.thisItem.latestStatus ? this.thisItem.latestStatus : this.thisItem.toOther;
this.itemassignedtouser = this.thisItem.toUser == this.currentUser.id || this.thisItem.lastUser == this.currentUser.id ? true : false;
console.log(this.thisItem);
// if ((this.thisItem.toOther === "Repair" || this.thisItem.toOther === "Calibration" || this.thisItem.toOther === "Return" ) && this.thisItem.lastUser === this.currentUser.id && this.thisItem.movementComplete === false) {
@ -927,6 +944,8 @@
this.assigndate = "";
this.selectedStore = "";
this.selectedOther = "";
this.selectedStation = "";
this.selectedStationPIC = "";

View File

@ -538,6 +538,7 @@ namespace PSTW_CentralSystem.Controllers.API.Inventory
item.Movement?.LatestStatus,
item.Movement?.LastUser,
item.Movement?.MovementComplete,
remark = item.Movement?.Remark,
QRString = $"{HttpContext.Request.Scheme}://{HttpContext.Request.Host.Value}/I/{item.UniqueID}" // Generate QR String
};
return Json(singleItem);
@ -753,6 +754,7 @@ namespace PSTW_CentralSystem.Controllers.API.Inventory
updatedList.LatestStatus = receiveMovement.LatestStatus;
updatedList.receiveDate = receiveMovement.receiveDate;
updatedList.Remark = receiveMovement.Remark;
updatedList.MovementComplete = true;
_centralDbContext.ItemMovements.Update(updatedList);
@ -1121,7 +1123,7 @@ namespace PSTW_CentralSystem.Controllers.API.Inventory
[HttpPost("StationList")]
public async Task<IActionResult> StationList()
{
var stationList = await _centralDbContext.Stations.ToListAsync();
var stationList = await _centralDbContext.Stations.Include(i => i.StationPic).ToListAsync();
return Json(stationList);
}

View File

@ -23,16 +23,16 @@
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="keywords"
content="wrappixel, admin dashboard, html css dashboard, web dashboard, bootstrap 5 admin, bootstrap 5, css3 dashboard, bootstrap 5 dashboard, Matrix lite admin bootstrap 5 dashboard, frontend, responsive bootstrap 5 admin template, Matrix admin lite design, Matrix admin lite dashboard bootstrap 5 dashboard template" />
content="wrappixel, admin dashboard, html css dashboard, web dashboard, bootstrap 5 admin, bootstrap 5, css3 dashboard, bootstrap 5 dashboard, Matrix lite admin bootstrap 5 dashboard, frontend, responsive bootstrap 5 admin template, Matrix admin lite design, Matrix admin lite dashboard bootstrap 5 dashboard template" />
<meta name="description"
content="Matrix Admin Lite Free Version is powerful and clean admin dashboard template, inpired from Bootstrap Framework" />
content="Matrix Admin Lite Free Version is powerful and clean admin dashboard template, inpired from Bootstrap Framework" />
<meta name="robots" content="noindex,nofollow" />
<title>PSTW Centralize Web System</title>
<!-- Favicon icon -->
<link rel="icon"
type="image/png"
sizes="16x16"
href="/assets/images/favicon.png" />
type="image/png"
sizes="16x16"
href="/assets/images/favicon.png" />
<!-- Custom CSS -->
@ -55,27 +55,27 @@
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<style>
.btn-teal {
background-color: #20c997; /* Teal color */
color: #ffffff; /* White text */
border: none; /* Remove border */
background-color: #20c997; /* Teal color */
color: #ffffff; /* White text */
border: none; /* Remove border */
}
.btn-teal:hover {
background-color: #17a589; /* Darker teal on hover */
color: #ffffff;
background-color: #17a589; /* Darker teal on hover */
color: #ffffff;
}
.btn-teal:focus,
.btn-teal.focus {
box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.5); /* Teal shadow on focus */
box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.5); /* Teal shadow on focus */
}
</style>
<!-- ============================================================== -->
@ -108,12 +108,12 @@
<!-- Main wrapper - style you can find in pages.scss -->
<!-- ============================================================== -->
<div id="main-wrapper"
data-layout="vertical"
data-navbarbg="skin5"
data-sidebartype="full"
data-sidebar-position="absolute"
data-header-position="absolute"
data-boxed-layout="full">
data-layout="vertical"
data-navbarbg="skin5"
data-sidebartype="full"
data-sidebar-position="absolute"
data-header-position="absolute"
data-boxed-layout="full">
<!-- ============================================================== -->
<!-- Topbar header - style you can find in pages.scss -->
<!-- ============================================================== -->
@ -129,17 +129,17 @@
<!--You can put here icon as well // <i class="wi wi-sunset"></i> //-->
<!-- Dark Logo icon -->
<img src="/assets/images/logo-icon.png"
alt="homepage"
class="light-logo"
width="25" />
alt="homepage"
class="light-logo"
width="25" />
</b>
<!--End Logo icon -->
<!-- Logo text -->
<span class="logo-text ms-2">
<!-- dark Logo text -->
<img src="/assets/images/logo-text.png"
alt="homepage"
class="light-logo" />
alt="homepage"
class="light-logo" />
</span>
<!-- Logo icon -->
<!-- <b class="logo-icon"> -->
@ -156,7 +156,7 @@
<!-- Toggle which is visible on mobile only -->
<!-- ============================================================== -->
<a class="nav-toggler waves-effect waves-light d-block d-md-none"
href="javascript:void(0)">
href="javascript:void(0)">
<i class="ti-menu ti-close"></i>
</a>
</div>
@ -164,16 +164,16 @@
<!-- End Logo -->
<!-- ============================================================== -->
<div class="navbar-collapse collapse"
id="navbarSupportedContent"
data-navbarbg="skin5">
id="navbarSupportedContent"
data-navbarbg="skin5">
<!-- ============================================================== -->
<!-- toggle and nav items -->
<!-- ============================================================== -->
<ul class="navbar-nav float-start me-auto">
<li class="nav-item d-none d-lg-block">
<a class="nav-link sidebartoggler waves-effect waves-light"
href="javascript:void(0)"
data-sidebartype="mini-sidebar">
href="javascript:void(0)"
data-sidebartype="mini-sidebar">
<i class="mdi mdi-menu font-24"></i>
</a>
</li>
@ -187,42 +187,42 @@
<!-- create new -->
<!-- ============================================================== -->
<!--<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
<span class="d-none d-md-block">
Create New <i class="fa fa-angle-down"></i>
</span>
<span class="d-block d-md-none">
<i class="fa fa-plus"></i>
</span>
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><hr class="dropdown-divider" /></li>
<li>
<a class="dropdown-item" href="#">Something else here</a>
</li>
</ul>
<a class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
<span class="d-none d-md-block">
Create New <i class="fa fa-angle-down"></i>
</span>
<span class="d-block d-md-none">
<i class="fa fa-plus"></i>
</span>
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><hr class="dropdown-divider" /></li>
<li>
<a class="dropdown-item" href="#">Something else here</a>
</li>
</ul>
</li>-->
<!-- ============================================================== -->
<!-- Search -->
<!-- ============================================================== -->
<!--<li class="nav-item search-box">
<a class="nav-link waves-effect waves-dark"
href="javascript:void(0)">
<i class="mdi mdi-magnify fs-4"></i>
</a>
<form class="app-search position-absolute">
<input type="text"
class="form-control"
placeholder="Search &amp; enter" />
<a class="srh-btn"><i class="mdi mdi-window-close"></i></a>
</form>
<a class="nav-link waves-effect waves-dark"
href="javascript:void(0)">
<i class="mdi mdi-magnify fs-4"></i>
</a>
<form class="app-search position-absolute">
<input type="text"
class="form-control"
placeholder="Search &amp; enter" />
<a class="srh-btn"><i class="mdi mdi-window-close"></i></a>
</form>
</li>-->
</ul>
<!-- ============================================================== -->
@ -235,11 +235,11 @@
<partial name="_LoginPartial" />
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
href="#"
id="navbarDropdown"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
<i class="mdi mdi-bell font-24"></i>
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
@ -259,11 +259,11 @@
<!-- ============================================================== -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle waves-effect waves-dark"
href="#"
id="2"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
href="#"
id="2"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
<i class="font-24 mdi mdi-comment-processing"></i>
</a>
<ul class="
@ -271,8 +271,8 @@
mailbox
animated
bounceInDown
"
aria-labelledby="2">
"
aria-labelledby="2">
<ul class="list-style-none">
<li>
<div class="">
@ -284,7 +284,7 @@
d-flex
align-items-center
justify-content-center
">
">
<i class="mdi mdi-calendar text-white fs-4"></i>
</span>
<div class="ms-2">
@ -301,7 +301,7 @@
d-flex
align-items-center
justify-content-center
">
">
<i class="mdi mdi-settings fs-4"></i>
</span>
<div class="ms-2">
@ -318,7 +318,7 @@
d-flex
align-items-center
justify-content-center
">
">
<i class="mdi mdi-account fs-4"></i>
</span>
<div class="ms-2">
@ -335,7 +335,7 @@
d-flex
align-items-center
justify-content-center
">
">
<i class="mdi mdi-link fs-4"></i>
</span>
<div class="ms-2">
@ -362,19 +362,19 @@
text-muted
waves-effect waves-dark
pro-pic
"
href="#"
id="navbarDropdown"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
"
href="#"
id="navbarDropdown"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false">
<img src="/assets/images/users/1.jpg"
alt="user"
class="rounded-circle"
width="31" />
alt="user"
class="rounded-circle"
width="31" />
</a>
<ul class="dropdown-menu dropdown-menu-end user-dd animated"
aria-labelledby="navbarDropdown">
aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="javascript:void(0)"><i class="mdi mdi-account me-1 ms-1"></i> My Profile</a>
<a class="dropdown-item" href="javascript:void(0)"><i class="mdi mdi-wallet me-1 ms-1"></i> My Balance</a>
<a class="dropdown-item" href="javascript:void(0)"><i class="mdi mdi-email me-1 ms-1"></i> Inbox</a>
@ -388,7 +388,7 @@
<div class="dropdown-divider"></div>
<div class="ps-4 p-10">
<a href="javascript:void(0)"
class="btn btn-sm btn-success btn-rounded text-white">View Profile</a>
class="btn btn-sm btn-success btn-rounded text-white">View Profile</a>
</div>
</ul>
</li>
@ -413,8 +413,8 @@
<ul id="sidebarnav" class="pt-4">
<li class="sidebar-item">
<a class="sidebar-link has-arrow waves-effect waves-dark"
href="javascript:void(0)"
aria-expanded="false">
href="javascript:void(0)"
aria-expanded="false">
<i class="mdi mdi-receipt"></i><span class="hide-menu">Administrator </span>
</a>
<ul aria-expanded="false" class="collapse first-level">
@ -432,15 +432,15 @@
</li>
<li class="sidebar-item">
<a class="sidebar-link waves-effect waves-dark sidebar-link"
href="#"
aria-expanded="false">
href="#"
aria-expanded="false">
<i class="mdi mdi-view-dashboard"></i><span class="hide-menu">Dashboard</span>
</a>
</li>
<li class="sidebar-item">
<a class="sidebar-link has-arrow waves-effect waves-dark"
href="javascript:void(0)"
aria-expanded="false">
href="javascript:void(0)"
aria-expanded="false">
<i class="mdi mdi-receipt"></i><span class="hide-menu">Inventory </span>
</a>
<ul aria-expanded="false" class="collapse first-level">
@ -448,13 +448,13 @@
{
<li class="sidebar-item">
<a class="sidebar-link waves-effect waves-dark sidebar-link"
asp-area="Inventory" asp-controller="InventoryMaster" asp-action="AdminDashboard"
aria-expanded="false">
asp-area="Inventory" asp-controller="InventoryMaster" asp-action="AdminDashboard"
aria-expanded="false">
<i class="mdi mdi-view-dashboard"></i><span class="hide-menu">Admin Dashboard</span>
</a>
</li>
}
} else
{
<li class="sidebar-item">
<a class="sidebar-link waves-effect waves-dark sidebar-link"
asp-area="Inventory" asp-controller="ItemMovement" asp-action="UserDashboard"
@ -462,6 +462,7 @@
<i class="mdi mdi-view-dashboard"></i><span class="hide-menu">User Dashboard</span>
</a>
</li>
}
<li class="sidebar-item">
<a class="sidebar-link waves-effect waves-dark sidebar-link"
asp-area="Inventory" asp-controller="InventoryMaster" asp-action="ProductRegistration"