blob: 3bfdf74ee084e611dd0c1264d07dd602f575ea61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
if ( !$data->count() ) {
/* Keine Angebote */
?>
<div class="alert alert-secondary" data-track-content data-content-name="{{ ucfirst($spirit_type) }}" data-content-piece="Keine Angebote" data-content-target="">
<h4 class="alert-heading">Keine Angebote</h4>
Momentan liegen keine {{ $title }} vor. Probieren Sie es später noch einmal.
</div>
<?php
/* Ende Keine Angebote */
} else {
/* Liste Angebote */
?>
<?php
foreach( $data as $offer) {
$offer->free_shipping = str_replace("€", "", $offer->free_shipping);
$offer->created_at = strftime("%d. %B", $offer->created_at);
/*
if ( "" != $offer->free_shipping ) {
# todo: remove € sign from $free_shipping variable
$free_shipping = str_replace("€", "", $offer->free_shipping);
*/
?>
[angebot spirit_type="{{ $offer->spirit_type }}" shop="{{ $offer->shop }}" procent="{{ $offer->procent }}" img_url="{{ $offer->image_url }}" name="{{ $offer->name }}" discounted_price="{{ TF::fF($offer->discounted_price) }}" original_price="{{ TF::fF($offer->original_price) }}" shipping_costs="{{ TF::fF($offer->shipping_costs) }}" abv="{{ TF::fF($offer->abv) }}" volume="{{ TF::fF($offer->volume) }}" base_price="{{ TF::fF($offer->base_price) }}" url="{{ $offer->url }}" created_at="{{ $offer->created_at }}"]
<?php
}
/* Ende Liste Angebote */
}
|