You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB
React

1 year ago
import React from 'react'
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout'
import { Head } from '@inertiajs/react'
import { formatIDR } from '@/utils'
1 year ago
export default function Dashboard(props) {
1 year ago
const { customer_count } = props
1 year ago
return (
<AuthenticatedLayout
auth={props.auth}
errors={props.errors}
flash={props.flash}
page={'Dashboard'}
action={''}
>
<Head title="Dashboard" />
<div>
<div className="mx-auto sm:px-6 lg:px-8 ">
1 year ago
<div className="">
<div className="grid grid-cols-4 gap-1">
<div className="px-3 py-2 flex flex-col rounded-md bg-white shadow-md">
<div className="text-2xl">Total Customer</div>
<div className="text-3xl font-bold">
{formatIDR(customer_count)}
</div>
</div>
</div>
1 year ago
</div>
</div>
</div>
</AuthenticatedLayout>
1 year ago
)
1 year ago
}