2023-05-15 19:30:18 +00:00
|
|
|
@extends('template.'.config('settings.template').'.content.master')
|
2023-05-15 19:57:14 +00:00
|
|
|
@section('head')
|
|
|
|
<title>{{$content->title}} | {{config('settings.name')}}</title>
|
2023-07-13 20:14:59 +00:00
|
|
|
|
2023-05-15 19:57:14 +00:00
|
|
|
@stop
|
2023-05-15 19:30:18 +00:00
|
|
|
@section('content')
|
2023-05-16 11:42:14 +00:00
|
|
|
<div class="container">
|
2023-07-13 20:14:59 +00:00
|
|
|
<div class="row mb-5">
|
|
|
|
<div class="col-12 mt-4">
|
2023-05-16 11:42:14 +00:00
|
|
|
<a href="{{url('/')}}"> ← Back</a>
|
2023-07-13 20:14:59 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-12 mt-4 mb-4">
|
|
|
|
|
2023-05-16 11:42:14 +00:00
|
|
|
<h1>{{$content->title}}</h1>
|
2023-07-13 20:14:59 +00:00
|
|
|
|
|
|
|
|
2023-05-16 11:42:14 +00:00
|
|
|
</div>
|
2023-06-30 19:10:54 +00:00
|
|
|
|
|
|
|
<div class="col-12 col-md-4">
|
2023-07-15 19:01:50 +00:00
|
|
|
<img src="{{$content->image()}}" class="img-fluid rounded" alt="Bild {{$content->title}}">
|
2023-06-30 19:10:54 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2023-07-13 20:14:59 +00:00
|
|
|
<div class="col-12 col-md-7 offset-md-1 fs-4">
|
2023-06-30 19:10:54 +00:00
|
|
|
|
2023-07-13 20:14:59 +00:00
|
|
|
{!!$content->beschreibung!!}
|
2023-06-30 19:10:54 +00:00
|
|
|
|
|
|
|
|
2023-07-13 20:14:59 +00:00
|
|
|
</div>
|
|
|
|
|
2023-06-30 19:10:54 +00:00
|
|
|
</div>
|
|
|
|
|
2023-07-15 19:11:27 +00:00
|
|
|
@if($content->bilder)
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 mt-4 mb-2">
|
|
|
|
<h2>Bilder</h2>
|
|
|
|
</div>
|
|
|
|
|
2023-07-15 19:08:41 +00:00
|
|
|
@foreach($content->bilder as $bild)
|
|
|
|
<div class="col-12 col-md-3 mb-4">
|
|
|
|
<img src="{{$bild}}" class="img-fluid rounded">
|
|
|
|
</div>
|
|
|
|
@endforeach
|
2023-07-15 19:11:27 +00:00
|
|
|
|
|
|
|
<div class="col-3"></div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2023-07-13 20:14:59 +00:00
|
|
|
|
2023-05-16 11:42:14 +00:00
|
|
|
</div>
|
2023-05-15 19:57:14 +00:00
|
|
|
<script>
|
2023-05-17 19:16:49 +00:00
|
|
|
const contentUrl = "{{url('/api/contents/'.$content->id)}}";
|
2023-06-20 18:34:36 +00:00
|
|
|
const locationField = "{{$_location_field}}";
|
|
|
|
let item = {!! json_encode($content)!!};
|
2023-05-18 17:14:55 +00:00
|
|
|
</script>
|
2023-06-20 18:34:36 +00:00
|
|
|
<script src="{{storage('assets/content/script.js')}}"></script>
|
2023-05-15 19:57:14 +00:00
|
|
|
@stop
|