Feature/gasht rahdari
This commit is contained in:
12
src/app/(withAuth)/dashboard/road-patrols/operator/page.js
Normal file
12
src/app/(withAuth)/dashboard/road-patrols/operator/page.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import WithPermission from "@/core/middlewares/withPermission";
|
||||
import OperatorPage from "@/components/dashboard/roadPatrols/operator";
|
||||
|
||||
const Page = () => {
|
||||
return (
|
||||
<WithPermission permission_name={["add-road-patrol"]}>
|
||||
<OperatorPage />
|
||||
</WithPermission>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page;
|
||||
11
src/app/(withAuth)/dashboard/road-patrols/supervisor/page.js
Normal file
11
src/app/(withAuth)/dashboard/road-patrols/supervisor/page.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import WithPermission from "@/core/middlewares/withPermission";
|
||||
import SupervisorPage from "@/components/dashboard/roadPatrols/supervisor";
|
||||
const Page = () => {
|
||||
return (
|
||||
<WithPermission permission_name={["show-road-patrol-supervise-cartable"]}>
|
||||
<SupervisorPage />
|
||||
</WithPermission>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page;
|
||||
24
src/app/api/fake-operator-list/route.js
Normal file
24
src/app/api/fake-operator-list/route.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const data = [
|
||||
{
|
||||
id: 1,
|
||||
operator_name: "امین",
|
||||
phone_number: "09134849737",
|
||||
car_id: "33",
|
||||
start_date: "2024-11-02T11:48:22.000000Z",
|
||||
end_date: "2024-11-03T11:01:14.000000Z",
|
||||
register_date: "2024-11-03T11:01:14.000000Z",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
operator_name: "امیر",
|
||||
phone_number: "09134844955",
|
||||
car_id: "233",
|
||||
start_date: "2024-11-02T11:48:22.000000Z",
|
||||
end_date: "2024-11-03T11:01:14.000000Z",
|
||||
register_date: "2024-11-03T11:01:14.000000Z",
|
||||
},
|
||||
];
|
||||
|
||||
export async function GET() {
|
||||
return Response.json({ data });
|
||||
}
|
||||
28
src/app/api/fake-supervisor-list/route.js
Normal file
28
src/app/api/fake-supervisor-list/route.js
Normal file
@@ -0,0 +1,28 @@
|
||||
const data = [
|
||||
{
|
||||
id: 1,
|
||||
operator_name: "امین",
|
||||
phone_number: "09134849737",
|
||||
province: "تهران",
|
||||
office: "اداره کل",
|
||||
car_id: "33",
|
||||
start_date: "2024-11-02T11:48:22.000000Z",
|
||||
end_date: "2024-11-03T11:01:14.000000Z",
|
||||
register_date: "2024-11-03T11:01:14.000000Z",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
operator_name: "امیر",
|
||||
phone_number: "09134844955",
|
||||
province: "تهران",
|
||||
office: "اداره کل",
|
||||
car_id: "233",
|
||||
start_date: "2024-11-02T11:48:22.000000Z",
|
||||
end_date: "2024-11-03T11:01:14.000000Z",
|
||||
register_date: "2024-11-03T11:01:14.000000Z",
|
||||
},
|
||||
];
|
||||
|
||||
export async function GET() {
|
||||
return Response.json({ data });
|
||||
}
|
||||
Reference in New Issue
Block a user