kreuzberg-theme/content/news.blade.php

126 lines
5.2 KiB
PHP
Raw Normal View History

2020-09-24 10:04:46 +00:00
@extends('template.'.\Setting::get('template', 'default').'.content.master')
@section('content')
2020-09-28 10:56:58 +00:00
<!-- Blog Post section -->
<div class="section">
<div class="container">
<div class="row">
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
<div class="col-12 col-sm-10 offset-sm-1 col-md-8 offset-md-2">
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
<div class="margin-bottom-50">
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
<div class="margin-top-30">
<h1 class="h2 margin-bottom-30">{{$nach->title}}</h1>
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
<div class="d-flex justify-content-between margin-bottom-10">
<div class="d-inline-flex">
<a class="font-family-tertiary font-small font-weight-normal uppercase" href="{{ route('category.get', [$nach->category->slug]) }}">{{ $nach->category->name}}</a>
</div>
<div class="d-inline-flex">
<span class="font-small">{{ $nach->created_at->diffForHumans() }}</span>
2020-09-24 10:04:46 +00:00
</div>
</div>
2020-09-28 10:56:58 +00:00
@if ($nach->image)
<div class="hoverbox-8 margin-bottom-40">
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
<img src="{{ asset('uploads/' . $nach->image) }}" alt="">
</div>
2020-09-24 10:04:46 +00:00
@endif
2020-09-28 10:56:58 +00:00
<p>{!! $nach->nachrichten !!}</p>
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
</div>
2020-09-24 10:04:46 +00:00
</div>
2020-09-28 10:56:58 +00:00
<!-- Post Tags / Share -->
<div class="row margin-top-50">
<div class="col-6">
<h6 class="font-family-tertiary font-small font-weight-normal uppercase">Tags</h6>
<ul class="list-inline-sm">
<li><a class="text-link-1" href="#">Clothing</a></li>
<li><a class="text-link-1" href="#">Lifestyle</a></li>
<li><a class="text-link-1" href="#">Travel</a></li>
</ul>
2020-09-24 10:04:46 +00:00
</div>
2020-09-28 10:56:58 +00:00
<div class="col-6 text-right">
<h6 class="font-family-tertiary font-small font-weight-normal uppercase">Share On</h6>
<ul class="list-inline">
<li><a href="#"><i class="fab fa-facebook-f"></i></a></li>
<li><a href="#"><i class="fab fa-twitter"></i></a></li>
<li><a href="#"><i class="fab fa-google-plus-g"></i></a></li>
</ul>
2020-09-24 10:04:46 +00:00
</div>
</div>
2020-09-28 10:56:58 +00:00
<!-- end Post Tags / Share -->
2020-09-24 10:04:46 +00:00
</div>
2020-09-28 10:56:58 +00:00
</div><!-- end row -->
</div><!-- end container -->
</div>
<!-- end Blog Post section -->
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
<!-- Comments section -->
<div class="section bg-grey-lighter">
<div class="container">
<div class="row">
<div class="col-12 col-sm-10 offset-sm-1 col-md-8 offset-md-2">
<h4 class="margin-bottom-50">Kommentare</h4>
<!-- Comment box 1 -->
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
@foreach($nach->comments as $comment)
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
<div class="comment-box">
<div class="comment-user-avatar">
<i class="fa fa-user"></i>
2020-09-24 10:04:46 +00:00
</div>
2020-09-28 10:56:58 +00:00
<div class="comment-content">
<span class="comment-time">{{$comment->created_at->diffForHumans()}}</span>
<h6 class="font-weight-normal">{{$comment->name}}</h6>
<p>{{$comment->comment}}</p>
</div>
</div>
@endforeach
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
</div>
</div><!-- end row -->
</div><!-- end container -->
</div>
<!-- end Comments section -->
2020-09-24 10:04:46 +00:00
2020-09-28 10:56:58 +00:00
<!-- Write Comment section -->
<div class="section border-top">
2020-09-24 10:04:46 +00:00
<div class="container">
<div class="row">
2020-09-28 10:56:58 +00:00
<div class="col-12 col-sm-10 offset-sm-1 col-md-8 offset-md-2">
<h4 class="margin-bottom-50 text-center">Write a Comment</h4>
<div class="text-right">
<form>
<div class="form-row">
<div class="col-12 col-sm-6">
<input type="text" name="name" placeholder="Name" required>
</div>
<div class="col-12 col-sm-6">
<input type="email" name="email" placeholder="E-Mail" required>
2020-09-24 10:04:46 +00:00
</div>
</div>
2020-09-28 10:56:58 +00:00
<textarea name="message" placeholder="Message"></textarea>
<button class="button button-lg button-grey" type="submit">Post Comment</button>
</form>
2020-09-24 10:04:46 +00:00
</div>
2020-09-28 10:56:58 +00:00
</div>
</div><!-- end row -->
</div><!-- end container -->
</div>
<!-- end Write Comment section -->
2020-09-24 10:04:46 +00:00
@stop