pai-sklep/resources/views/user.blade.php
2021-11-19 08:04:04 +01:00

24 lines
520 B
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>
<b>Welcome, you are logged in as {{ $user }}</b>
</p>
<div>
<h2>Your cart:</h2>
<ul>
@foreach($user->cart as $product)
<li> {{ $product }} </li>
@endforeach()
</ul>
</div>
<p>
<a href="/logout"> Logout </a>
</p>
</body>
</html>