summaryrefslogtreecommitdiff
path: root/resources/views/search.blade.php
blob: dec190b007bc6a555668b1af5088f9779b71843e (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
@extends('layouts.base')

@section('header')
Finde den besten Deal
@endsection

@section('feed')
	{!! Feed::link(secure_url($rss_feed), 'atom', 'Feed von ' . $search_phrase , 'de') !!}
@endsection

@section('content')
<div class="container">
		<nav class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/" aria-label="breadcrumb">
		    <ol class="breadcrumb">
			<!-- Breadcrumb NavXT 6.2.1 -->
<li class="home breadcrumb-item"><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Gehe zur Startseite: Fuselkönig.de" href="https://www.fuselkoenig.de" class="home"><span property="name">Startseite</span></a><meta property="position" content="1"></span></li>
<li class="post post-angebote-archive breadcrumb-item"><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Schau dir Angebote an." href="/angebote/" class="post post-angebote-archive"><span property="name">Angebote</span></a><meta property="position" content="2"></span></li>
<li class="archive taxonomy type current-item breadcrumb-item active" aria-current="page"><span property="itemListElement" typeof="ListItem"><span property="name">Suche nach <strong>"{{ ucwords($search_phrase) }}"</strong></span><meta property="position" content="3"></span></li>
		    </ol>
		</nav>
	</div>

    <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.sortbuttons')
<?php
} else {
?>
<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;">
	Leider hat Ihre Suche nach <strong>{{ ucwords($search_phrase) }}</strong> keine Ergebnisse ergeben. Bitte versuchen sie es erneut mit einem anderen Begriff.
	</p>

	<form action="/angebote/search">
	  <div class="form-group">
	    <label for=""></label>
	    <input type="text" class="form-control" name="q" id="front_search_form" aria-describedby="suchform-help" placeholder="Hier nach der gewünschten Spirituose suchen...">
	    <p id="front_search_help" class="form-text">Suche zum Beispiel nach Glenfiddich oder Champagner.</p>
	  </div>
	  <button type="submit" class="btn btn-secondary">Suchen</button>
	</form>
</div>
<?php
}
?>

	</div>
</header><!-- .page-header -->


<?php 
if ( $data->count() ) {
?>
	@include('snippets.spirittypesbuttons')

	{{ $data->appends(Input::except('page'))->links('paginate') }}

	@include('offers')

	{{ $data->appends(Input::except('page'))->links('paginate') }}

<?php
	/* Ende Liste Angebote */
}
?>

<!-- ./container -->
    </div>

@endsection

@section('scripts')
@endsection