invoice + plan
This commit is contained in:
@@ -107,6 +107,7 @@ const ListService: FC = () => {
|
||||
<Td text={t('service.company_developed')} />
|
||||
<Td text={t('service.category')} />
|
||||
<Td text={t('service.publish_date')} />
|
||||
<Td text={t('service.plans')} />
|
||||
<Td text={t('ticket.status')} />
|
||||
<Td text={t('ticket.detail')} />
|
||||
<Td text={''} />
|
||||
@@ -126,6 +127,26 @@ const ListService: FC = () => {
|
||||
<Td text={item.author} />
|
||||
<Td text={item.category?.title} />
|
||||
<Td text={moment(item.createDate).format('jYYYY-jMM-jDD')} />
|
||||
<Td text=''>
|
||||
{
|
||||
item.subscriptionCount === 0 ?
|
||||
<Link to={Pages.services.plan + item.id}>
|
||||
<Button
|
||||
className='h-8 bg-transparent border border-black text-black text-xs'
|
||||
>
|
||||
<div className='flex gap-2 items-center'>
|
||||
<Add size={20} color='black' />
|
||||
<div>{t('service.add_plan')}</div>
|
||||
</div>
|
||||
</Button>
|
||||
</Link>
|
||||
:
|
||||
<Link to={Pages.services.plan + item.id} className='flex gap-1 text-sm text-[#0047FF]'>
|
||||
<div>{item.subscriptionCount}</div>
|
||||
<div>{t('service.active_plan')}</div>
|
||||
</Link>
|
||||
}
|
||||
</Td>
|
||||
<Td text={''}>
|
||||
<ToggleStatusService
|
||||
id={item.id}
|
||||
|
||||
Reference in New Issue
Block a user