PHP 8.2.30
Preview: RecentPost.jsx Size: 1.38 KB
//proc/thread-self/root/home/byroehnu/easetack.com/resources/js/Frontend/Components/Widget/RecentPost.jsx

import React from "react"
import { Link } from "@inertiajs/react"
import moment from "moment"

export default function RecentPost({ title, data }) {
    return (
        <>
            {data?.length === 0 ? (
                ""
            ) : (
                <div className="cs_sidebar_item widget_search">
                    <h4 className="cs_sidebar_widget_title">{title}</h4>
                    <ul className="cs_recent_posts">
                        {data?.map((item, index) => (
                            <li key={index}>
                                <div className="cs_recent_post">
                                    <h3 className="cs_recent_post_title">
                                        <Link
                                            href={route("blog.show", {
                                                slug: item?.slug
                                            })}
                                        >
                                            {item?.content?.title}
                                        </Link>
                                    </h3>
                                    <div className="cs_recent_post_date mb-0">{moment(item?.created_at).format("ll")}</div>
                                </div>
                            </li>
                        ))}
                    </ul>
                </div>
            )}
        </>
    )
}

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
882 B lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
586 B lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
515 B lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
3.07 KB lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
1.38 KB lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
1011 B lrw-rw-rw- 2025-04-25 15:40:05
Edit Download
835 B lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
560 B lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
747 B lrw-rw-rw- 2025-04-08 04:12:57
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).