From 0739af6e0cfc652c07b16ed4f5213b6768d8c084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20V=C3=B6lkl?= Date: Mon, 10 May 2021 08:53:59 +0200 Subject: [PATCH] news blade --- content/news.blade.php | 975 ++--------------------------------------- 1 file changed, 25 insertions(+), 950 deletions(-) diff --git a/content/news.blade.php b/content/news.blade.php index 55d18da..4f3af24 100644 --- a/content/news.blade.php +++ b/content/news.blade.php @@ -21,372 +21,51 @@
-
+
+ +
+
- @if ($nach->paid != 0 and (empty($nach->premium_until) or $nach->premium_until > date('Y-m-d')) and !\Session::get('premium_code')) -
-
- - -
- - @if($nach->created_at->diffInHours(date('Y-m-d H:i:s')) < 1) -
-
- {{ $nach->created_at->diffForHumans() }} veröffentlicht -
-
-
- @endif - - -

{{$nach->title}}

-
- -
- @if ($nach->user and $nach->user->public_author == 1) - - - {{ $nach->user->name }} - - {{date('d.m.Y H:i', strtotime($nach->created_at))}} - @else - {{date('d.m.Y H:i', strtotime($nach->created_at))}} - @endif -
- - @if ($nach->category) - -
-

{{ $nach->category->name}}

-
-
- @endif - - @if ($nach->image) - - @endif - -
- -
-
-
- - {!! \Str::limit($nach->nachrichten, 285, ' ...') !!} +
+ @if($nach->created_at->diffInHours(date('Y-m-d H:i:s')) < 1) +
+
+ {{ $nach->created_at->diffForHumans() }} veröffentlicht
- - @if ($nach->type_id == 2) -

-

{{ __('public.work-location') }}

-
{{ isset($nach->additional_fields['workplace']) ? \Str::limit($nach->additional_fields['workplace'], 30, ' ...') : '-'}} -
-

- -

-

{{ __('public.contact-data') }}

-
{!! isset($nach->additional_fields['contact_info']) ? \Str::limit($nach->additional_fields['contact_info'], 30, ' ...') : '-' !!} -
-

- @endif - -
-
- -
- -

{{ __('public.premium-content') }}

- - @if (!empty($nach->premium_until) and $nach->premium_until > date('Y-m-d')) - {{ __('public.article-requires-payment') }}mjn
-
- @endif - -

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

-
-

- Pay {{ $nach->paid }} sats -
- {{ __('public.use') }} {{ __('public.premium-pass') }} + @endif - @include('template.'.\Setting::get('template', 'default').'.content.includes.explain-lightning') + +

{{$nach->title}}

+ -
-

+
-
-
- - -
- -
-
-
+ {{date('d.m.Y H:i', strtotime($nach->created_at))}} +
- -
- - - - @if (env('APP_COMMENTS', false)) - + @if ($nach->image) + @endif +

+ {!! $nach->nachrichten !!} +

-
+ + +
+
- @else -
-
- - @if(\Session::get('premium_code') and $nach->paid != 0 and (empty($nach->premium_until) or $nach->premium_until > date('Y-m-d'))) -
Premium content
- @endif - -
- @if($nach->created_at->diffInHours(date('Y-m-d H:i:s')) < 1) -
-
- {{ $nach->created_at->diffForHumans() }} veröffentlicht -
-
-
- @endif - - -

{{$nach->title}}

-
- -
- @if ($nach->user and $nach->user->public_author == 1) - - - {{ $nach->user->name }} - {{date('d.m.Y H:i', strtotime($nach->created_at))}} - @else - {{date('d.m.Y H:i', strtotime($nach->created_at))}} - @endif -
- - @if ($nach->category) - -
-

{{ $nach->category->name}}

-
-
- @endif - - @if ($nach->image) - - @endif - - -

- {!! $nach->nachrichten !!} -

- - @if ($nach->type_id == 2) -

-

{{ __('public.work-location') }}

{{ isset($nach->additional_fields['workplace']) ? $nach->additional_fields['workplace'] : '-'}} -

- -

-

{{ __('public.contact-data') }}

{!! isset($nach->additional_fields['contact_info']) ? $nach->additional_fields['contact_info'] : '-' !!} -

- @endif - - @if($nach->type_id == 3) -
- -
- - @if($nach->show_total_paid_action == 1) - - @if ($nach->actions->count() > 1) - -
- - {{ __('public.vote-distribution') }} -
- @foreach ($nach->actions as $action) -
{{ !empty($nach->total_paid_actions()) ? round(($action->payments()->where('status', 1)->sum('amount') * 100) / $nach->total_paid_actions()) : 0 }}%
- - @endforeach -
-
- -
- @endif - @endif - - - - - - - @foreach ($nach->actions as $action) - -
- - {{ $action->description }} -
- - @if ($action->type == 2) -
- - @endif - - - -
- @endforeach -
- -
- @foreach ($nach->actions as $action) - - - @endforeach -
- @endif - - @if(sizeof($nach->files) > 0) -
-
{{ __('public.files-download') }}
-
- - - @foreach ($nach->files as $file) - - @endforeach -
- @endif - -
- - - - - - @if (env('APP_COMMENTS', false)) - - @endif - - - - - -
-
- @endif
@@ -400,12 +79,10 @@ - - - @if (env('APP_WRITE', false)) - - - @endif - @if (\Session::has('success_plan')) - - @endif - - - - @stop