diff options
| author | horus | 2019-07-12 01:53:38 +0200 |
|---|---|---|
| committer | horus | 2019-07-12 01:53:38 +0200 |
| commit | 2b6ef973377f4f36e374e1f672c807932b746364 (patch) | |
| tree | c1c9525ce382e7c7b1e3396ed39c5dc36cebd4bb /resources/views/search.blade.php | |
| parent | a1fa66f7afad278d77a2e44e21720e0e492d6cce (diff) | |
| download | kategorischeraperitif-2b6ef973377f4f36e374e1f672c807932b746364.tar.gz | |
Removes more PHP tags from templates.
Diffstat (limited to 'resources/views/search.blade.php')
| -rw-r--r-- | resources/views/search.blade.php | 43 |
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 |
