[Back]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <title><?php echo e(config('app.name')); ?></title>
    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>
</head>
<body class="bg-gray-50 text-gray-900">
    <nav class="bg-white border-b">
        <div class="max-w-6xl mx-auto px-4 py-4 flex items-center justify-between">
            <a href="<?php echo e(route('landing')); ?>" class="font-bold text-lg"><?php echo e(config('app.name')); ?></a>
            <div class="flex gap-4 items-center">
                <?php if(auth()->guard()->check()): ?>
                    <span class="text-sm text-gray-700">
                        <?php echo e(auth()->user()->name); ?>

                    </span>
                    <?php if(auth()->user()->is_admin): ?>
                        <a href="<?php echo e(route('admin.products.index')); ?>" class="text-sm underline">Product Manage</a>
                        <a href="<?php echo e(route('admin.orders.index')); ?>" class="text-sm underline">Orders Manage</a>
                        <a href="<?php echo e(route('admin.customers.index')); ?>" class="text-sm underline">Customers</a>

                    <?php endif; ?>


                    <a href="<?php echo e(route('cart.index')); ?>" class="text-sm underline">Cart</a>
                    
                    <a href="<?php echo e(route('customer.profile.edit')); ?>" class="text-sm underline">My Profile</a>


                    <form method="POST" action="<?php echo e(route('logout')); ?>" class="inline">
                        <?php echo csrf_field(); ?>
                        <button type="submit" class="text-sm underline">Logout</button>
                    </form>
                <?php else: ?>
                    <a href="<?php echo e(route('login')); ?>" class="text-sm underline">Login</a>
                    
                <?php endif; ?>

            </div>
        </div>
    </nav>

    <main class="max-w-6xl mx-auto px-4 py-10">
        <?php if(session('success')): ?>
            <div class="mb-6 p-4 rounded bg-green-100 border border-green-200">
                <?php echo e(session('success')); ?>

            </div>
        <?php endif; ?>

        <?php echo e($slot ?? ''); ?>

        <?php echo $__env->yieldContent('content'); ?>
    </main>

    <footer class="border-t bg-white">
        <div class="max-w-6xl mx-auto px-4 py-8 text-sm text-gray-500">
            © <?php echo e(date('Y')); ?> <?php echo e(config('app.name')); ?>

        </div>
    </footer>
</body>
</html>
<?php /**PATH /home/fikhri/Project6/landing-fpx/resources/views/layouts/public.blade.php ENDPATH**/ ?>