summaryrefslogtreecommitdiff
path: root/site/resources/views/offer.blade.php
diff options
context:
space:
mode:
Diffstat (limited to 'site/resources/views/offer.blade.php')
-rw-r--r--site/resources/views/offer.blade.php26
1 files changed, 24 insertions, 2 deletions
diff --git a/site/resources/views/offer.blade.php b/site/resources/views/offer.blade.php
index f68c204..aa9ffae 100644
--- a/site/resources/views/offer.blade.php
+++ b/site/resources/views/offer.blade.php
@@ -81,7 +81,18 @@ if ( !$data->count() ) {
</div>
<a class="u ttext-large" href="{{ $offer->url }}" title="Link zum Angebot bei {{$offer->shop}}">Jetzt bestellen</a>
<p class="text-muted text-small w-100 nnmt-10">
- Versand: <strong>{{ TF::fF($offer->shipping_costs) }}€</strong> <span class=" float-right">Gratis ab <strong>{{ $offer->free_shipping }}</strong></span>
+ Versand: <strong>{{ TF::fF($offer->shipping_costs) }}€</strong>
+<?php
+ if ( "" != $offer->free_shipping ) {
+?>
+ <span class=" float-right">Gratis ab <strong>{{ $offer->free_shipping }}</strong></span>
+<?php
+ } else {
+?>
+ <span class=" float-right">Versand ist nie kostenlos.</span>
+<?php
+ }
+?>
<br>
<!--
<span class=" float-right">{{ date("d.m.Y", $offer->created_at) }}</span>
@@ -125,7 +136,18 @@ if ( !$data->count() ) {
</p>
<strong><a href="{{ $offer->url }}" class="text-large">Jetzt bestellen</a></strong>
<p class="text-muted text-small w-100 nmt-10">
- Versand: <strong>{{ TF::fF($offer->shipping_costs) }}€</strong> <span class=" float-right">Gratis ab <strong>{{ $offer->free_shipping }}</strong></span>
+ Versand: <strong>{{ TF::fF($offer->shipping_costs) }}€</strong>
+<?php
+ if ( "" != $offer->free_shipping ) {
+?>
+ <span class=" float-right">Gratis ab <strong>{{ $offer->free_shipping }}</strong></span>
+<?php
+ } else {
+?>
+ <span class=" float-right">Versand ist nie kostenlos.</span>
+<?php
+ }
+?>
<br>
<span class=" float-right">* Preis vom <strong>{{ strftime("%d. %B", $offer->created_at) }}</strong></span>
</p>