Benjamin Völkl 2023-07-13 22:14:59 +02:00
parent 543fa9d94b
commit ef976a1106
2 changed files with 110 additions and 43 deletions

View File

@ -1,66 +1,66 @@
@extends('template.'.config('settings.template').'.content.master') @extends('template.'.config('settings.template').'.content.master')
@section('head') @section('head')
<title>{{$content->title}} | {{config('settings.name')}}</title> <title>{{$content->title}} | {{config('settings.name')}}</title>
<style>
#map {
height: 500px;
width: 100%;
}
</style>
@stop @stop
@section('content') @section('content')
<div class="container"> <div class="container">
<div class="row"> <div class="row mb-5">
<div class="col"> <div class="col-12 mt-4">
<a href="{{url('/')}}"> ← Back</a> <a href="{{url('/')}}"> ← Back</a>
</div>

<div class="col-12 mt-4 mb-4">

<h1>{{$content->title}}</h1> <h1>{{$content->title}}</h1>


</div> </div>


<div class="col-12 col-md-4"> <div class="col-12 col-md-4">
<img src="{{$content->image}}" class="img-fluid rounded" alt="Bild {{$content->title}}"> <img src="{{$content->image}}" class="img-fluid rounded" alt="Bild {{$content->title}}">


</div> </div>
<div class="col-12 col-md-8">
<div class="col-12 col-md-7 offset-md-1 fs-4">

{!!$content->beschreibung!!}




</div> </div>






</div> </div>



<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12 mt-4 mb-2">
{{$content->beschreibung}} <h2>Bilder</h2>


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


<div class="row"> <div class="col-12 col-md-3 mb-4">
<div class="col-12"> <img src="https://picsum.photos/300" class="img-fluid rounded">
<h4>Bilder</h4>
</div> </div>


<div class="col-12 col-md-3 mb-4">
<img src="https://picsum.photos/300" class="img-fluid rounded">
</div>


<div class="col-12 col-md-3 mb-4">
<img src="https://picsum.photos/300" class="img-fluid rounded">
</div>


<div class="col-12 col-md-3 mb-4">
<img src="https://picsum.photos/300" class="img-fluid rounded">
</div>
<div class="col-3"></div> <div class="col-3"></div>
</div> </div>




<div class="row">
<div class="col-8 g-0">
<div id="map"></div>
<div id="marker-window" class="d-none">
<h5 id="firstHeading" class="firstHeading">$title</h5>
<div id="bodyContent">
<p>$description</p>
<a data-href="$path">Details</a>
</div> </div>
</div>
</div>
</div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAKGJCCKvmWZl-L5bBF0uS5BWf0gN4ZkpI&callback=initMap&v=weekly" defer></script>
<script> <script>
const contentUrl = "{{url('/api/contents/'.$content->id)}}"; const contentUrl = "{{url('/api/contents/'.$content->id)}}";
const locationField = "{{$_location_field}}"; const locationField = "{{$_location_field}}";

File diff suppressed because one or more lines are too long