<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
    <meta name="description" content="Raja Furniture - Penyedia furniture berkualitas untuk rumah Anda" />
    <meta name="author" content="Raja Furniture Team" />
    <title>Raja Furniture - Solusi Furniture Anda</title>
    <!-- Favicon -->
    <link rel="icon" type="image/x-icon" href="{{ asset('assets/favicon.ico') }}" />
    <!-- Font Awesome icons -->
    <script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
    <!-- Google fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@300;400;700&display=swap" rel="stylesheet" type="text/css" />
    <!-- Core theme CSS (includes Bootstrap) -->
    <link href="{{ asset('css/styles.css') }}" rel="stylesheet" />
    <style>
        .timeline-image img.rounded-circle {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 50%;
        }
        @media (max-width: 768px) {
            .timeline-image img.rounded-circle {
                width: 100px;
                height: 100px;
            }
        }
    </style>
</head>
<body id="page-top">
    <!-- Navigation -->
    <!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
    <div class="container">
        <a class="navbar-brand" href="#page-top">Raja Furniture</a>

        <button class="navbar-toggler" type="button"
            data-bs-toggle="collapse"
            data-bs-target="#navbarResponsive"
            aria-controls="navbarResponsive"
            aria-expanded="false"
            aria-label="Toggle navigation">
            Menu
            <i class="fas fa-bars ms-1"></i>
        </button>

        <div class="collapse navbar-collapse" id="navbarResponsive">
            <ul class="navbar-nav text-uppercase ms-auto py-4 py-lg-0">

                <!-- Home -->
                <li class="nav-item">
                    <a class="nav-link" href="#page-top">
                        Home
                    </a>
                </li>

                <!-- Tentang -->
                <li class="nav-item">
                    <a class="nav-link" href="#about">
                        Tentang
                    </a>
                </li>

                <!-- Produk Dropdown -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle"
                        href="#"
                        id="navbarDropdown"
                        role="button"
                        data-bs-toggle="dropdown"
                        aria-expanded="false">
                        Produk
                    </a>

                    <ul class="dropdown-menu">
                        <li>
                            <a class="dropdown-item"
                                href="{{ route('home', ['category' => 'Meja']) }}#portfolio">
                                Meja
                            </a>
                        </li>

                        <li>
                            <a class="dropdown-item"
                                href="{{ route('home', ['category' => 'Kursi']) }}#portfolio">
                                Kursi
                            </a>
                        </li>

                        <li>
                            <a class="dropdown-item"
                                href="{{ route('home', ['category' => 'Lemari']) }}#portfolio">
                                Lemari
                            </a>
                        </li>
                    </ul>
                </li>

                <!-- Testimoni -->
                <li class="nav-item">
                    <a class="nav-link" href="#testimonials">
                        Testimoni
                    </a>
                </li>

                <!-- Kontak -->
                <li class="nav-item">
                    <a class="nav-link" href="#contact">
                        Kontak
                    </a>
                </li>

                <!-- Login / Logout -->
                @guest
                    <li class="nav-item">
                        <a class="nav-link" href="{{ route('login') }}">
                            Login
                        </a>
                    </li>
                @else
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle"
                            href="#"
                            role="button"
                            data-bs-toggle="dropdown">
                            {{ Auth::user()->name }}
                        </a>

                        <ul class="dropdown-menu">
                            <li>
                                <a class="dropdown-item"
                                    href="{{ route('logout') }}"
                                    onclick="event.preventDefault();
                                    document.getElementById('logout-form').submit();">
                                    Logout
                                </a>
                            </li>
                        </ul>
                    </li>

                    <form id="logout-form"
                        action="{{ route('logout') }}"
                        method="POST"
                        style="display:none;">
                        @csrf
                    </form>
                @endguest

            </ul>
        </div>
    </div>
</nav>
    <!-- Masthead -->
    <header class="masthead">
        <div class="container">
            <div class="masthead-subheading">Selamat Datang di Raja Furniture!</div>
            <div class="masthead-heading text-uppercase">Furniture Impian Anda</div>
            <a class="btn btn-primary btn-xl text-uppercase" href="#portfolio">Jelajahi Koleksi Kami</a>
        </div>
    </header>
<section class="page-section" id="about">
        <div class="container">
            <div class="text-center">
                <h2 class="section-heading text-uppercase">Tentang Kami</h2>
                <h3 class="section-subheading text-muted">Raja Furniture adalah usaha yang bergerak di bidang penjualan furniture berkualitas untuk kebutuhan rumah, kantor, dan usaha. Kami menyediakan berbagai produk seperti meja, kursi, lemari, dan perabot lainnya dengan desain modern, material berkualitas, serta harga yang terjangkau. Dengan mengutamakan kualitas dan kepuasan pelanggan, Raja Furniture siap menjadi solusi terbaik untuk kebutuhan furniture Anda.</h3>
            </div>
            <ul class="timeline">
                <li>
                    <div class="timeline-image"><img class="rounded-circle img-fluid" src="{{ asset('assets/img/about/fotoprofile.png') }}" alt="Awal Mula Kami" /></div>
                    <div class="timeline-panel">
                        <div class="timeline-heading">
                            <h4>Pemilik usaha</h4>
                        </div>
                        <div class="timeline-body"><p class="text-muted">Al Kharis adalah pendiri Raja Furniture yang memulai usaha ini pada tahun 2024 dengan tujuan menyediakan furniture berkualitas, fungsional, dan terjangkau bagi masyarakat.</p></div>
                    </div>
                </li>
                <li class="timeline-inverted">
                    <div class="timeline-image"><img class="rounded-circle img-fluid" src="{{ asset('assets/img/about/2024.jpeg') }}" alt="Raja Furniture Lahir" /></div>
                    <div class="timeline-panel">
                        <div class="timeline-heading">
                            <h4>2024</h4>
                        </div>
                        <div class="timeline-body"><p class="text-muted">Raja Furniture didirikan pada tahun 2024 dengan fokus menyediakan furniture berkualitas untuk kebutuhan rumah dan kantor.</p></div>
                    </div>
                </li>
                <li>
                    <div class="timeline-image"><img class="rounded-circle img-fluid" src="{{ asset('assets/img/about/2025.jpeg') }}" alt="Layanan Desain Kustom" /></div>
                    <div class="timeline-panel">
                        <div class="timeline-heading">
                            <h4>2025</h4>
                        </div>
                        <div class="timeline-body"><p class="text-muted">Pada tahun 2025, Raja Furniture mulai berkembang dengan menambah variasi produk dan meningkatkan kualitas pelayanan kepada pelanggan.</p></div>
                    </div>
                </li>
                <li class="timeline-inverted">
                    <div class="timeline-image"><img class="rounded-circle img-fluid" src="{{ asset('assets/img/about/2026.jpeg') }}" alt="Ekspansi Nasional" /></div>
                    <div class="timeline-panel">
                        <div class="timeline-heading">
                            <h4>2026</h4>
                        </div>
                        <div class="timeline-body"><p class="text-muted">Di tahun 2026, Raja Furniture terus berinovasi menghadirkan desain furniture yang modern, berkualitas, dan sesuai kebutuhan pelanggan.</p></div>
                    </div>
                </li>

            </ul>
        </div>
    </section>
    <section class="page-section bg-light" id="portfolio">
        <div class="container">
            <div class="text-center">
                <h2 class="section-heading text-uppercase">Produk</h2>
                <h3 class="section-subheading text-muted">
                    @if (request()->has('category'))
                        Koleksi {{ request('category') }} Kami
                    @else
                        Lihat koleksi furniture berkualitas kami
                    @endif
                </h3>
            </div>
            <div class="row">
                @forelse ($products as $product)
                    <div class="col-lg-4 col-sm-6 mb-4">
                        <div class="portfolio-item">
                            <a class="portfolio-link" data-bs-toggle="modal" href="#portfolioModal{{ $product->id }}">
                                <div class="portfolio-hover">
                                    <div class="portfolio-hover-content"><i class="fas fa-plus fa-3x"></i></div>
                                </div>
                                <img class="img-fluid img-thumbnail" src="{{ $product->image ? asset($product->image) : asset('assets/img/portfolio/furniture-placeholder.jpg') }}" alt="{{ $product->name }}" style="max-width: 100%; height: auto;" />
                            </a>
                            <div class="portfolio-caption">
                                <div class="portfolio-caption-heading">{{ $product->name }}</div>
                                <div class="portfolio-caption-subheading text-muted">{{ $product->category }}</div>
                            </div>
                        </div>
                    </div>

                    <!-- Portfolio Modal -->
                    <div class="portfolio-modal modal fade" id="portfolioModal{{ $product->id }}" tabindex="-1" role="dialog" aria-hidden="true">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <div class="close-modal" data-bs-dismiss="modal"><img src="{{ asset('assets/img/close-icon.svg') }}" alt="Tutup modal" /></div>
                                <div class="container">
                                    <div class="row justify-content-center">
                                        <div class="col-lg-8">
                                            <div class="modal-body">
                                                <h2 class="text-uppercase">{{ $product->name }}</h2>
                                                <p class="item-intro text-muted">{{ $product->category }}</p>
                                                <img class="img-fluid img-thumbnail" src="{{ $product->image ? asset($product->image) : asset('assets/img/portfolio/furniture-placeholder.jpg') }}" alt="{{ $product->name }}" style="max-width: 100%; height: auto;" />
                                                <p>{{ $product->description ?? 'Deskripsi tidak tersedia.' }}</p>
                                                <ul class="list-inline">
                                                    <li><strong>Harga:</strong> Rp {{ number_format($product->price ?? 0, 0, ',', '.') }}</li>
                                                </ul>
                                                <button class="btn btn-primary btn-xl text-uppercase" data-bs-dismiss="modal" type="button">
                                                    <i class="fas fa-xmark me-1"></i>
                                                    Tutup
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                @empty
                    <div class="col-12 text-center">
                        <p class="text-muted">
                            @if (request()->has('category'))
                                Tidak ada produk dalam kategori {{ request('category') }}.
                            @else
                                Tidak ada produk yang tersedia.
                            @endif
                        </p>
                    </div>
                @endforelse
            </div>
        </div>
    </section>
    <!-- About -->
    
    <!-- Testimonials -->
    <section class="page-section bg-light" id="testimonials">
        <div class="container">
            <div class="text-center">
                <h2 class="section-heading text-uppercase">Testimoni</h2>
                <h3 class="section-subheading text-muted">Apa kata pelanggan tentang Raja Furniture.</h3>
            </div>
            <div class="row">
                <div class="col-lg-4">
                    <div class="team-member">
                        <img class="mx-auto rounded-circle" src="{{ asset('assets/img/team/2.jpg') }}" alt="Testimoni Pelanggan 1" />
                        <h4>Siti Aminah</h4>
                        <p class="text-muted">Ibu Rumah Tangga</p>
                        <p class="text-muted">"Furniture dari Raja Furniture sangat kokoh dan elegan. Meja makan yang saya beli benar-benar mempercantik ruang makan saya!"</p>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="team-member">
                        <img class="mx-auto rounded-circle" src="{{ asset('assets/img/team/1.png') }}" alt="Testimoni Pelanggan 2" />
                        <h4>Ahmad Fauzi</h4>
                        <p class="text-muted">Pemilik Kafe</p>
                        <p class="text-muted">"Kursi dan meja custom dari Raja Furniture sangat cocok untuk kafe saya. Kualitasnya luar biasa dan pelayanannya cepat!"</p>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="team-member">
                        <img class="mx-auto rounded-circle" src="{{ asset('assets/img/team/3.png') }}" alt="Testimoni Pelanggan 3" />
                        <h4>Dewi Lestari</h4>
                        <p class="text-muted">Desainer Interior</p>
                        <p class="text-muted">"Saya selalu merekomendasikan Raja Furniture kepada klien saya. Desainnya modern dan sesuai dengan kebutuhan klien."</p>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-8 mx-auto text-center"><p class="large text-muted">Kami bangga bisa menghadirkan kepuasan kepada pelanggan kami melalui furniture berkualitas tinggi.</p></div>
            </div>
        </div>
    </section>
    <!-- Contact -->
    <section class="page-section" id="contact">
        <div class="container">
            <div class="text-center">
                <h2 class="section-heading text-uppercase">Pesan Sekarang</h2>
                <h3 class="section-subheading text-muted">Pilih produk impian Anda dan hubungi kami melalui WhatsApp untuk pemesanan.</h3>
            </div>
            <div class="row align-items-stretch mb-5">
                <div class="col-12 text-center">
                    <p class="text-muted">Jelajahi koleksi kami untuk memilih produk yang Anda inginkan, lalu klik tombol di bawah untuk memesan langsung melalui WhatsApp.</p>
                    <a class="btn btn-primary btn-xl text-uppercase" href="https://wa.me/6287816094889?text=Saya%20ingin%20memesan%20furniture%20dari%20Raja%20Furniture" target="_blank">
                        <i class="fab fa-whatsapp me-1"></i>
                        Pesan Sekarang
                    </a>
                    <p class="text-muted mt-3">Atau, kembali ke <a href="#portfolio">halaman produk</a> untuk melihat koleksi kami.</p>
                </div>
            </div>
        </div>
    </section>
    <!-- Footer -->
    <footer class="footer py-4">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-lg-4 text-lg-start">Hak Cipta © Raja Furniture 2025</div>
                <div class="col-lg-4 my-3 my-lg-0">
                    <a class="btn btn-dark btn-social mx-2" href="#!" aria-label="Twitter"><i class="fab fa-twitter"></i></a>
                    <a class="btn btn-dark btn-social mx-2" href="#!" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
                    <a class="btn btn-dark btn-social mx-2" href="#!" aria-label="LinkedIn"><i class="fab fa-linkedin-in"></i></a>
                </div>
                <div class="col-lg-4 text-lg-end">
                    <a class="link-dark text-decoration-none me-3" href="#!">Kebijakan Privasi</a>
                    <a class="link-dark text-decoration-none" href="#!">Syarat Penggunaan</a>
                </div>
            </div>
        </div>
    </footer>
    <!-- Bootstrap core JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
    <!-- Core theme JS -->
    <script src="{{ asset('js/scripts.js') }}"></script>
    <!-- SB Forms JS (opsional, hapus jika tidak digunakan) -->
    <!-- <script src="https://cdn.startbootstrap.com/sb-forms-latest.js"></script> -->
</body>
</html>
