Feature/toll house

This commit is contained in:
2025-04-14 11:40:54 +00:00
committed by AmirHossein Mahmoodi
parent 7f5694c6ee
commit feb2d5193b
28 changed files with 2014 additions and 18 deletions

View File

@@ -0,0 +1,13 @@
import HeaderWithLogo from "@/components/layouts/dashboard/headerWithLogo";
import HeaderWithSidebar from "@/components/layouts/dashboard/headerWithSidebar";
import { Stack } from "@mui/material";
const Layout = ({ children }) => {
return (
<Stack sx={{ width: "100%", height: "100%" }}>
<HeaderWithLogo />
<HeaderWithSidebar>{children}</HeaderWithSidebar>
</Stack>
);
};
export default Layout;

View File

@@ -0,0 +1,7 @@
"use client";
import PageLoading from "@/core/components/PageLoading";
const Loading = () => {
return <PageLoading />;
};
export default Loading;

View File

@@ -0,0 +1,16 @@
import WithPermission from "@/core/middlewares/withPermission";
import TollHousePage from "@/components/infrastructure/tollHouse";
export const metadata = {
title: "فهرست راهدارخانه ها",
};
const Page = () => {
return (
<WithPermission permission_name={["show-tollhouse", "show-tollhouse-province"]}>
<TollHousePage />
</WithPermission>
);
};
export default Page;