[Back]
<?php $__env->startSection('content'); ?>
<div class="grid lg:grid-cols-2 gap-8">
<div class="bg-white rounded-xl shadow p-4">
<div class="aspect-video rounded overflow-hidden bg-black">
<?php if($product->video_url): ?>
<iframe class="w-full h-full" src="<?php echo e($product->video_url); ?>" frameborder="0" allowfullscreen></iframe>
<?php else: ?>
<div class="w-full h-full flex items-center justify-center text-white">
No video yet
</div>
<?php endif; ?>
</div>
</div>
<div>
<h1 class="text-3xl font-extrabold"><?php echo e($product->name); ?></h1>
<p class="mt-3 text-gray-700"><?php echo e($product->description); ?></p>
<div class="mt-6 text-2xl font-bold"><?php echo e($product->price_formatted); ?></div>
<?php if(auth()->guard()->check()): ?>
<form class="mt-6 flex gap-3 items-center" method="POST" action="<?php echo e(route('cart.add', $product)); ?>">
<?php echo csrf_field(); ?>
<input type="number" name="quantity" value="1" min="1"
class="w-24 rounded border-gray-300" />
<button class="px-5 py-3 rounded bg-black text-white">
Add to Cart
</button>
</form>
<?php else: ?>
<div class="mt-6 p-4 rounded bg-yellow-50 border">
Please <a class="underline" href="<?php echo e(route('login')); ?>">login</a> to purchase.
</div>
<?php endif; ?>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.public', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/fikhri/Project6/landing-fpx/resources/views/products/show.blade.php ENDPATH**/ ?>