saving wip
parent
adb806bc35
commit
783c7dfac7
|
@ -277,7 +277,7 @@
|
||||||
|
|
||||||
@if ($nach->category)
|
@if ($nach->category)
|
||||||
<a href="{{ route('category.get', [$nach->category->slug]) }}">
|
<a href="{{ route('category.get', [$nach->category->slug]) }}">
|
||||||
<div class="badge badge-primary">
|
<div class="badge badge-warning">
|
||||||
<p style="margin:3px;font-size:15px;">{{ $nach->category->name}}</p>
|
<p style="margin:3px;font-size:15px;">{{ $nach->category->name}}</p>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -156,46 +156,10 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@include('template.'.\Setting::get('template', 'default').'.content.includes.create-content')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@if (session()->has('success'))
|
|
||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-lg-8">
|
|
||||||
@if(is_array(session()->get('success')))
|
|
||||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
|
||||||
<h4 class="alert-heading">Nachricht wurde erfolgreich eingereicht!</h4>
|
|
||||||
Ihre Nachricht wurde erfolgreich an uns übermittelt und wir nach Prüfung hier veröffentlicht.
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
@else
|
|
||||||
{{ session()->get('success') }}
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if (session()->has('error'))
|
|
||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-lg-8">
|
|
||||||
@if(is_array(session()->get('error')))
|
|
||||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
|
||||||
<h4 class="alert-heading">Es ist ein Fehler aufgetreten!</h4>
|
|
||||||
Beim übermitteln Ihrer Nachricht ist ein Fehler aufgetreten. Der Admin wurde informiert.
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
@else
|
|
||||||
{{ session()->get('error') }}
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<div class="article-feed">
|
<div class="article-feed">
|
||||||
@foreach($nachrichten as $nach)
|
@foreach($nachrichten as $nach)
|
||||||
|
@ -203,167 +167,7 @@
|
||||||
<article class="newsentry" style="width: 100%;" data-slug="{{ $nach->category->slug }}/{{ $nach->slug }}">
|
<article class="newsentry" style="width: 100%;" data-slug="{{ $nach->category->slug }}/{{ $nach->slug }}">
|
||||||
|
|
||||||
|
|
||||||
@if ($nach->paid != 0 and (empty($nach->premium_until) or $nach->premium_until > date('Y-m-d')) and !\Session::get('premium_code'))
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<div class="card shadow-lg" id="news-{{$nach->id}}">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="card-body" style="padding-bottom: 0;">
|
|
||||||
|
|
||||||
@if($nach->created_at->diffInHours(date('Y-m-d H:i:s')) < 1)
|
|
||||||
<div class="progress" style="height: 30px;">
|
|
||||||
<div class="progress-bar progress-bar-striped progress-bar-animated bg-warning" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
|
|
||||||
<span style="color: black; font-size: 16px;">{{ $nach->created_at->diffForHumans() }} veröffentlicht</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<a href="{{ route('nachrichten.get', [$nach->category->slug, $nach->slug]) }}">
|
|
||||||
<h2 class="card-title">{{$nach->title}}</h2>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<h6 class="card-subtitle mb-2">
|
|
||||||
@if ($nach->user and $nach->user->public_author == 1)
|
|
||||||
<a class="text-dark" href="{{ route('author.get', [$nach->user->slug]) }}"">
|
|
||||||
<img src="{{ $nach->user->gravatar() }}?s=32&d=identicon&r=PG" width="32" class="rounded-circle">
|
|
||||||
{{ $nach->user->name }}
|
|
||||||
</a> - <span style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</span>
|
|
||||||
@else
|
|
||||||
<span style="font-weight: normal " class="text-dark"">{{date('d.m.Y H:i', strtotime($nach->created_at))}}</span>
|
|
||||||
@endif
|
|
||||||
</h6>
|
|
||||||
|
|
||||||
@if ($nach->category)
|
|
||||||
<a href="{{ route('category.get', [$nach->category->slug]) }}">
|
|
||||||
<div class="badge badge-primary">
|
|
||||||
<p style="margin:3px;font-size:15px;">{{ $nach->category->name}}</p>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if ($nach->image)
|
|
||||||
<img src="{{ asset('uploads/' . $nach->image) }}" class="img-responsive" style="max-width: 100%;margin-bottom: 20px; margin-top:20px; display: block;">
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card-body card-preview-{{ $nach->id }} pay-preview">
|
|
||||||
<div>
|
|
||||||
<div class="card-text" id="text_news_{{$nach->id}}">
|
|
||||||
<!-- Here comes the payment preview, tha is the first 200 words of the news content -->
|
|
||||||
{!! \Str::limit($nach->nachrichten, 285, ' ...') !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@if ($nach->type_id == 2)
|
|
||||||
<p class="card-text">
|
|
||||||
<p style="font-weight:600;">{{ __('public.work-location') }}</p>
|
|
||||||
<div id="text_news_workplace_{{$nach->id}}">{{ isset($nach->additional_fields['workplace']) ? \Str::limit($nach->additional_fields['workplace'], 30, ' ...') : '-'}}
|
|
||||||
</div>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p class="card-text">
|
|
||||||
<p style="font-weight:600;">{{ __('public.contact-data') }}</p>
|
|
||||||
<div id="text_news_contact_info_{{$nach->id}}">{!! isset($nach->additional_fields['contact_info']) ? \Str::limit($nach->additional_fields['contact_info'], 30, ' ...') : '-' !!}
|
|
||||||
</div>
|
|
||||||
</p>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<div id="box_action_{{ $nach->id }}"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card-body payment-request" id="payment-request-{{ $nach->id }}">
|
|
||||||
|
|
||||||
<h2 class="text-center"><i class="far fa-gem fa-2x" style="font-size: 20px;"></i> {{ __('public.premium-content') }}</h2>
|
|
||||||
|
|
||||||
@if (!empty($nach->premium_until) and $nach->premium_until > date('Y-m-d'))
|
|
||||||
<small class="text-center d-block">{{ __('public.article-requires-payment') }}mjn <div id="counter_{{ $nach->id }}" data-id="{{ $nach->id }}" data-date="{{ $nach->premium_until }}" class="counter-class">-</div></small>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<p class="text-center">To read the article
|
|
||||||
|
|
||||||
@if (!empty($nach->premium_until) and $nach->premium_until > date('Y-m-d'))
|
|
||||||
{{ __('public.now') }}now
|
|
||||||
@endif
|
|
||||||
{{ __('public.please-pay') }} {{ $nach->paid }} sats</p>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<p class="text-center">
|
|
||||||
<a href="#ln-invoice-{{ $nach->id }}" data-id="{{ $nach->id }}" class="btn btn-warning get-collapse-invoice"><i class="fas fa-bolt"></i> Pay {{ $nach->paid }} sats</a>
|
|
||||||
<br>
|
|
||||||
<a href="" class="howtopay" data-toggle="modal" data-target="#exampleModalCode">{{ __('public.use') }} <i class="fal fa-gem"></i> {{ __('public.premium-pass') }}</a>
|
|
||||||
|
|
||||||
@include('template.'.\Setting::get('template', 'default').'.content.includes.explain-lightning')
|
|
||||||
|
|
||||||
<br>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="row collapse" id="ln-invoice-{{ $nach->id }}">
|
|
||||||
<div class="col-sm-6 offset-sm-3">
|
|
||||||
<a class="pay-news pay-news-{{ $nach->id }}" data-id="{{$nach->id}}" style="cursor:pointer !important;"></a>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<div id="pay-news-title-{{ $nach->id }}"> </div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@if (env('APP_COMMENTS', false))
|
|
||||||
<div class="card-footer" id="comment_button_{{$nach->id}}">
|
|
||||||
|
|
||||||
@if(sizeof($nach->comments) > 0)
|
|
||||||
|
|
||||||
<a href="#" onclick="showComments(event, {{$nach->id}})"> <span class="badge badge-primary">{{sizeof($nach->comments)}}</span> {{ __('public.display-comments') }}{{ __('public.see-comments') }}</a>
|
|
||||||
@else
|
|
||||||
<i>{{ __('public.no-comments-yet') }}</i>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<button class="btn btn-primary btn-sm float-right" data-toggle="modal" data-target="#exampleModal2" onclick="setCommentId({{$nach->id}}),ga('send', 'event', 'Read Comments', 'Website', '{{$nach->title}}');">
|
|
||||||
<i class="fas fa-comment"></i> {{ __('public.comment') }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="display:none" id="comments_{{$nach->id}}">
|
|
||||||
<div class="card-footer bg-primary">
|
|
||||||
<a class="text-white"> <span class="badge badge-light">{{sizeof($nach->comments)}}</span> {{ __('public.no-comments-yet') }}</a>
|
|
||||||
<button class="btn btn-dark btn-sm float-right" data-toggle="modal" data-target="#exampleModal2" onclick="setCommentId({{$nach->id}}),ga('send', 'event', 'Create Comment', 'Modal for Comment Creation', '{{$nach->title}}');">
|
|
||||||
<i class="fas fa-comment"></i> {{ __('public.comment') }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<table>
|
|
||||||
@foreach($nach->comments as $comment)
|
|
||||||
<row>
|
|
||||||
<div class="card-footer">
|
|
||||||
<i class="fas fa-user" style="color: #007BFF"></i> {{$comment->name}}:
|
|
||||||
<!-- For now taking that out, time is wrong... -->
|
|
||||||
<span class="float-right" title="{{date('d.m.Y | H:i', strtotime($comment->created_at))}} Uhr">{{date('d.m.Y H:i', strtotime($comment->created_at))}} Uhr</span>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="card-body comment-text">
|
|
||||||
<p class="card-text">
|
|
||||||
{{$comment->comment}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</row>
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@else
|
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="card shadow-lg" id="news-{{$nach->id}}">
|
<div class="card shadow-lg" id="news-{{$nach->id}}">
|
||||||
|
|
||||||
|
@ -397,7 +201,7 @@
|
||||||
|
|
||||||
@if ($nach->category)
|
@if ($nach->category)
|
||||||
<a href="{{ route('category.get', [$nach->category->slug]) }}">
|
<a href="{{ route('category.get', [$nach->category->slug]) }}">
|
||||||
<div class="badge badge-primary">
|
<div class="badge badge-warning">
|
||||||
<p style="margin:3px;font-size:15px;">{{ $nach->category->name}}</p>
|
<p style="margin:3px;font-size:15px;">{{ $nach->category->name}}</p>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
@ -425,64 +229,7 @@
|
||||||
@if($nach->type_id == 3)
|
@if($nach->type_id == 3)
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
@if($nach->show_total_paid_action == 1)
|
|
||||||
|
|
||||||
@if ($nach->actions->count() > 1)
|
|
||||||
|
|
||||||
<div class="col-12">
|
|
||||||
|
|
||||||
<i class="text-center">{{ __('public.vote-distribution') }}</i>
|
|
||||||
<div class="progress">
|
|
||||||
@foreach ($nach->actions as $action)
|
|
||||||
<div class="progress-bar bg-{{ $action->color }}" role="progressbar" style="width: {{ !empty($nach->total_paid_actions()) ? round(($action->payments()->where('status', 1)->sum('amount') * 100) / $nach->total_paid_actions()) : 0 }}%" aria-valuenow="66" aria-valuemin="0" aria-valuemax="100" title="{{ $action->payments()->where('status', 1)->sum('amount') }} sats">{{ !empty($nach->total_paid_actions()) ? round(($action->payments()->where('status', 1)->sum('amount') * 100) / $nach->total_paid_actions()) : 0 }}% </div>
|
|
||||||
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@foreach ($nach->actions as $action)
|
|
||||||
|
|
||||||
<div class="col">
|
|
||||||
|
|
||||||
<small>{{ $action->description }}</small>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
@if ($action->type == 2)
|
|
||||||
<br>
|
|
||||||
<textarea class="form-control" id="message_action_{{ $action->id }}" rows="3" placeholder="Write here your message.."></textarea>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- @if($nach->show_total_paid_action == 1)
|
|
||||||
<br>
|
|
||||||
|
|
||||||
@if($action->type == 5)
|
|
||||||
|
|
||||||
<i class="text-center">Donation Goal: 10000 sats.</i>
|
|
||||||
|
|
||||||
<div class="progress">
|
|
||||||
<div class="progress-bar bg-{{ $action->color }}" role="progressbar" aria-valuenow="{{ $action->payments()->where('status', 1)->sum('amount') }}" aria-valuemin="0" aria-valuemax="1000">{{ $action->payments()->where('status', 1)->sum('amount') }} sats</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@else
|
|
||||||
<i class="text-center">Total paid: {{ $nach->actions->first()->payments()->where('status', 1)->sum('amount') }} sats</i>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@endif-->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@foreach ($nach->actions as $action)
|
@foreach ($nach->actions as $action)
|
||||||
|
@ -565,7 +312,6 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
<ul class="navbar-nav mr-auto">
|
<ul class="navbar-nav mr-auto">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{url('/')}}">STARTSEITE</a>
|
<a class="nav-link" href="{{url('/aktuelles')}}">AKTUELLES</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link dropdown-toggle" href="einrichtung.html" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="nav-link dropdown-toggle" href="einrichtung.html" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
@if ($nach->category)
|
@if ($nach->category)
|
||||||
<a href="{{ route('category.get', [$nach->category->slug]) }}">
|
<a href="{{ route('category.get', [$nach->category->slug]) }}">
|
||||||
<div class="badge badge-primary">
|
<div class="badge badge-warning">
|
||||||
<p style="margin:3px;font-size:15px;">{{ $nach->category->name}}</p>
|
<p style="margin:3px;font-size:15px;">{{ $nach->category->name}}</p>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue