From 5a8acd82f047e9ee24886933c19803af4348a4bd Mon Sep 17 00:00:00 2001 From: horus Date: Wed, 21 Feb 2018 23:37:01 +0100 Subject: Improves the offer page, makes some stuff bold, better spacing etc. (website) --- site/app/Http/Controllers/OfferController.php | 3 ++- site/public/css/custom.css | 3 +++ site/resources/views/offer.blade.php | 14 +++++++------- 3 files changed, 12 insertions(+), 8 deletions(-) (limited to 'site') diff --git a/site/app/Http/Controllers/OfferController.php b/site/app/Http/Controllers/OfferController.php index c05cd0e..0a74f6b 100644 --- a/site/app/Http/Controllers/OfferController.php +++ b/site/app/Http/Controllers/OfferController.php @@ -58,6 +58,7 @@ class OfferController extends Controller { */ $view_name = \Request::route()->getName(); $data = DB::table($view_name . '_view')->whereNotNull('url')->orderBy($sort_by, $order_by)->simplePaginate(20); + $count = DB::table($view_name . '_view')->whereNotNull('url')->count(); $rss_feed = "/" . $view_name . "/feed/"; $query_string = ""; @@ -88,6 +89,6 @@ class OfferController extends Controller { $title = ucfirst($view_name) . "-Angebote"; } - return view('offer', ['data' => $data, 'spirit_type' => $view_name, 'rss_feed' => $rss_feed, 'title' => $title ]); + return view('offer', ['data' => $data, 'count' => $count, 'spirit_type' => $view_name, 'rss_feed' => $rss_feed, 'title' => $title ]); } } diff --git a/site/public/css/custom.css b/site/public/css/custom.css index b96d7ab..4322ffe 100644 --- a/site/public/css/custom.css +++ b/site/public/css/custom.css @@ -164,3 +164,6 @@ footer { .border-top { border-top: 1px solid #e5e5e5; } .border-bottom { border-bottom: 1px solid #e5e5e5; } +.ml-10 { + margin-left: 10px !important; +} diff --git a/site/resources/views/offer.blade.php b/site/resources/views/offer.blade.php index 980d9c3..f68c204 100644 --- a/site/resources/views/offer.blade.php +++ b/site/resources/views/offer.blade.php @@ -12,7 +12,7 @@
{{ TF::fF($offer->original_price) . "€" }} {{ TF::fF($offer->discounted_price) . "€" }}*
+
{{ TF::fF($offer->original_price) . "€" }} {{ TF::fF($offer->discounted_price) }}€*
{{ TF::fF($offer->base_price ) }}€/L
- Versand: {{ TF::fF($offer->shipping_costs) }}€ Gratis ab {{ $offer->free_shipping }}
+ Versand: {{ TF::fF($offer->shipping_costs) }}€ Gratis ab {{ $offer->free_shipping }}
- * Preis vom {{ strftime("%d. %B", $offer->created_at) }}
+ * Preis vom {{ strftime("%d. %B", $offer->created_at) }}
- Versand: {{ TF::fF($offer->shipping_costs) }}€ Gratis ab {{ $offer->free_shipping }}
+ Versand: {{ TF::fF($offer->shipping_costs) }}€ Gratis ab {{ $offer->free_shipping }}
- * Preis vom {{ strftime("%d. %B", $offer->created_at) }}
+ * Preis vom {{ strftime("%d. %B", $offer->created_at) }}