added products on home

master
Benjamin Völkl 2021-09-17 12:19:44 +02:00
parent 2c9e945dcc
commit 3e5f892dd7
3 changed files with 125 additions and 26 deletions

View File

@ -106,9 +106,9 @@
<div class="col-12 col-md-4 mb-4" > <div class="col-12 col-md-4 mb-4" >
<div class="card h-100" style="background-color: #f8f8f8;"> <div class="card h-100" style="background-color: #f8f8f8;">
@if ($nach->image) @if ($nach->image)
<img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}"> <img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}" loading="lazy">
@else @else
<img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}"> <img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}" loading="lazy">
@endif @endif


<div class="card-body"> <div class="card-body">
@ -151,7 +151,7 @@
<section> <section>
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<h2 id="alpakas" class="mb-5">Über <strong>Alpakas</strong></h2> <h2 id="alpakas" class="mb-4">Über <strong>Alpakas</strong></h2>


<p style="font-size: 19px;"> <p style="font-size: 19px;">


@ -177,35 +177,27 @@
<section> <section>
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<h2 id="produkte" class="mb-5">Unsere <strong>Alpaka Produkte</strong></h2> <h2 id="produkte" class="mb-4">Unsere <strong>Alpaka Produkte</strong></h2>






</div> </div>
</div> </div>
<div class="row"> <div class="row">

@foreach($nachrichten->take(6) as $nach)
<div class="col-4 col-md-2 mb-4"> <div class="col-4 col-md-2 mb-4">
<a href="{{url('/neumarkt')}}" title="Produkt 1"> <a href="{{ route_content($nach) }}" title="{{$nach->title}}">
<img src="https://www.alpakafarm.com/sites/default/files/styles/display_04_400xstandard_16_9_crop/public/2019-03/AFS_Bild_Farm.jpg?itok=jAJ1z74g" class="img-fluid rounded border" loading="lazy"> @if ($nach->image)
</a> <img class="rounded border img-fluid" src="{{ asset('uploads/' . $nach->image) }}" loading="lazy">
</div> @else
<div class="col-4 col-md-2 mb-4"> <img class="rounded border img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}" loading="lazy">
<a href="{{url('/neumarkt')}}" title="Produkt 1">
<picture> @endif
<img src="https://www.alpakafarm.com/sites/default/files/styles/display_04_400xstandard_16_9_crop/public/weissjung.jpg?h=1cf7100d?h=1cf7100d&amp;itok=BYKVbS4F" class="img-fluid rounded border" loading="lazy">
</picture>
</a>
</div>
<div class="col-4 col-md-2 mb-4">
<a href="{{url('/neumarkt')}}" title="Produkt 1">
<img src="https://www.alpakafarm.com/sites/default/files/styles/display_04_400xstandard_16_9_crop/public/AFS_Head_Alpakas_2.jpg?h=a8426572?h=a8426572&amp;itok=FCQtYpaZ" class="img-fluid rounded border" loading="lazy">
</a>
</div>
<div class="col-4 col-md-2 mb-4">
<a href="{{url('/neumarkt')}}" title="Produkt 1">
<img src="https://www.alpakafarm.com/sites/default/files/styles/display_04_400xstandard_16_9_crop/public/AFS_Head_Alpakas_2_0.jpg?h=0dbd260c&itok=XZI1whIH" class="img-fluid rounded border" loading="lazy">
</a> </a>
</div> </div>
@endforeach



<div class="col-12 text-center"> <div class="col-12 text-center">
<a href="{{url('/produkte')}}" class="text-center small" >Mehr Produkte</a> <a href="{{url('/produkte')}}" class="text-center small" >Mehr Produkte</a>

View File

@ -0,0 +1,80 @@
@extends('template.'.config('settings.template').'.content.master')
@section('content')




<div class="row" style="padding-top: 60px;">
<div class="col-xs-12">
<h1 class="mt-2">{{ $listModel->name }}</h1>
<br>
@if (isset($listModel))
{{ $listModel->description }}
@endif


</div>
</div>


<section>
<div class="row">


@foreach($nachrichten as $nach)


<div class="col-12 col-md-3 pb-5">
<a href="{{ route_content($nach) }}">
<div class="card h-100 shadow-sm" style="background-color: #f8f8f8;">
@if ($nach->image)
<img class="rounded-top img-fluid" src="{{ asset('uploads/' . $nach->image) }}">
@else
<img class="rounded-top img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}">

@endif
<div class="card-body">
<div class="row">
<div class="col-12">
<h5 class="card-title">
{{$nach->title}}
</h5>
</div>

<div class="col-12 mt-2 text-muted text-end">

{!! isset($nach->additional_fields['1']) ? $nach->additional_fields['1'] : 'keine Angaben' !!}
</div>
</div>
</div>
</div>
</a>

</div>


@endforeach



{!! $nachrichten->render() !!}

<div class="col-12">
<br>
<br>
<br>
<br>
</div>

</div>
</section>




@stop


@section('scripts')

@stop

View File

@ -49,6 +49,33 @@
<br> <br>
<br> <br>
<br> <br>
<hr>
<br>
<br>
<b>Design und technische Umsetzung</b>
<br>
<br>
<br>
<a href="https://www.areya.de">
<img src="https://www.areya.de/images/areya-big-logo.png" class="border rounded" width="200">

</a>
<br>
Areya Webservices GmbH
<br>
Neuenhammerstr. 44
<br>
92714 Pleystein
<br>
<br>
<a href="https://www.areya.de">www.areya.de</a>
<br>
Tel.: <a href="tel:+4996545529550">09654/5529550</a>
<br>
<br>
<br>
<hr>
<br>




<h3>EU-Streitschlichtung</h3> <h3>EU-Streitschlichtung</h3>