{{ __('New post') }}
@if ($search) @endif
{{ __('Search') }}
@foreach ($this->postTypeOptions as $type) @endforeach
@foreach ($this->categories as $category) @endforeach
@foreach ($this->languages as $lang) @endforeach
@foreach ($this->publicationStatusOptions as $status) @endforeach
@livewire('posts.backup-restore', ['showBackupSelected' => true], key('backup-restore'))
{{ __('Print') }} {{ __('selection') }} @if ($publicationStatusFilter === 'deleted') @can('update posts') {{ __('Undelete') }} {{ __('selection') }} @endcan @else @can('delete posts') {{ __('Delete') }} {{ __('selection') }} @endcan @endif
{{-- Sortable Id column --}} {{-- Sortable Category column --}} {{-- Sortable Language column --}} {{-- Sortable Title column --}} {{-- Sortable Updated column --}} {{-- Sortable From column --}} {{-- Sortable Till column --}} @if ($publicationStatusFilter !== 'deleted') @elseif ($publicationStatusFilter === 'deleted') {{-- Sortable Deleted column --}} @endif @forelse ($posts as $post) @if ($post->translations->count() === 0) {{-- Do not show post without any translation --}} @else @foreach ($post->translations as $loop_index => $translation) @if ($publicationStatusFilter !== 'deleted') @php $rowMissingLocales = $principlesMissingLocalesByPost[$post->id] ?? []; @endphp @else @endif @endforeach @endif @empty @endforelse
{{ __('Id') }} @if ($sortField === 'id') @endif
{{ __('Category') }} @if ($sortField === 'category_id') @endif
{{ __('Lang.') }} @if ($sortField === 'locale') @endif
{{ __('Title') }} @if ($sortField === 'title') @endif
{{ __('Updated') }} @if ($sortField === 'updated_at') @endif
{{ __('From') }} @if ($sortField === 'from') @endif
{{ __('Till') }} @if ($sortField === 'till') @endif
{{ __('Actions') }}
{{ __('Deleted') }} @if ($sortField === 'deleted_at') @endif
{{ $post->id }} @if ($post->category) {{ $post->category->translation ? $post->category->translation->name : __('Untitled category') }} @else {{ __('No category') }} @endif {{ $translation->locale }}
@if ($post->is_locked) @endif
{{ $translation->title ?? __('No title') }}
@if ($translation->updated_by_user)
profile
@endif
{{ $translation->updated_at->translatedFormat('M j') }}
{{ $translation->updated_at->translatedFormat('Y') }}
{{ $translation->updated_at->translatedFormat('H:i') }}
@if ($translation->from)
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->from), config('app.timezone'))->translatedFormat('M j') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->from), config('app.timezone'))->translatedFormat('Y') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->from), config('app.timezone'))->translatedFormat('H:i') }}
@else - @endif
@if ($translation->till)
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->till), config('app.timezone'))->translatedFormat('M j') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->till), config('app.timezone'))->translatedFormat('Y') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->till), config('app.timezone'))->translatedFormat('H:i') }}
@else - @endif
@if (Auth::user()->can('publish posts') || Auth::user()->can('unpublish posts')) @if ($translation->from <= \Carbon\Carbon::now() && $translation->from !== null) @if ($translation->till > \Carbon\Carbon::now() || $translation->till === null) @if ($post->is_locked) @elsecan('unpublish posts') @endcan @else @can('publish posts') @if (!empty($rowMissingLocales)) @else @endif @endcan @endif @else @can('publish posts') @if (!empty($rowMissingLocales)) @else @endif @endcan @endif @endif {{-- publish posts || unpublish posts --}} @can('update posts') @if ($post->is_locked) @elseif ($post->poll && $post->poll->status !== 'draft') @else @endif @endcan @if ($post->poll && Gate::allows('access polls')) @endif @if ($translation->post) @php $viewUrl = $this->getPostViewUrl($translation->locale, $post->category?->type, $translation->post->id); @endphp @if ($viewUrl) @else @endif @else @endif
@if ($translation->deleted_at)
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->deleted_at), config('app.timezone'))->translatedFormat('M j') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->deleted_at), config('app.timezone'))->translatedFormat('Y') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->deleted_at), config('app.timezone'))->translatedFormat('H:i') }}
@else - @endif
{{ __('No results found') }}
@if($posts->hasPages())
{{ __('per page') }}
{{ $posts->links('livewire.long-paginator') }}
@endif {{ __('Start the publication') }} {{ __('Do you want to start the publication of this post?') }} {{ __('Cancel') }} {{ __('Ok') }} {{ __('Stop the publication') }} {{ __('Do you want to end the publication of this post?') }}
{{ __('You can always edit or start the publication again.') }}
{{ __('Cancel') }} {{ __('Ok') }}
@if ($postId) @if ($createTranslation) {{ __('Add translation') . ':' . ' ' . __('messages.' . $language) }} @else {{ __('Edit post') . ':' . ' ' . __('messages.' . $language) }} @endif @else {{ !$language ? __('Create new post') : __('Create new post') . ':' . ' ' . __('messages.' . $language) }} @endif
@if (!$localeIsLocked) @endif
@error('title')

{{ $message }}

@enderror
@error('post.slug')

{{ $message }}

@enderror
@error('post.excerpt')

{{ $message }}

@enderror
{!! \App\Helpers\StringHelper::sanitizeHtml($content) !!}
@error('content')

{{ $message }}

@enderror
@if ($image && $imagePreviewable) {{-- New upload preview --}} @elseif ($media) {{-- Existing post image --}} @elseif ($image && !$imagePreviewable) {{-- Not an image file type --}}
{{ __('Error') }}
@else {{-- No image --}}
{{ __('No image') }}
@endif
{{ __('Browse...') }}
@if ($image || $media)
{{ __('Delete photo') }}
@endif
@error('image')

{{ $message }}

@enderror
@error('mediaOwner')

{{ $message }}

@enderror
@if ($meetingShow)
@error('meetingVenue')

{{ $message }}

@enderror
@error('meetingAddress')

{{ $message }}

@enderror
@error('country')

{{ $message }}

@enderror @error('division')

{{ $message }}

@enderror @error('city')

{{ $message }}

@enderror
{{-- TODO LATER refactor to profile.select-profile and remove posts.select-organizer --}}
@livewire('amount', [ 'label' => __('Price'), 'maxLengthHoursInput' => timebank_config('maxLengthHoursInput.user'), 'hours' => $hours, 'minutes' => $minutes, 'amount' => $amount, ], key('amount-' . ($postId ?? 'new'))) @error('amount') @enderror
@foreach ($this->transactionTypes as $type) @endforeach @error('transactionTypeId') @enderror
@if($transactionTypeId == 1) {{-- 1 === 'work' --}}
@error('basedOnQuantity') @enderror
@endif
@endif @if (!$meetingShow)
@endif
@php if ($language) { $labelStart = __('Start of publication') . ' (' . __($language) . ')'; $labelEnd = __('End of publication') . ' (' . __($language) . ')'; } else { $labelStart = __('Start of publication'); $labelEnd = __('End of publication'); } @endphp @if (!$isPrinciplesPost || empty($principlesMissingLocales))
@if (!$isPrinciplesPost)
@endif
@endif
{{ __('Warning: post will be published immediately!') }}
@if ($isPrinciplesPost)

{{ __('Warning') }}: {{ __('Updating the platform principles will require all authenticated users to review and accept the new version before they can continue.') }}

{{ __('This action will affect all users who have previously accepted the principles. They will be redirected to the principles page and must accept the updated version.') }}

@if (!empty($principlesMissingLocales))

{{ __('Publication date cannot be set until all translations have been created. Missing:') }} {{ implode(', ', $principlesMissingLocales) }}

@endif
@endif
{{ __('Cancel') }} @if ($createTranslation === true) {{ $postId ? __('Add Translation') : __('Save') }} @else {{ $postId ? __('Update') : __('Save') }} @endif
{{ __('Print selected posts') }}

{{ __('Posts per page') }}

@foreach([1, 2, 4] as $option) @endforeach

{{ trans_choice(':count post selected|:count posts selected', count($bulkSelected), ['count' => count($bulkSelected)]) }}

{{ __('Cancel') }} {{ __('Generate PDF') }}