Benjamin Völkl 2023-10-12 11:28:10 +02:00
parent 487fa895e1
commit 5241dc5b58
4 changed files with 59 additions and 107 deletions

View File

@ -128,24 +128,27 @@
</div>
</div>

<div class="row mt-5">
<div class="col-12 col-md-6">
<button id="btn-add-to-bag" data-id="{{$content->id}}" class="btn btn-outline-success mb-5" style="padding-top: 6px; padding-bottom: 6px; padding-right: 20px; padding-left: 20px;">
<svg style="fill: currentColor; width: 19px; margin-right: 8px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 128C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128H0v304c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V128h-96zM224 48c44.112 0 80 35.888 80 80H144c0-44.112 35.888-80 80-80zm176 384c0 17.645-14.355 32-32 32H80c-17.645 0-32-14.355-32-32V176h48v40c0 13.255 10.745 24 24 24s24-10.745 24-24v-40h160v40c0 13.255 10.745 24 24 24s24-10.745 24-24v-40h48v256z"/></svg>
In den Einkaufswagen
</button>
<button id="btn-show-bag" type="button" data-bs-toggle="modal" data-bs-target="#ShoppingCart" class="btn btn-success position-relative mb-5">
Im Warenkorb ansehen
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger" id="count-items-in-bag"></span>
</button>
@if($_warenkorb_aktiv)
<div class="row mt-5">
<div class="col-12 col-md-6">
<button id="btn-add-to-bag" data-id="{{$content->id}}" class="btn btn-outline-success mb-5" style="padding-top: 6px; padding-bottom: 6px; padding-right: 20px; padding-left: 20px;">
<svg style="fill: currentColor; width: 19px; margin-right: 8px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 128C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128H0v304c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V128h-96zM224 48c44.112 0 80 35.888 80 80H144c0-44.112 35.888-80 80-80zm176 384c0 17.645-14.355 32-32 32H80c-17.645 0-32-14.355-32-32V176h48v40c0 13.255 10.745 24 24 24s24-10.745 24-24v-40h160v40c0 13.255 10.745 24 24 24s24-10.745 24-24v-40h48v256z"/></svg>
In den Einkaufswagen
</button>
<button id="btn-show-bag" type="button" data-bs-toggle="modal" data-bs-target="#ShoppingCart" class="btn btn-success position-relative mb-5">
Im Warenkorb ansehen
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger" id="count-items-in-bag"></span>
</button>
</div>
<div class="col-12 col-md-6">
<button id="btn-check-out" data-id="{{$content->id}}" class="btn btn-primary mb-5" style="padding-top: 6px; padding-bottom: 6px; padding-right: 20px; padding-left: 20px;">
<svg style="fill: white; width: 19px; margin-right: 8px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 128C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128H0v304c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V128h-96zM224 48c44.112 0 80 35.888 80 80H144c0-44.112 35.888-80 80-80zm176 384c0 17.645-14.355 32-32 32H80c-17.645 0-32-14.355-32-32V176h48v40c0 13.255 10.745 24 24 24s24-10.745 24-24v-40h160v40c0 13.255 10.745 24 24 24s24-10.745 24-24v-40h48v256z"/></svg>
Unverbindlich anfragen
</button>
</div>
</div>
<div class="col-12 col-md-6">
<button id="btn-check-out" data-id="{{$content->id}}" class="btn btn-primary mb-5" style="padding-top: 6px; padding-bottom: 6px; padding-right: 20px; padding-left: 20px;">
<svg style="fill: white; width: 19px; margin-right: 8px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 128C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128H0v304c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V128h-96zM224 48c44.112 0 80 35.888 80 80H144c0-44.112 35.888-80 80-80zm176 384c0 17.645-14.355 32-32 32H80c-17.645 0-32-14.355-32-32V176h48v40c0 13.255 10.745 24 24 24s24-10.745 24-24v-40h160v40c0 13.255 10.745 24 24 24s24-10.745 24-24v-40h48v256z"/></svg>
Unverbindlich anfragen
</button>
</div>
</div>
@endif

</div>
</div>


View File

@ -12,7 +12,7 @@
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
<ol class="breadcrumb text-decoration-none">
<li class="breadcrumb-item"><a href="{{url('/')}}">Home</a></li>
<li class="breadcrumb-item"><a href="{{url('/jobs')}}">Job</a></li>
<li class="breadcrumb-item"><a href="{{url('/events')}}">Events</a></li>
<li class="breadcrumb-item active" aria-current="page">{{$content->title}}</li>
</ol>
</nav>
@ -39,103 +39,16 @@
<br>
</div>
<div class="col-12 mb-5 mt-5 fs-5">
{!! isset($content->neuigkeit) ? $content->neuigkeit : 'keine Angaben' !!}
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid debitis et, ex exercitationem facilis incidunt molestias nulla officiis perferendis quas tempora, vitae voluptatem, voluptates? Atque dolores eius pariatur porro quisquam.
</div>
</div>

<div class="col-12 col-lg-4 offset-lg-1">
<div class="card mb-5 mt-5 shadow-lg">
<div class="card-header text-center">
<h3 class="fs-5 fw-bold">Jetzt bewerben</h3>
</div>
<div class="card-body">

<form>
<div class="mb-4">
<label for="exampleInputEmail1" class="form-label">Name:</label>
<input type="name" name="name" class="form-control" id="name" aria-describedby="emailHelp" placeholder="Max Mustermann" autocomplete="on">
</div>

<div class="mb-4">
<label for="exampleInputEmail1" class="form-label">Telefonnummer:</label>
<input type="tel" name="tel" class="form-control" id="tel" aria-describedby="emailHelp" placeholder="0170 1234 56478" autocomplete="on">
</div>

<div class="mb-4">
<label for="exampleInputEmail1" class="form-label">E-Mail:</label>
<input type="name" name="email"class="form-control" id="email" aria-describedby="emailHelp" placeholder="beispiel@areya.de" autocomplete="on">
</div>


<div class="form-floating mb-4">
<textarea style="height: 80px;" class="form-control" placeholder="Leave a comment here" id="floatingTextarea"></textarea>
<label for="floatingTextarea">Nachricht</label>
</div>


<div class="d-grid gap-2">
<button type="submit" class="btn btn-primary btn-block">Bewerbung unverbindlich absenden
<svg style="fill: currentColor;width: 17px;margin-left: 6px;margin-bottom: 4px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"/></svg>
</button>

</div>


</form>
</div>
</div>
</div>
</div>




@php($otherContents = filterByContentType("Jobs")->filter(function ($item) use ($content) { return $item->id != $content->id; }))

@if($otherContents->isNotEmpty())

<div class="row mb-5">


<div class="col-12">
<hr class="pb-5 mt-5">
<h2 class="mb-4 mt-5 h3">Weitere Stellenangebote</h2>
</div>

@foreach($otherContents->take(3) as $otherContent)

<div class="col-12 col-md-4 mb-3">

<a href="{{$otherContent->path}}" class="text-decoration-none">
<div class="card shadow-sm h-100">

<div class="card-body">
<h3 class="h5 mb-2">
{{$otherContent->title}}
</h3>

<div class="text-muted small my-3">
<span title="{{$otherContent->created_at}}">
<svg style="fill: currentColor;width:15px;margin-bottom: 5px;margin-right: 3px;}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M112 0c8.8 0 16 7.2 16 16V64H320V16c0-8.8 7.2-16 16-16s16 7.2 16 16V64h32c35.3 0 64 28.7 64 64v32 32V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192 160 128C0 92.7 28.7 64 64 64H96V16c0-8.8 7.2-16 16-16zM416 192H32V448c0 17.7 14.3 32 32 32H384c17.7 0 32-14.3 32-32V192zM384 96H64c-17.7 0-32 14.3-32 32v32H416V128c0-17.7-14.3-32-32-32z"/></svg>
{{ $otherContent->updated_at->diffForHumans() }}

</span>
</div>
{!! Str::limit($otherContent->title, 280) !!}
</div>


</div>
</a>

</div>

@endforeach

</div>

@endif

</div>



View File

@ -39,7 +39,6 @@

</div>

{!! Str::limit($content->vorschau, 280) !!}

</div>


View File

@ -175,6 +175,43 @@
}
]
},
{
"slug": "event",
"name": "Event",
"description": "",
"icon": "/font-awesome/duotone/calendar-days.svg",
"status": 1,
"blade": "veranstaltung",
"fields": [
{
"name": "Kurzbeschreibung",
"type": "text",
"description": "Dies ist eine Kurzbeschreibung für das Produkt",
"attr": {
"pattern": "",
"maxlength": "",
"minlength": ""
},
"position": 1,
"required": 0,
"default_value": ""
},
{

"name": "Beschreibung",
"type": "rich-text",
"description": "Dies ist eine ausführliche Beschreibung für das Produkt",
"attr": {
"pattern": "",
"maxlength": "",
"minlength": ""
},
"position": 1,
"required": 0,
"default_value": ""
}
]
},
{
"slug": "job",
"name": "Jobs",