invert query from offers->articles to articles->offers
This commit is contained in:
@@ -1,55 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
|
||||
<title>OpenSemis</title>
|
||||
<meta name="description" content="Boutique propulsée par HumaN.E.T">
|
||||
<meta name="keywords" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="img/favicon.ico?1528709483">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico?1528709483">
|
||||
<link rel="stylesheet" href="theme.css" type="text/css" media="all">
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index">
|
||||
|
||||
<main>
|
||||
|
||||
{{ include("Shop.layout.partials.header") }}
|
||||
{{ include("Shop._partials.notifications") }}
|
||||
|
||||
<div id="top_home">
|
||||
|
||||
<div id="spin-wrapper"></div>
|
||||
<div id="siteloader">
|
||||
<div class="loader"></div>
|
||||
</div>
|
||||
|
||||
{{ include("Shop._partials.slider") }}
|
||||
{{ include("Shop._partials.block-banner") }}
|
||||
{{ include("Shop._partials.block-products") }}
|
||||
|
||||
|
||||
{{ include("Shop._partials.block-breadcrumb") }}
|
||||
{{ include("Shop._partials.wrapper") }}
|
||||
|
||||
{{ include("Shop._partials.block-bottom")}}
|
||||
|
||||
{{ include("Shop._partials.footer")}}
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<a id="slidetop" href="#" > </a>
|
||||
|
||||
<script type="text/javascript" src="theme.js" ></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,23 +0,0 @@
|
||||
<div class="card">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($offer['article']['image'] ?? false) }}" class="card-img-top" alt="...">
|
||||
<div class="card-body">
|
||||
<span class="card-title">{{ $offer['article']['name'] }}</span>
|
||||
<span class="pull-right">
|
||||
<i class="fa fa-heart"></i>
|
||||
</span>
|
||||
|
||||
<p class="card-text">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
3.10 €<br>
|
||||
Semence
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
1.65 €<br>
|
||||
Plant
|
||||
</div>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
@foreach ($articles as $article)
|
||||
<div class="col-3">
|
||||
@include('Shop.layout.partials.article')
|
||||
@include('Shop.Articles.article')
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
@foreach ($offers as $offer)
|
||||
<div class="col-sm-3 col-lg-2">
|
||||
@include('Shop.layout.partials.article')
|
||||
@include('Shop.Offers.offer')
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
Reference in New Issue
Block a user