pai-sklep/resources/views/product/view.blade.php

32 lines
834 B
PHP
Raw Normal View History

2021-10-28 11:19:42 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
</style>
</head>
<body>
<div>
<p>
{{ $product }}
</p>
2021-11-14 14:51:49 +01:00
<form method="POST">
<button type="submit">Delete</button>
@method('DELETE')
2021-10-28 11:19:42 +02:00
@csrf
</form>
2021-11-19 08:04:04 +01:00
<form method="POST" action="{{ route("addToCart", $product) }}">
<button type="submit">Add to cart</button>
@csrf
</form>
</form>
<form method="POST" action="{{ route("removeFromCart", $product) }}">
<button type="submit">Remove from cart</button>
@csrf
</form>
2021-10-28 11:19:42 +02:00
</div>
</body>
</html>