UI Admin Revisi Baru Di Menu Ekonomi

This commit is contained in:
2025-06-03 17:42:34 +08:00
parent 423ad0e2ba
commit a1e7fddbed
42 changed files with 1509 additions and 623 deletions

View File

@@ -1,32 +1,58 @@
'use client'
import colors from '@/con/colors';
import { Stack, SimpleGrid, Box, Paper, Title, Group, Button } from '@mantine/core';
import React from 'react';
import CreatePencegahan from './create/createPencegahan';
import ListDataPencegahan from './listData/page';
import { Box, Button, Paper, Table, TableTbody, TableTd, TableTh, TableThead, TableTr } from '@mantine/core';
import { IconDeviceImac, IconSearch } from '@tabler/icons-react';
import HeaderSearch from '../../_com/header';
import JudulList from '../../_com/judulList';
import { useRouter } from 'next/navigation';
function Page() {
function PencegahanKriminalitas() {
return (
<Stack gap={"xs"}>
<SimpleGrid cols={{ base: 1, md: 2 }}>
<Box>
<Paper bg={colors['white-1']} p={'md'} radius={10}>
<Title order={3}>Kontak Darurat</Title>
<CreatePencegahan/>
<Group>
<Button
mt={10}
bg={colors['blue-button']}
>
Submit
</Button>
</Group>
</Paper>
</Box>
<ListDataPencegahan/>
</SimpleGrid>
</Stack>
<Box>
<HeaderSearch
title='Pencegahan Kriminalitas'
placeholder='pencarian'
searchIcon={<IconSearch size={20} />}
/>
<ListPencegahanKriminalitas/>
</Box>
);
}
export default Page;
function ListPencegahanKriminalitas() {
const router = useRouter();
return (
<Box py={10}>
<Paper bg={colors['white-1']} p={'md'}>
<JudulList
title='List Pencegahan Kriminalitas'
href='/admin/keamanan/pencegahan-kriminalitas/create'
/>
<Table striped withTableBorder withRowBorders>
<TableThead>
<TableTr>
<TableTh>Nama Pencegahan Kriminalitas</TableTh>
<TableTh>Nomor Pencegahan Kriminalitas</TableTh>
<TableTh>Deskripsi</TableTh>
<TableTh>Detail</TableTh>
</TableTr>
</TableThead>
<TableTbody>
<TableTr>
<TableTd>Pencegahan Kriminalitas 1</TableTd>
<TableTd>0896232831883</TableTd>
<TableTd>Pencegahan Kriminalitas 1</TableTd>
<TableTd>
<Button onClick={() => router.push('/admin/keamanan/pencegahan-kriminalitas/detail')}>
<IconDeviceImac size={20} />
</Button>
</TableTd>
</TableTr>
</TableTbody>
</Table>
</Paper>
</Box>
);
}
export default PencegahanKriminalitas;