category ticket

This commit is contained in:
hamid zarghami
2025-01-25 15:53:12 +03:30
parent 0861501f48
commit 2098b9409a
7 changed files with 219 additions and 4 deletions
+145
View File
@@ -0,0 +1,145 @@
import { FC } from 'react'
import { useTranslation } from 'react-i18next'
import Select from '../../components/Select'
import Input from '../../components/Input'
import Td from '../../components/Td'
import SwitchComponent from '../../components/Switch'
import { CloseCircle } from 'iconsax-react'
const TicketCategory: FC = () => {
const { t } = useTranslation('global')
return (
<div className='mt-4'>
<div>
{t('ticket.category_ticket')}
</div>
<div className='flex gap-6 xl:mt-8 mt-4'>
<div className='flex-1'>
<div className='flex w-full justify-between items-center'>
<div className='w-28'>
<Select
items={[
{
label: '',
value: ''
}
]}
placeholder={t('status')}
className='border'
/>
</div>
<div>
<Input
variant='search'
placeholder={t('search')}
className='bg-white border'
/>
</div>
</div>
<div className='bg-white mt-5 py-3 xl:px-10 px-4 rounded-3xl flex-1'>
<div className='relative overflow-x-auto rounded-3xl w-full'>
<table className='w-full text-sm '>
<thead className='thead'>
<tr>
<Td text={t('title')} />
<Td text={t('ticket.users_count')} />
<Td text={t('status')} />
</tr>
</thead>
<tbody>
<tr className='tr'>
<Td text='بخش فنی' />
<Td text={'2'} />
<Td text={''}>
<SwitchComponent
active
onChange={() => null}
/>
</Td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div className='bg-white w-sidebar xl:block hidden py-10 px-5 h-fit rounded-3xl'>
<div className='text-sm'>
{t('ticket.add_category')}
</div>
<div className='mt-6 flex justify-between items-center'>
<div className='text-xs'>
{t('ticket.status_category')}
</div>
<SwitchComponent
active
onChange={() => null}
/>
</div>
<div className='mt-6'>
<Input
label={t('ticket.title_category')}
/>
</div>
<div className='mt-6'>
<Select
label={t('ticket.users')}
items={[
{
label: '',
value: ''
}
]}
placeholder={t('select')}
className='border'
/>
</div>
<div className='mt-6 border border-dashed border-border rounded-xl p-4 flex gap-2 flex-wrap'>
<div className='bg-[#EBEEF5] flex gap-2 text-xs items-center px-2 py-2 rounded-lg'>
<div className=' '>
سیما فرهادی
</div>
<CloseCircle
variant='Bold'
className='size-4'
color='red'
/>
</div>
<div className='bg-[#EBEEF5] flex gap-2 text-xs items-center px-2 py-2 rounded-lg'>
<div className=' '>
سیما فرهادی
</div>
<CloseCircle
variant='Bold'
className='size-4'
color='red'
/>
</div>
<div className='bg-[#EBEEF5] flex gap-2 text-xs items-center px-2 py-2 rounded-lg'>
<div className=' '>
سیما فرهادی
</div>
<CloseCircle
variant='Bold'
className='size-4'
color='red'
/>
</div>
</div>
</div>
</div>
</div>
)
}
export default TicketCategory