From 6d20b03774d5880cd36fd0273f0bf35bf13db60c Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Tue, 14 Mar 2023 18:09:44 +0100 Subject: [PATCH] lnbits paid articles added --- .../livewire/news/article-overview.blade.php | 4 +- .../news/intern-article-view.blade.php | 526 +++++++++--------- 2 files changed, 261 insertions(+), 269 deletions(-) diff --git a/resources/views/livewire/news/article-overview.blade.php b/resources/views/livewire/news/article-overview.blade.php index e42991f9..9b35073f 100644 --- a/resources/views/livewire/news/article-overview.blade.php +++ b/resources/views/livewire/news/article-overview.blade.php @@ -8,11 +8,11 @@
-
+
-
+
@auth -
-
- -
-
-

{{ $libraryItem->tags->pluck('name')->join(', ') }}

-

{{ $libraryItem->name }}

-
-
-
-
-
-
- {{ $libraryItem->lecturer->name }} - {{ $libraryItem->lecturer->name }} -
-
-
-
-
{{ $libraryItem->lecturer->name }}
-
-
- - @if($libraryItem->read_time) - - {{ $libraryItem->read_time }} {{ __('min read') }} - @endif -
-
-
-
-
-
- -
-
-
- {{ $libraryItem->name }} -
-
- - - {{ $libraryItem->main_image_caption ?? $libraryItem->name }} -
-
-
-
-
-
-
- - {!! $libraryItem->subtitle !!} - -
-
-
-
- @if($libraryItem->type !== 'markdown_article' && str($libraryItem->value)->contains('http')) - @if($libraryItem->type === 'youtube_video') - - - {{ __('Open on Youtube') }} - - @else - - - {{ __('Open') }} - - @endif - @endif - @if($libraryItem->type === 'downloadable_file') - - - {{ __('Download') }} - - @endif - @if($libraryItem->type === 'podcast_episode') - - - {{ __('Listen') }} - - @endif - @if($libraryItem->type !== 'markdown_article') - - - {{ __('Share link') }} - - @else - - - {{ __('Share link') }} - - @endif -
- @if($libraryItem->type === 'youtube_video') -
- -
- @endif - - @if($libraryItem->type === 'markdown_article') - - {!! $libraryItem->value !!} - - @endif +
+
+ +
+
+
+
+
+

{{ $libraryItem->tags->pluck('name')->join(', ') }}

+

{{ $libraryItem->name }}

- - @if($libraryItem->sats && !$invoicePaid) -
-
-

- {{ __('You can read the full article if you paid with Lightning') }} -

-
-
-
-
- {{ $libraryItem->lecturer->name }} - {{ $libraryItem->lecturer->name }} -
-
-
-
-
{{ __('Receiver') }} - : {{ $libraryItem->lecturer->name }}
-
-
- -
-
-
+
+
+
+
+ {{ $libraryItem->lecturer->name }} + {{ $libraryItem->lecturer->name }} +
+
+
+
+
{{ $libraryItem->lecturer->name }}
+
+
+ + @if($libraryItem->read_time) + + {{ $libraryItem->read_time }} {{ __('min read') }} + @endif
- @if(!$invoice) -
- - - Pay with lightning - -
{{ __('already paid?') }}
-
- @else -
-
- {{ __('Click QR-Code to open your wallet') }} -
-
- - qrcode - -
-
- @endif - @if(!$invoice) - - @endif - @if($alreadyPaid) -
-
-
- - - -
-
- @if($checkThisPaymentHash) -
- @endif -
- @endif - @if($invoice) -
-
-
- -
-
- - - {{ __('Copy payment hash') }} - -
-
-

{{ __('As a guest, please save your payment hash so that you can unlock this article later. Unfortunately, we cannot save your purchase status permanently for guests. Please log in to use this feature.') }}

-
-
-
-
- @endif
- @else +
+
+
+
+ {{ $libraryItem->name }} +
+
+
+
+ +
+
+ + {!! $libraryItem->subtitle !!} + +
+
+
+ @if($libraryItem->type !== 'markdown_article' && str($libraryItem->value)->contains('http')) + @if($libraryItem->type === 'youtube_video') + + + {{ __('Open on Youtube') }} + + @else + + + {{ __('Open') }} + + @endif + @endif + @if($libraryItem->type === 'downloadable_file') + + + {{ __('Download') }} + + @endif + @if($libraryItem->type === 'podcast_episode') + + + {{ __('Listen') }} + + @endif + @if($libraryItem->type !== 'markdown_article') + + + {{ __('Share link') }} + + @else + + + {{ __('Share link') }} + + @endif +
- - {!! $libraryItem->value_to_be_paid !!} - - -
- @endif - -
-
- @if($libraryItem->lecturer->lightning_address || $libraryItem->lecturer->lnurl || $libraryItem->lecturer->node_id) -

value-4-value

-
- + @if($libraryItem->type === 'youtube_video') +
+
@endif + + @if($libraryItem->type === 'markdown_article') + + {!! $libraryItem->value !!} + + @endif +
+ + @if($libraryItem->sats && !$invoicePaid) +
+
+

+ {{ __('You can read the full article if you paid with Lightning') }} +

+
+
+
+
+ {{ $libraryItem->lecturer->name }} + {{ $libraryItem->lecturer->name }} +
+
+
+
+
{{ __('Receiver') }} + : {{ $libraryItem->lecturer->name }}
+
+
+ +
+
+
+
+ @if(!$invoice) +
+ + + Pay with lightning + +
{{ __('already paid?') }}
+
+ @else +
+
+ {{ __('Click QR-Code to open your wallet') }} +
+
+ + qrcode + +
+
+ @endif + @if(!$invoice) + + @endif + @if($alreadyPaid) +
+
+
+ + + +
+
+ @if($checkThisPaymentHash) +
+ @endif +
+ @endif + @if($invoice) +
+
+
+ +
+
+ + + {{ __('Copy payment hash') }} + +
+
+

{{ __('As a guest, please save your payment hash so that you can unlock this article later. Unfortunately, we cannot save your purchase status permanently for guests. Please log in to use this feature.') }}

+
+
+
+
+ @endif +
+
+ @else +
+ + + {!! $libraryItem->value_to_be_paid !!} + + +
+ @endif + +
+
+ @if($libraryItem->lecturer->lightning_address || $libraryItem->lecturer->lnurl || $libraryItem->lecturer->node_id) +

value-4-value

+
+ +
+ @endif +
+ +
-
+ {{-- FOOTER --}}