From e4f69cf19ba43b3c6f923d57ba752f046ce96bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20V=C3=B6lkl?= Date: Mon, 20 Sep 2021 10:01:36 +0200 Subject: [PATCH] changed content file structure --- content/contents/default.blade.php | 178 +++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 content/contents/default.blade.php diff --git a/content/contents/default.blade.php b/content/contents/default.blade.php new file mode 100644 index 0000000..00d2680 --- /dev/null +++ b/content/contents/default.blade.php @@ -0,0 +1,178 @@ +@extends('template.'.config('settings.template').'.content.master') +@section('content') + + +
+ + + + + + + + +
+ + + + +
+ +

{{$nach->title}}

+ +
+ + +
+
+
+ Veröffentlicht: {{date('d.m.Y', strtotime($nach->created_at))}} + +
+ + +
+
+ + +
+ + + @if ($nach->image) +
+ +
+ @endif + +
+ + + + + + + +
+
+ {!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!} + +
+
+
+
+ + @if(App::environment('production')) + +
+ + + @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) + +
+
+
+

Ă„hnliche Jobangebote

+
+
+ + @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) +
+ +
+
+
+
+ + + +
+ + + + +
+
+
{{date('d.m.Y', strtotime($nachLimit->created_at))}}
+ +
+ +
+ +
+
+
+ @endforeach + @endif + +
+
+
+
+
+ @endif +
+
+ +@stop + +@section('scripts') + + + + + + +@stop +