Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Render Products
Browse files Browse the repository at this point in the history
  • Loading branch information
kkamara committed Dec 2, 2023
1 parent 28286df commit 85ca48c
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions resources/views/product/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,21 @@
<title>Laravel</title>
</head>
<body class="antialiased">
@foreach($products as $product)
<div>
<h2>{{$product->name}}</h2>
</div>
@endforeach
<div style="display: flex; gap: 2rem">
@foreach($products as $product)
<img
src="{{$product->image}}"
alt=""
style="max-width: 100px"
/>
<div class="flex: 1">
<h5{{$product->name}}</h5>
</div>
<p>{{$product->price}}</p>
@endforeach
</div>
<p>
<button>Checkout</button>
</p>
</body>
</html>

0 comments on commit 85ca48c

Please sign in to comment.