summaryrefslogtreecommitdiff
path: root/resources/views/search.blade.php
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/search.blade.php')
-rw-r--r--resources/views/search.blade.php43
1 files changed, 17 insertions, 26 deletions
diff --git a/resources/views/search.blade.php b/resources/views/search.blade.php
index e15c9c2..03047ea 100644
--- a/resources/views/search.blade.php
+++ b/resources/views/search.blade.php
@@ -14,19 +14,10 @@ Finde den besten Deal
<div class="container">
<header class="page-header">
-<?php
-if ( $data->count() ) {
-?>
- <div class="card taxonomy-card">
- <div class="card-body">
- <h1 class="card-title page-title">{{ $title }}</h1>
- <p>
- Sie haben nach <strong>{{ ucwords($search_phrase) }}</strong> gesucht ({{$count}} Treffer)
- </p>
- @include('snippets.filterbuttons')
-<?php
-} else {
-?>
+@if ( ! $data->count() )
+
+ <!-- Keine Ergebnisse -->
+
<div class="alert alert-error" data-track-content data-content-name="Suche" data-content-piece="Keine Angebote" data-content-target="">
<h1 class="alert-heading">Keinen Treffer</h1>
<p style="font-size: 17px;">
@@ -47,17 +38,22 @@ if ( $data->count() ) {
</p>
@include('snippets.spirittypesbuttons')
</div>
-<?php
-}
-?>
</div>
</header><!-- .page-header -->
+@else
+ <!-- Suchergebnisse -->
+ <div class="card taxonomy-card">
+ <div class="card-body">
+ <h1 class="card-title page-title">{{ $title }}</h1>
+ <p>
+ Sie haben nach <strong>{{ ucwords($search_phrase) }}</strong> gesucht ({{$count}} Treffer)
+ </p>
+ @include('snippets.filterbuttons')
+ </div>
+</header><!-- .page-header -->
-<?php
-if ( $data->count() ) {
-?>
@include('snippets.spirittypesbuttons')
{{ $data->appends(Input::except('page'))->links('paginate') }}
@@ -66,15 +62,10 @@ if ( $data->count() ) {
{{ $data->appends(Input::except('page'))->links('paginate') }}
-<?php
- /* Ende Liste Angebote */
-}
-?>
+ <!-- /* Ende Liste Angebote */ -->
<!-- ./container -->
</div>
+@endif
@endsection
-
-@section('scripts')
-@endsection