adapt themee to lumino version 2.2
							parent
							
								
									7b49a12adf
								
							
						
					
					
						commit
						e255f1df4c
					
				
							
								
								
									
										54
									
								
								config.json
								
								
								
								
							
							
						
						
									
										54
									
								
								config.json
								
								
								
								
							| 
						 | 
				
			
			@ -7,5 +7,57 @@
 | 
			
		|||
        "name": "Areya Webservices",
 | 
			
		||||
        "link": "https://www.areya.de/"
 | 
			
		||||
    },
 | 
			
		||||
    "lumino-version": {"min": "2.2", "max": "2.2"}
 | 
			
		||||
    "lumino-version": {"min": "2.2", "max": "2.2"},
 | 
			
		||||
    "content-types": [
 | 
			
		||||
        {
 | 
			
		||||
            "name":"News",
 | 
			
		||||
            "description":"Neuigkeiten",
 | 
			
		||||
            "icon":"newspaper",
 | 
			
		||||
            "status":"1",
 | 
			
		||||
            "fields": [
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "Neuigkeit",
 | 
			
		||||
                    "type": "textfield",
 | 
			
		||||
                    "required": "1"
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "Link",
 | 
			
		||||
                    "type": "url",
 | 
			
		||||
                    "required": "0"
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name":"Produkte",
 | 
			
		||||
            "description":"Produkte",
 | 
			
		||||
            "icon":"shopping-bag",
 | 
			
		||||
            "status":"1",
 | 
			
		||||
            "fields": [
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "Beschreibung",
 | 
			
		||||
                    "type": "textfield",
 | 
			
		||||
                    "required": "1"
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "Preis",
 | 
			
		||||
                    "type": "number",
 | 
			
		||||
                    "attr": "{'min':'0','step':'0.01'}",
 | 
			
		||||
                    "required": "0"
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name":"Fragen & Antworten",
 | 
			
		||||
            "description":"Fragen & Antworten",
 | 
			
		||||
            "icon":"question-circle",
 | 
			
		||||
            "status":"1",
 | 
			
		||||
            "fields": [
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "Antwort",
 | 
			
		||||
                    "type": "textfield",
 | 
			
		||||
                    "required": "1"
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -2,61 +2,34 @@
 | 
			
		|||
@section('content')
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('template/css/pages/news.css') }}">
 | 
			
		||||
    <span id="database"
 | 
			
		||||
        data-new-id="{{$nach->id}}"
 | 
			
		||||
        data-new-url="{{route_content($nach)}}"
 | 
			
		||||
        data-new-title="{{$nach->title}}"
 | 
			
		||||
        data-new-date="{{date('Y-m-d h:i:s', strtotime($nach->created_at))}}"
 | 
			
		||||
        data-author-url="{{route('author.get', [$nach->user->slug])}}"
 | 
			
		||||
        data-author-name="{{$nach->user->name}}"
 | 
			
		||||
        data-author-image="{{$nach->user->gravatar()}}"
 | 
			
		||||
        data-new-id="{{$content->id}}"
 | 
			
		||||
        data-new-url="{{route_content($content)}}"
 | 
			
		||||
        data-new-title="{{$content->title}}"
 | 
			
		||||
        data-new-date="{{date('Y-m-d h:i:s', strtotime($content->created_at))}}"
 | 
			
		||||
        data-author-url="{{route('author.get', [$content->user->slug])}}"
 | 
			
		||||
        data-author-name="{{$content->user->name}}"
 | 
			
		||||
        data-author-image="{{$content->user->gravatar()}}"
 | 
			
		||||
    ></span>
 | 
			
		||||
    <div class="container">
 | 
			
		||||
        <!-- Modal -->
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        <div class="row" style="padding-top:60px; padding-bottom: 20px;">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            <div class="col-9 col-md-11 d-flex align-items-center" >
 | 
			
		||||
 | 
			
		||||
                <h1>{{$nach->title}}</h1>
 | 
			
		||||
 | 
			
		||||
                <h1>{{$content->title}}</h1>
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="row">
 | 
			
		||||
            <div class="col-6 text-muted">
 | 
			
		||||
                <i class="fal fa-calendar"></i> Veröffentlicht: {{date('d.m.Y', strtotime($nach->created_at))}}
 | 
			
		||||
 | 
			
		||||
                <i class="fal fa-calendar"></i> Veröffentlicht: {{date('d.m.Y', strtotime($content->created_at))}}
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="row">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    <div class="col-md-9">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                        @if ($nach->image)
 | 
			
		||||
                        @if ($content->image)
 | 
			
		||||
                            <br>
 | 
			
		||||
                            <img src="{{ asset('uploads/' . $nach->image) }}" class="img-fluid">
 | 
			
		||||
                            <img src="{{ asset('uploads/' . $content->image) }}" class="img-fluid">
 | 
			
		||||
                            <br>
 | 
			
		||||
                        @endif
 | 
			
		||||
 | 
			
		||||
                            <br>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                            <style>
 | 
			
		||||
                                h2 {
 | 
			
		||||
                                    font-size: 1.4rem;
 | 
			
		||||
| 
						 | 
				
			
			@ -66,102 +39,13 @@
 | 
			
		|||
                                    font-size: 0.9rem;
 | 
			
		||||
                                }
 | 
			
		||||
                            </style>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                            <br>
 | 
			
		||||
                            <br>
 | 
			
		||||
                            {!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1']  : 'keine Angaben' !!}
 | 
			
		||||
 | 
			
		||||
                            {!! !empty($content->description)?$content->description:'keine Angaben' !!}
 | 
			
		||||
                            <br>
 | 
			
		||||
                            <br>
 | 
			
		||||
                            <br>
 | 
			
		||||
                    </div>
 | 
			
		||||
 | 
			
		||||
            @if(App::environment('production'))
 | 
			
		||||
 | 
			
		||||
                <div class="row">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    @if (\App\Models\Nachrichten::whereJsonContains('additional_fields->14', $nach->additional_fields['14'])->where('approved', 1)->where('id', '!=', $nach->id)->limit(4)->get()->sortByDesc('created_at')->count() > 0)
 | 
			
		||||
 | 
			
		||||
                        <div class="col-12">
 | 
			
		||||
                            <hr>
 | 
			
		||||
                            <br>
 | 
			
		||||
                            <h2>Ähnliche Jobangebote</h2>
 | 
			
		||||
                            <br>
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        @foreach (\App\Models\Nachrichten::whereJsonContains('additional_fields->14', $nach->additional_fields['14'])->where('approved', 1)->where('id', '!=', $nach->id)->limit(3)->get()->sortByDesc('created_at') as $nachLimit)
 | 
			
		||||
                            <div class="col-12 col-md-6 col-lg-4" style="padding-bottom: 1rem;">
 | 
			
		||||
 | 
			
		||||
                                <div class="card h-100" style="background-color: #f8f8f8;">
 | 
			
		||||
                                    <div class="card-body">
 | 
			
		||||
                                        <div class="row">
 | 
			
		||||
                                            <div class="col-3">
 | 
			
		||||
                                                <a href="{{ route('author.get', [$nachLimit->user->slug]) }}"
 | 
			
		||||
                                                   onclick="gtag('event', 'See Employer', {'event_category' : '{{$nach->title}}', 'event_label' : '{{ $nachLimit->user->name }}'});"
 | 
			
		||||
 | 
			
		||||
                                                >
 | 
			
		||||
                                                    <img src="{{ $nachLimit->user->gravatar() }}" title="" height="70px" class="border rounded">
 | 
			
		||||
                                                </a>
 | 
			
		||||
                                            </div>
 | 
			
		||||
 | 
			
		||||
                                            <div class="col-9">
 | 
			
		||||
 | 
			
		||||
                                                <br>
 | 
			
		||||
                                                <a href="{{ route('author.get', [$nachLimit->user->slug]) }}" class="text-muted"
 | 
			
		||||
                                                   onclick="gtag('event', 'See Employer', {'event_category' : '{{$nach->title}}', 'event_label' : '{{ $nachLimit->user->name }}'});"
 | 
			
		||||
 | 
			
		||||
                                                >
 | 
			
		||||
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-building" viewBox="0 0 16 16">
 | 
			
		||||
                                                        <path fill-rule="evenodd" d="M14.763.075A.5.5 0 0 1 15 .5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V14h-1v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .342-.474L6 7.64V4.5a.5.5 0 0 1 .276-.447l8-4a.5.5 0 0 1 .487.022zM6 8.694L1 10.36V15h5V8.694zM7 15h2v-1.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V15h2V1.309l-7 3.5V15z"/>
 | 
			
		||||
                                                        <path d="M2 11h1v1H2v-1zm2 0h1v1H4v-1zm-2 2h1v1H2v-1zm2 0h1v1H4v-1zm4-4h1v1H8V9zm2 0h1v1h-1V9zm-2 2h1v1H8v-1zm2 0h1v1h-1v-1zm2-2h1v1h-1V9zm0 2h1v1h-1v-1zM8 7h1v1H8V7zm2 0h1v1h-1V7zm2 0h1v1h-1V7zM8 5h1v1H8V5zm2 0h1v1h-1V5zm2 0h1v1h-1V5zm0-2h1v1h-1V3z"/>
 | 
			
		||||
                                                    </svg>
 | 
			
		||||
                                                    {{ $nachLimit->user->name }}
 | 
			
		||||
                                                </a>
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                            <div class="col-12">
 | 
			
		||||
                                                <h5 class="card-title" style="margin-top: 20px;">
 | 
			
		||||
                                                    <a href="{{ route_content($nachLimit) }}"
 | 
			
		||||
                                                       onclick="gtag('event', 'See Job', {'event_category' : '{{$nach->title}}', 'event_label' : '{{ $nachLimit->title }}'});"
 | 
			
		||||
 | 
			
		||||
                                                    >
 | 
			
		||||
                                                        {{ $nachLimit->title }}
 | 
			
		||||
                                                    </a>
 | 
			
		||||
                                                </h5>
 | 
			
		||||
 | 
			
		||||
                                            </div>
 | 
			
		||||
 | 
			
		||||
                                            <div class="col-5">
 | 
			
		||||
                                                <br>
 | 
			
		||||
                                                <h6 class="card-subtitle mb-2 text-muted">{{date('d.m.Y', strtotime($nachLimit->created_at))}}</h6>
 | 
			
		||||
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                            <div class="col-7 text-end ">
 | 
			
		||||
                                                <br>
 | 
			
		||||
                                                <a class="btn btn-ci" href="{{ route_content($nachLimit) }}"
 | 
			
		||||
                                                   onclick="gtag('event', 'See Job', {'event_category' : '{{$nach->title}}', 'event_label' : '{{ $nachLimit->title }}'});">
 | 
			
		||||
                                                    Job ansehen
 | 
			
		||||
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
 | 
			
		||||
                                                        <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
 | 
			
		||||
                                                    </svg>
 | 
			
		||||
                                                </a>
 | 
			
		||||
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                        </div>
 | 
			
		||||
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        @endforeach
 | 
			
		||||
                    @endif
 | 
			
		||||
 | 
			
		||||
                    <div class="col-sm-12">
 | 
			
		||||
                        <br>
 | 
			
		||||
                        <br>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            @endif
 | 
			
		||||
            </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,6 @@
 | 
			
		|||
<meta charset="utf-8">
 | 
			
		||||
<meta name="viewport" content="width=device-width, user-scalable=no">
 | 
			
		||||
<link rel="manifest" href="/manifest.json">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=rMBWbbb2wK">
 | 
			
		||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=rMBWbbb2wK">
 | 
			
		||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=rMBWbbb2wK">
 | 
			
		||||
| 
						 | 
				
			
			@ -13,45 +10,33 @@
 | 
			
		|||
<meta name="msapplication-TileColor" content="#f49c35">
 | 
			
		||||
<meta name="theme-color" content="#ffffff">
 | 
			
		||||
 | 
			
		||||
@if (\Route::currentRouteName() == 'nachrichten.get' and isset($nach))
 | 
			
		||||
    <title>{{ $nach->title}}</title>
 | 
			
		||||
    <!-- Para colocar title do SEO exemplo: $nach->seo_title -->
 | 
			
		||||
 | 
			
		||||
    @isset($nach->additional_fields['17'])
 | 
			
		||||
        <meta name="description" content="{!! \Str::limit(strip_tags($nach->additional_fields['17']), 285, ' ...') !!}">
 | 
			
		||||
        <meta property="og:description" content="{!! \Str::limit(strip_tags($nach->additional_fields['17']), 285, ' ...') !!}">
 | 
			
		||||
    @endisset
 | 
			
		||||
 | 
			
		||||
@if (\Route::currentRouteName() == 'content' and isset($content))
 | 
			
		||||
    <title>{{ $content->title}}</title>
 | 
			
		||||
    <meta property="og:type" content="article">
 | 
			
		||||
    <meta property="article:author" content="{{ $nach->user->name }}">
 | 
			
		||||
    <meta property="article:published_time" content="{{ $nach->created_at->toW3CString() }}">
 | 
			
		||||
    <meta property="og:title" content="Stellenangebot: {{ $nach->title}}">
 | 
			
		||||
    <meta property="article:author" content="{{ $content->user->name }}">
 | 
			
		||||
    <meta property="article:published_time" content="{{ $content->created_at }}">
 | 
			
		||||
    <meta property="og:title" content="Stellenangebot: {{ $content->title}}">
 | 
			
		||||
    <meta property="og:site_name" content="{{ config('settings.name') }}">
 | 
			
		||||
    <meta property="og:url" content="{{ \Request::url() }}">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    @if ($nach->image)
 | 
			
		||||
        <meta property="og:image" content="{{ asset('uploads/' . $nach->image) }}">
 | 
			
		||||
    @if ($content->image)
 | 
			
		||||
        <meta property="og:image" content="{{ asset('uploads/' . $content->image) }}">
 | 
			
		||||
    @else
 | 
			
		||||
        <meta property="og:image" content="{{ $nach->user->gravatar() }}">
 | 
			
		||||
        <meta property="og:image" content="{{ $content->user->gravatar() }}">
 | 
			
		||||
    @endif
 | 
			
		||||
@elseif (\Route::currentRouteName() == 'content' and isset($list))
 | 
			
		||||
 | 
			
		||||
    <title>Aktuelle Stellenangebote in {{ $list->name }}</title>
 | 
			
		||||
    <!-- Para colocar title do SEO exemplo: $list->seo_title -->
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@elseif (\Route::currentRouteName() == 'list.get' and isset($listModel))
 | 
			
		||||
 | 
			
		||||
    <title>Aktuelle Stellenangebote in {{ $listModel->name }}</title>
 | 
			
		||||
    <!-- Para colocar title do SEO exemplo: $listModel->seo_title -->
 | 
			
		||||
 | 
			
		||||
    <meta name="description" content="Finden Sie hier Ihren Job in der Region {{ $listModel->name }} und bewerben Sie sich bei Top-Arbeigebern.">
 | 
			
		||||
    <meta property="og:description" content="Finden Sie hier Ihren Job in der Region {{ $listModel->name }} und bewerben Sie sich bei Top-Arbeigebern.">
 | 
			
		||||
    <meta name="description" content="Finden Sie hier Ihren Job in der Region {{ $list->name }} und bewerben Sie sich bei Top-Arbeigebern.">
 | 
			
		||||
    <meta property="og:description" content="Finden Sie hier Ihren Job in der Region {{ $list->name }} und bewerben Sie sich bei Top-Arbeigebern.">
 | 
			
		||||
    <meta property="og:type" content="website">
 | 
			
		||||
    <meta property="og:title" content="Aktuelle Stellenangebote in {{ $listModel->name }}">
 | 
			
		||||
    <meta property="og:title" content="Aktuelle Stellenangebote in {{ $list->name }}">
 | 
			
		||||
    <meta property="og:site_name" content="{{ config('settings.name') }}">
 | 
			
		||||
    <meta property="og:url" content="{{ \Request::url() }}">
 | 
			
		||||
 | 
			
		||||
    @if ($listModel->image)
 | 
			
		||||
        <meta property="og:image" content="{{ asset('uploads/lists/' . $listModel->image) }}">
 | 
			
		||||
    @if ($list->image)
 | 
			
		||||
        <meta property="og:image" content="{{ asset('uploads/lists/' . $list->image) }}">
 | 
			
		||||
    @else
 | 
			
		||||
        <meta property="og:image" content="{{ asset('uploads/' . config('settings.image')) }}">
 | 
			
		||||
    @endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -103,39 +103,33 @@
 | 
			
		|||
<section class="mt-2">
 | 
			
		||||
    <div class="row">
 | 
			
		||||
            <h2 id="news" class="mt-5 mb-4">Aktuelle <strong>Neuigkeiten</strong></h2>
 | 
			
		||||
            @foreach(filterByContentType($mdNachrichten, "News")->take(3) as $nach)
 | 
			
		||||
            @foreach(filterByContentType($mdContents, "News")->take(3) as $content)
 | 
			
		||||
            <div class="col-12 col-md-4 mb-4" >
 | 
			
		||||
                <div class="card h-100" style="background-color: #f8f8f8;">
 | 
			
		||||
                    @if ($nach->image)
 | 
			
		||||
                        <img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}" loading="lazy">
 | 
			
		||||
                    @if ($content->image)
 | 
			
		||||
                        <img class="rounded-top img-fluid" src="{{ asset('uploads/' . $content->image) }}" loading="lazy">
 | 
			
		||||
                    @else
 | 
			
		||||
                        <img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}" loading="lazy">
 | 
			
		||||
                    @endif
 | 
			
		||||
 | 
			
		||||
                    <div class="card-body">
 | 
			
		||||
                        <div class="row">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                            <div class="col-12">
 | 
			
		||||
                                <h5 class="card-title" style="margin-top: 20px;">
 | 
			
		||||
                                    <a href="{{ route_content($nach) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">
 | 
			
		||||
                                        {{$nach->title}}
 | 
			
		||||
                                    <a href="{{ route_content($content) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$content->title}}'});">
 | 
			
		||||
                                        {{$content->title}}
 | 
			
		||||
                                    </a>
 | 
			
		||||
                                </h5>
 | 
			
		||||
                            </div>
 | 
			
		||||
                            <div class="col-12">
 | 
			
		||||
                                <small class="card-subtitle mb-2 text-muted" title="{{date('d.m.Y', strtotime($nach->created_at))}}">  {{ $nach->created_at->diffForHumans() }}</small>
 | 
			
		||||
                                <small class="card-subtitle mb-2 text-muted" title="{{date('d.m.Y', strtotime($content->created_at))}}">  {{ $content->created_at->diffForHumans() }}</small>
 | 
			
		||||
                            </div>
 | 
			
		||||
                            <div class="col-12 mt-2">
 | 
			
		||||
                                {!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1']  : 'keine Angaben' !!}
 | 
			
		||||
                                {!! !empty($content->description)?$content->description:'keine Angaben' !!}
 | 
			
		||||
                            </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <div class="card-footer text-end">
 | 
			
		||||
                        <a class="btn btn-sm btn-ci" href="{{ route_content($nach) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">
 | 
			
		||||
                        <a class="btn btn-sm btn-ci" href="{{ route_content($content) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$content->title}}'});">
 | 
			
		||||
                            Mehr lesen
 | 
			
		||||
                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
 | 
			
		||||
                                <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" />
 | 
			
		||||
| 
						 | 
				
			
			@ -189,13 +183,13 @@
 | 
			
		|||
    </div>
 | 
			
		||||
    <div class="row">
 | 
			
		||||
 | 
			
		||||
        @foreach(filterByContentType($mdNachrichten, "Produkte")->take(6) as $nach)
 | 
			
		||||
        @foreach(filterByContentType($mdContents, "Produkte")->take(6) as $content)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            <div class="col-4 col-md-2 mb-4">
 | 
			
		||||
                <a href="{{ route_content($nach) }}" title="{{$nach->title}}">
 | 
			
		||||
                    @if ($nach->image)
 | 
			
		||||
                        <img class="rounded border img-fluid" src="{{ asset('uploads/' . $nach->image) }}" loading="lazy">
 | 
			
		||||
                <a href="{{ route_content($content) }}" title="{{$content->title}}">
 | 
			
		||||
                    @if ($content->image)
 | 
			
		||||
                        <img class="rounded border img-fluid" src="{{ asset('uploads/' . $content->image) }}" loading="lazy">
 | 
			
		||||
                    @else
 | 
			
		||||
                        <img class="rounded border img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}" loading="lazy">
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,40 +1,26 @@
 | 
			
		|||
@extends('template.'.config('settings.template').'.content.master')
 | 
			
		||||
@section('content')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        <div class="row" style="padding-top: 60px;">
 | 
			
		||||
            <div class="col-xs-12">
 | 
			
		||||
                <h1 class="mt-2">{{ $listModel->name }}</h1>
 | 
			
		||||
                <h1 class="mt-2">{{ $list->name }}</h1>
 | 
			
		||||
                <br>
 | 
			
		||||
                @if (isset($listModel))
 | 
			
		||||
                    {{ $listModel->description }}
 | 
			
		||||
                @if (isset($list))
 | 
			
		||||
                    {{ $list->description }}
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        <section>
 | 
			
		||||
            <div class="row">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    @foreach($nachrichten as $nach)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    @foreach($contents as $nach)
 | 
			
		||||
                        <div class="col-12 col-md-4 pb-5">
 | 
			
		||||
                            <div class="card h-100 shadow-sm" style="background-color: #f8f8f8;">
 | 
			
		||||
                                @if ($nach->image)
 | 
			
		||||
                                    <img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}">
 | 
			
		||||
                                @else
 | 
			
		||||
                                    <img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}">
 | 
			
		||||
 | 
			
		||||
                                @endif
 | 
			
		||||
                                <div class="card-body">
 | 
			
		||||
                                    <div class="row">
 | 
			
		||||
 | 
			
		||||
                                        <div class="col-12">
 | 
			
		||||
                                            <h5 class="card-title" style="margin-top: 20px;">
 | 
			
		||||
                                                <a href="{{ route_content($nach) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">
 | 
			
		||||
| 
						 | 
				
			
			@ -46,31 +32,25 @@
 | 
			
		|||
                                            <small class="card-subtitle mb-2 text-muted" title="{{date('d.m.Y', strtotime($nach->created_at))}}">  {{ $nach->created_at->diffForHumans() }}</small>
 | 
			
		||||
                                        </div>
 | 
			
		||||
                                        <div class="col-12 mt-2">
 | 
			
		||||
 | 
			
		||||
                                            {!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1']  : 'keine Angaben' !!}
 | 
			
		||||
                                            {!! !empty($nach->description)?$nach->description:'keine Angaben' !!}
 | 
			
		||||
                                        </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                                    <div class="card-footer text-end">
 | 
			
		||||
                                        <a class="btn btn-sm btn-ci" href="{{ route_content($nach) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">
 | 
			
		||||
                                            Mehr lesen
 | 
			
		||||
                                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
 | 
			
		||||
                                                <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" />
 | 
			
		||||
                                            </svg>
 | 
			
		||||
                                        </a>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                <div class="card-footer text-end">
 | 
			
		||||
                                    <a class="btn btn-sm btn-ci" href="{{ route_content($nach) }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$nach->title}}'});">
 | 
			
		||||
                                        Mehr lesen
 | 
			
		||||
                                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
 | 
			
		||||
                                            <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" />
 | 
			
		||||
                                        </svg>
 | 
			
		||||
                                    </a>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    @endforeach
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    {!! $nachrichten->render() !!}
 | 
			
		||||
                    {!! $contents->render() !!}
 | 
			
		||||
 | 
			
		||||
            <div class="col-12">
 | 
			
		||||
                <br>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,7 +43,7 @@
 | 
			
		|||
                                </h2>
 | 
			
		||||
                                <div id="collapse{{$nach->id}}" class="accordion-collapse collapse" aria-labelledby="heading{{$nach->id}}" data-bs-parent="#accordionExample">
 | 
			
		||||
                                    <div class="accordion-body">
 | 
			
		||||
                                        {!! isset($nach->additional_fields['2']) ? $nach->additional_fields['2']  : 'keine Angaben' !!}
 | 
			
		||||
                                        {!! !empty($content->description)?$content->description:'keine Angaben' !!}
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,80 +1,46 @@
 | 
			
		|||
@extends('template.'.config('settings.template').'.content.master')
 | 
			
		||||
@section('content')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        <div class="row" style="padding-top: 60px;">
 | 
			
		||||
            <div class="col-xs-12">
 | 
			
		||||
                <h1 class="mt-2">{{ $listModel->name }}</h1>
 | 
			
		||||
                <br>
 | 
			
		||||
                @if (isset($listModel))
 | 
			
		||||
                    {{ $listModel->description }}
 | 
			
		||||
                @endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        <section>
 | 
			
		||||
            <div class="row">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    @foreach($nachrichten as $nach)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                        <div class="col-12 col-md-3 pb-5">
 | 
			
		||||
                            <a href="{{ route_content($nach) }}">
 | 
			
		||||
                                <div class="card h-100 shadow-sm" style="background-color: #f8f8f8;">
 | 
			
		||||
                                    @if ($nach->image)
 | 
			
		||||
                                        <img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}">
 | 
			
		||||
                                    @else
 | 
			
		||||
                                        <img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}">
 | 
			
		||||
 | 
			
		||||
                                    @endif
 | 
			
		||||
                                    <div class="card-body">
 | 
			
		||||
                                        <div class="row">
 | 
			
		||||
                                            <div class="col-12">
 | 
			
		||||
                                                <h5 class="card-title">
 | 
			
		||||
                                                        {{$nach->title}}
 | 
			
		||||
                                                </h5>
 | 
			
		||||
                                            </div>
 | 
			
		||||
 | 
			
		||||
                                            <div class="col-12 mt-2 text-muted text-end">
 | 
			
		||||
 | 
			
		||||
                                                {!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1']  : 'keine Angaben' !!}
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                        </div>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </a>
 | 
			
		||||
 | 
			
		||||
<div class="row" style="padding-top: 60px;">
 | 
			
		||||
    <div class="col-xs-12">
 | 
			
		||||
        <h1 class="mt-2">{{ $list->name }}</h1>
 | 
			
		||||
        <br>
 | 
			
		||||
        @if (isset($list))
 | 
			
		||||
            {{ $list->description }}
 | 
			
		||||
        @endif
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
<section>
 | 
			
		||||
    <div class="row">
 | 
			
		||||
        @foreach($contents as $nach)
 | 
			
		||||
        <div class="col-12 col-md-3 pb-5">
 | 
			
		||||
            <a href="{{ route_content($nach) }}">
 | 
			
		||||
                <div class="card h-100 shadow-sm" style="background-color: #f8f8f8;">
 | 
			
		||||
                    @if ($nach->image)
 | 
			
		||||
                        <img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}">
 | 
			
		||||
                    @else
 | 
			
		||||
                        <img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}">
 | 
			
		||||
                    @endif
 | 
			
		||||
                    <div class="card-body">
 | 
			
		||||
                        <div class="row">
 | 
			
		||||
                            <div class="col-12">
 | 
			
		||||
                                <h5 class="card-title">{{$nach->title}}</h5>
 | 
			
		||||
                            </div>
 | 
			
		||||
                            <div class="col-12 mt-2 text-muted text-end">
 | 
			
		||||
                            {!! !empty($content->description)?$content->description:'keine Angaben' !!}
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    @endforeach
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    {!! $nachrichten->render() !!}
 | 
			
		||||
 | 
			
		||||
            <div class="col-12">
 | 
			
		||||
                <br>
 | 
			
		||||
                <br>
 | 
			
		||||
                <br>
 | 
			
		||||
                <br>
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
            </div>
 | 
			
		||||
        </section>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@stop
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@section('scripts')
 | 
			
		||||
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            </a>
 | 
			
		||||
        </div>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        {!! $contents->render() !!}
 | 
			
		||||
        <div class="col-12">
 | 
			
		||||
            <br>
 | 
			
		||||
            <br>
 | 
			
		||||
            <br>
 | 
			
		||||
            <br>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</section>
 | 
			
		||||
@stop
 | 
			
		||||
| 
						 | 
				
			
			@ -70,98 +70,11 @@
 | 
			
		|||
 | 
			
		||||
                            <br>
 | 
			
		||||
                            <br>
 | 
			
		||||
                            {!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1']  : 'keine Angaben' !!}
 | 
			
		||||
 | 
			
		||||
                            {!! !empty($content->description)?$content->description:'keine Angaben' !!}
 | 
			
		||||
                            <br>
 | 
			
		||||
                            <br>
 | 
			
		||||
                            <br>
 | 
			
		||||
                    </div>
 | 
			
		||||
 | 
			
		||||
            @if(App::environment('production'))
 | 
			
		||||
 | 
			
		||||
                <div class="row">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    @if (\App\Models\Nachrichten::whereJsonContains('additional_fields->14', $nach->additional_fields['14'])->where('approved', 1)->where('id', '!=', $nach->id)->limit(4)->get()->sortByDesc('created_at')->count() > 0)
 | 
			
		||||
 | 
			
		||||
                        <div class="col-12">
 | 
			
		||||
                            <hr>
 | 
			
		||||
                            <br>
 | 
			
		||||
                            <h2>Ähnliche Jobangebote</h2>
 | 
			
		||||
                            <br>
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        @foreach (\App\Models\Nachrichten::whereJsonContains('additional_fields->14', $nach->additional_fields['14'])->where('approved', 1)->where('id', '!=', $nach->id)->limit(3)->get()->sortByDesc('created_at') as $nachLimit)
 | 
			
		||||
                            <div class="col-12 col-md-6 col-lg-4" style="padding-bottom: 1rem;">
 | 
			
		||||
 | 
			
		||||
                                <div class="card h-100" style="background-color: #f8f8f8;">
 | 
			
		||||
                                    <div class="card-body">
 | 
			
		||||
                                        <div class="row">
 | 
			
		||||
                                            <div class="col-3">
 | 
			
		||||
                                                <a href="{{ route('author.get', [$nachLimit->user->slug]) }}"
 | 
			
		||||
                                                   onclick="gtag('event', 'See Employer', {'event_category' : '{{$nach->title}}', 'event_label' : '{{ $nachLimit->user->name }}'});"
 | 
			
		||||
 | 
			
		||||
                                                >
 | 
			
		||||
                                                    <img src="{{ $nachLimit->user->gravatar() }}" title="" height="70px" class="border rounded">
 | 
			
		||||
                                                </a>
 | 
			
		||||
                                            </div>
 | 
			
		||||
 | 
			
		||||
                                            <div class="col-9">
 | 
			
		||||
 | 
			
		||||
                                                <br>
 | 
			
		||||
                                                <a href="{{ route('author.get', [$nachLimit->user->slug]) }}" class="text-muted"
 | 
			
		||||
                                                   onclick="gtag('event', 'See Employer', {'event_category' : '{{$nach->title}}', 'event_label' : '{{ $nachLimit->user->name }}'});"
 | 
			
		||||
 | 
			
		||||
                                                >
 | 
			
		||||
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-building" viewBox="0 0 16 16">
 | 
			
		||||
                                                        <path fill-rule="evenodd" d="M14.763.075A.5.5 0 0 1 15 .5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V14h-1v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .342-.474L6 7.64V4.5a.5.5 0 0 1 .276-.447l8-4a.5.5 0 0 1 .487.022zM6 8.694L1 10.36V15h5V8.694zM7 15h2v-1.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V15h2V1.309l-7 3.5V15z"/>
 | 
			
		||||
                                                        <path d="M2 11h1v1H2v-1zm2 0h1v1H4v-1zm-2 2h1v1H2v-1zm2 0h1v1H4v-1zm4-4h1v1H8V9zm2 0h1v1h-1V9zm-2 2h1v1H8v-1zm2 0h1v1h-1v-1zm2-2h1v1h-1V9zm0 2h1v1h-1v-1zM8 7h1v1H8V7zm2 0h1v1h-1V7zm2 0h1v1h-1V7zM8 5h1v1H8V5zm2 0h1v1h-1V5zm2 0h1v1h-1V5zm0-2h1v1h-1V3z"/>
 | 
			
		||||
                                                    </svg>
 | 
			
		||||
                                                    {{ $nachLimit->user->name }}
 | 
			
		||||
                                                </a>
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                            <div class="col-12">
 | 
			
		||||
                                                <h5 class="card-title" style="margin-top: 20px;">
 | 
			
		||||
                                                    <a href="{{ route_content($nachLimit) }}"
 | 
			
		||||
                                                       onclick="gtag('event', 'See Job', {'event_category' : '{{$nach->title}}', 'event_label' : '{{ $nachLimit->title }}'});"
 | 
			
		||||
 | 
			
		||||
                                                    >
 | 
			
		||||
                                                        {{ $nachLimit->title }}
 | 
			
		||||
                                                    </a>
 | 
			
		||||
                                                </h5>
 | 
			
		||||
 | 
			
		||||
                                            </div>
 | 
			
		||||
 | 
			
		||||
                                            <div class="col-5">
 | 
			
		||||
                                                <br>
 | 
			
		||||
                                                <h6 class="card-subtitle mb-2 text-muted">{{date('d.m.Y', strtotime($nachLimit->created_at))}}</h6>
 | 
			
		||||
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                            <div class="col-7 text-end ">
 | 
			
		||||
                                                <br>
 | 
			
		||||
                                                <a class="btn btn-ci" href="{{ route_content($nachLimit) }}"
 | 
			
		||||
                                                   onclick="gtag('event', 'See Job', {'event_category' : '{{$nach->title}}', 'event_label' : '{{ $nachLimit->title }}'});">
 | 
			
		||||
                                                    Job ansehen
 | 
			
		||||
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
 | 
			
		||||
                                                        <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
 | 
			
		||||
                                                    </svg>
 | 
			
		||||
                                                </a>
 | 
			
		||||
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                        </div>
 | 
			
		||||
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        @endforeach
 | 
			
		||||
                    @endif
 | 
			
		||||
 | 
			
		||||
                    <div class="col-sm-12">
 | 
			
		||||
                        <br>
 | 
			
		||||
                        <br>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            @endif
 | 
			
		||||
            </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue