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.

38 lines
1.3 KiB
JavaScript

import React from 'react';
import Authenticated from '@/Layouts/Authenticated';
import { Head } from '@inertiajs/inertia-react';
export default function Dashboard(props) {
3 years ago
const { employee, product } = props
return (
<Authenticated
auth={props.auth}
errors={props.errors}
3 years ago
header={
<h2 className="font-semibold text-xl text-gray-800 leading-tight">
Dashboard
</h2>
}
>
<Head title="Dashboard" />
<div className="py-12">
3 years ago
<div className="flex flex-row sm:px-6 lg:px-8 space-x-4">
<div className="bg-white overflow-hidden shadow-sm rounded-lg w-full">
<div className="py-4 px-4 font-bold text-xl">
Barang
<div className="text-4xl">{product}</div>
</div>
</div>
<div className="bg-white overflow-hidden shadow-sm rounded-lg w-full">
<div className="py-4 px-4 font-bold text-xl">
Karyawan
<div className="text-4xl">{employee}</div>
</div>
</div>
</div>
</div>
</Authenticated>
3 years ago
)
}