{{ __('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'))
@if ($publicationStatusFilter === 'deleted') {{ __('Undelete') }} {{ __('selection') }} @else {{ __('Delete') }} {{ __('selection') }} @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') @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 }}
{{ $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))->translatedFormat('M j') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->from))->translatedFormat('Y') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->from))->translatedFormat('H:i') }}
@else - @endif
@if ($translation->till)
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->till))->translatedFormat('M j') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->till))->translatedFormat('Y') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->till))->translatedFormat('H:i') }}
@else - @endif
@if ($translation->from <= \Carbon\Carbon::now() && $translation->from !== null) @if ($translation->till > \Carbon\Carbon::now() || $translation->till === null) @else @endif @else @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))->translatedFormat('M j') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->deleted_at))->translatedFormat('Y') }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($translation->deleted_at))->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
{{ __('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.') }}

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