芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/tmp/resources/js/Admin/Pages/Dashboard.jsx
import AdminLayouts from "@/Admin/Layouts/AdminLayouts"; import { Link, Head, usePage } from "@inertiajs/react"; import { IonIcon } from "@ionic/react"; import { albums, archive, chatboxOutline, fileTray, idCardOutline, imageOutline, layers, mailOpenOutline, newspaper, people, sendOutline, shieldOutline, } from "ionicons/icons"; import gravatarUrl from "gravatar-url"; export default function Dashboard() { const { post_count, service_count, portfolio_count, case_study_count, comment_count, user_count, subscriber_count, contact_count, latest_contacts, latest_comments, } = usePage().props; return ( <>
{/* .yoo-sidebarheader */}
Dashboard
TOTAL POSTS
{post_count}
{/* .col */}
TOTAL USERS
{user_count}
{/* .col */}
TOTAL CASE STUDY
{case_study_count}
{/* .col */}
Total portfolio
{portfolio_count}
{/* .col */}
Total Service
{service_count}
{/* .col */}
TOTAL Comment
{comment_count}
{/* .col */}
TOTAL Subscriber
{subscriber_count}
{/* .col */}
TOTAL CONTACTS
{contact_count}
Latest Contacts
{latest_contacts.map( (item, index) => (
{ item.name }
{ item.email }
{ item.message }
{item.is_open === "1" ? (
Opened
) : (
Not Opened
)}
) )} {!latest_contacts.length && (
No contacts found
)}
{/* .yoo-card */}
Latest Comments
{latest_comments.map( (item, index) => (
{ item.comment_author_name }
{ item.comment_author_email }
{ item.comment_content }
{item.is_approved === "1" ? (
Approved
) : (
Not Approved
)}
) )} {!latest_comments.length && (
No comments found
)}
{/* .yoo-card */}
{/* .yoo-content */}
> ); }