<!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> <?php endif; ?> <a href="<?php echo e(route('cart.index')); ?>" class="text-sm underline">Cart</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> <a href="<?php echo e(route('register')); ?>" class="text-sm underline">Register</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 C:\Users\nashr\Repo\landing-fpx\resources\views/layouts/public.blade.php ENDPATH**/ ?>