diff options
| author | horus | 2018-02-21 23:53:36 +0100 |
|---|---|---|
| committer | horus | 2018-02-21 23:53:36 +0100 |
| commit | 5e84424a5bcbc78bdfe6f97e084fb1ed28bcc9d4 (patch) | |
| tree | fe3bd40fe0ef1c3a8d6c40f252cd0665d3b4e085 /site | |
| parent | 27af87b30dcdb02b049c55b7bc90c8f14692ba0f (diff) | |
| download | alkobote-5e84424a5bcbc78bdfe6f97e084fb1ed28bcc9d4.tar.gz | |
Displayed rubbish when no free shipping is available. (website)
Diffstat (limited to 'site')
| -rw-r--r-- | site/resources/views/offer.blade.php | 26 |
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> |
