17 lines
517 B
PHP
17 lines
517 B
PHP
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Sklep</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
@foreach ($products as $product)
|
||
|
<div class="product-container">
|
||
|
<img class="product-image" src="@if(isset($product->images[0])) {{ $product->images[0]->URL() }} @else {{ asset("test.txt") }} @endif">
|
||
|
<p class="product-name"> {{ $product->name }} </p>
|
||
|
</div>
|
||
|
@endforeach
|
||
|
</body>
|
||
|
</html>
|