@push('feeds') @endpush
@if(isset($filters['author'])) {{ __('Reset filtering') }} @endif @auth {{ __('Submit news articles') }} @if(auth()->check() && auth()->user()->lnbits['wallet_id'] ?? false) {{ __('Submit paid news article') }} @elseif(auth()->check()) {{ __('Setup LNBits for paid articles') }} @endif @endauth
@foreach($libraryItems as $libraryItem) @if($libraryItem->approved || $libraryItem->created_by === auth()->id() || auth()->user()?->hasRole('news-editor'))
@if($libraryItem->sats)
{{ number_format($libraryItem->sats, 0, ',', '.') }} {{ __('sats') }}
@endif
{{ $libraryItem->tags->pluck('name')->join(', ') }}

{{ $libraryItem->name }}

{{ strip_tags($libraryItem->excerpt) }}

{{ $libraryItem->lecturer->name }} {{ $libraryItem->lecturer->name }}
{{ $libraryItem->lecturer->name }}
@if($libraryItem->read_time) {{ $libraryItem->read_time }} {{ __('min read') }} @endif
@if($libraryItem->created_by === auth()->id() || auth()->user()?->hasRole('news-editor'))
@if($libraryItem->approved)
{{ __('approved') }}
@else
{{ __('not approved') }}
@endif
@if($libraryItem->approved && auth()->user()?->hasRole('news-editor') && !$libraryItem->nostr_status)
{{ __('Publish on Nostr') }}
@endif @if($libraryItem->approved && $libraryItem->nostr_status)
{{ __('nostr') }}
@endif
@if(!$libraryItem->approved && auth()->user()?->hasRole('news-editor')) {{ __('Approve') }} @endif
{{ __('Edit') }}
@endif
@endif @endforeach
{{-- FOOTER --}} @feature('nostr.groups') @push('modals') @endpush @endfeature