alpakas-theme/content/news.blade.php

263 lines
13 KiB
PHP

@extends('template.'.config('settings.template').'.content.master')
@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()}}"
></span>
<div class="container">
<!-- Modal -->
<div class="row" style="padding-top:20px; padding-bottom: 20px;">
<div class="col-3 col-md-1 d-flex align-items-center">
</div>
<div class="col-9 col-md-11 d-flex align-items-center" >
<h1>{{$nach->title}}</h1>
</div>
</div>
<div class="row">
<div class="col-6">
<i class="fal fa-calendar"></i> Veröffentlicht: {{date('d.m.Y', strtotime($nach->created_at))}}
</div>
</div>
<div class="row">
<div class="col-md-9">
@if ($nach->image)
<br>
<img src="{{ asset('uploads/' . $nach->image) }}" class="img-fluid">
<br>
@endif
<br>
<style>
h2 {
font-size: 1.4rem;
padding-top:55px;
}
h5{
font-size: 0.9rem;
}
</style>
<br>
<br>
<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>
<div id="mobile-calltoaction">
<div class="row">
<div class="col-8">
@if(isset($nach->additional_fields['26']))
<a class="btn btn-lg btn-success d-block mt-2" href="{{$nach->additional_fields['26']}}" target="_blank"
onclick="gtag('event', 'redirect to external', {'event_category' : '{{$nach->title}}', 'event_label' : 'external'});">
Direkt beim Arbeitgeber bewerben
<svg style="width: 11px; fill: black" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Pro 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) --><path d="M440,256H424a8,8,0,0,0-8,8V464a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V112A16,16,0,0,1,48,96H248a8,8,0,0,0,8-8V72a8,8,0,0,0-8-8H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V264A8,8,0,0,0,440,256ZM500,0,364,.34a12,12,0,0,0-12,12v10a12,12,0,0,0,12,12L454,34l.7.71L131.51,357.86a12,12,0,0,0,0,17l5.66,5.66a12,12,0,0,0,17,0L477.29,57.34l.71.7-.34,90a12,12,0,0,0,12,12h10a12,12,0,0,0,12-12L512,12A12,12,0,0,0,500,0Z"/></svg>
</a>
@elseif($nach->user->id == 63)
<!-- Calendly Link-Widget Beginn -->
<link href="https://assets.calendly.com/assets/external/widget.css" rel="stylesheet">
<script src="https://assets.calendly.com/assets/external/widget.js" type="text/javascript" async></script>
<!-- Calendly Link-Widget Ende -->
<a href=""
onclick="Calendly.initPopupWidget({url: 'https://calendly.com/jobs-oberpfalz/personal-leasing-puran?hide_gdpr_banner=1'});return false;"
class="btn btn-success d-block mt-2"
style="margin-left:30px;">
<svg style="fill: white; width:23px; margin-right:6px;"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M528 0H48C21.5 0 0 21.5 0 48v288c0 26.5 21.5 48 48 48h192l-24 96h-72c-8.8 0-16 7.2-16 16s7.2 16 16 16h288c8.8 0 16-7.2 16-16s-7.2-16-16-16h-72l-24-96h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM249 480l16-64h46l16 64h-78zm295-144c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h480c8.8 0 16 7.2 16 16v288z"/></svg>
Online Bewerbungsgespräch
</a>
<small>Garantiertes Bewerbungsgespräch</small>
@else
<a href=""
class="btn btn-success d-block mt-2"
data-bs-toggle="modal"
data-bs-target="#exampleModal"
onclick="gtag('event', 'show application form', {'event_category' : '{{$nach->title}}', 'event_label' : 'internal'});"
style="margin-left:30px;">Jetzt online bewerben
</a>
<small>1min Bewerbung</small>
@endif
</div>
<div class="col-2">
<button id="btn-share" style="background: transparent; border: none;" title="Funktion ist im Wartungsmodus">
<svg style="fill:white; width:32px; margin-top:18px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"/></svg>
</button>
</div>
<div class="col-2" style="margin-top: 19px;margin-left: -16px;">
<button id="btn-like" title="Funktion ist im Wartungsmodus">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"/></svg>
</button>
</div>
</div>
</div>
@stop
@section('scripts')
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
const shareData = {
title: "{{ $nach->title }}",
text: 'Text',
url: window.location.href,
}
</script>
<script src="{{ asset('template/js/pages/news/methods.js') }}"></script>
<script src="{{ asset('template/js/pages/news/events.js') }}"></script>
<script src="{{ asset('template/js/pages/news/script.js') }}"></script>
<script src="{{ asset('system/js/intlTelInput.min.js') }}"></script>
<script>
var input = document.querySelector(".phone");
var iti = window.intlTelInput(input, {
initialCountry: "de",
geoIpLookup: function(callback) {
$.get('https://ipinfo.io', function() {}, "jsonp").always(function(resp) {
var countryCode = (resp && resp.country) ? resp.country : "us";
callback(countryCode);
});
},
utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.11/js/utils.min.js",
// any initialisation options go here
});
$("#formPost").submit(function() {
if (iti.isValidNumber() == false) {
alert('Telefonnummer nicht gültig!');
return false;
}
return true;
});
</script>
@stop