{{-- Action buttons --}} @if (!$isAdminView)
@livewire('calls.create', key('calls-create-manage'))
@endif {{-- Search box --}}
@if ($search) @endif
{{ __('Search') }}
{{-- Filter dropdowns --}}
{{-- Status filter --}}
@if ($isAdminView) {{-- Callable type filter --}}
@endif {{-- Language filter --}} @if (count($availableLocales) > 1)
@foreach ($availableLocales as $lang) @endforeach
@endif
{{-- Bulk action buttons --}}
{{-- Print selection --}} {{ __('Print') }} {{ __('selection') }} @if ($statusFilter === 'deleted') @can('update calls') {{ __('Undelete') }} {{ __('selection') }} @endcan @else @can('delete calls') @if ($isAdminView) {{ __('Delete') }} {{ __('selection') }} @else {{ __('Delete') }} {{ __('selection') }} @endif @endcan @endif
{{-- Table --}}
@if ($isAdminView) {{-- ID --}} @endif {{-- Lang --}} @if ($isAdminView) @endif {{-- Tag --}} {{-- Description --}} {{-- Public --}} {{-- Expires --}} @forelse ($calls as $call) @php $dimClass = $call->trashed() ? 'opacity-50' : ''; @endphp @if ($isAdminView) @endif @if ($isAdminView) @endif {{-- Description --}} {{-- Public --}} @empty @endforelse
{{ __('ID') }} @if ($sortField === 'id') @endif
{{ __('Lang.') }} @if ($sortField === 'locale') @endif
{{ __('Profile') }} {{ __('Tag') }} {{ __('Description') }} {{ __('Public') }}
{{ __('Expires') }} @if ($sortField === 'till') @endif
{{ __('Actions') }}
{{ $call->id }} {{ $call->translations->pluck('locale')->implode(', ') ?: '-' }} @if ($call->callable)
{{ $call->callable->name }}
@else - @endif
@if ($call->tag) @php $tagContext = $call->tag->contexts->first(); $tagColor = $tagContext?->category?->relatedColor ?? 'gray'; $tagCategoryId = $tagContext?->category?->id; @endphp {{ $call->tag->translation?->name ?? $call->tag->name }} @else - @endif @php $desc = $call->translations->firstWhere('locale', app()->getLocale())?->content ?? $call->translations->firstWhere('locale', config('app.fallback_locale'))?->content ?? $call->translations->first()?->content; @endphp
{{ $desc ?? '-' }}
{{ $call->is_public ? __('Yes') : __('No') }} @if ($call->till)
{{ $call->till->translatedFormat('M j') }}
{{ $call->till->translatedFormat('Y') }}
@else - @endif
@if (!$call->trashed())
{{-- Pause / Publish / Blocked indicator --}} @if (!$isAdminView && $call->is_suppressed) @elseif ($isAdminView) {{-- Admin: toggle is_paused, never touch till --}} @can('publish calls') @if ($call->is_paused) @else @endif @endcan @elseif (!$call->is_paused && ($call->till === null || $call->till > now())) {{-- Non-admin: pause button sets is_paused = true --}} @can('unpublish calls') @endcan @else {{-- Non-admin: publish button (shown when paused or expired) --}} @can('publish calls') @endcan @endif @if ($isAdminView) {{-- Block / Unblock --}} @can('manage calls') @if ($call->is_suppressed) @else @endif @endcan @else {{-- Edit --}} @can('update calls') @endcan @endif {{-- View --}} {{-- Delete --}} @can('delete calls') @endcan
@else {{-- Deleted: View + Restore --}}
@can('update calls') @endcan
@endif
{{ __('No results found') }}
{{-- Pagination --}} @if ($calls->hasPages())
{{ __('per page') }}
{{ $calls->links('livewire.long-paginator') }}
@endif {{-- Inline Edit Modal --}} {{ trans_with_platform('Edit @PLATFORM_NAME@ call') }}
{{-- Tag picker --}} @error('editTagId')

{{ $message }}

@enderror {{-- Content --}} @php $contentMax = timebank_config('calls.content_max_input', 200); @endphp
@error('editContent')

{{ $message }}

@enderror
{{-- Description translations (only if the selected tag has other-language translations) --}} @if(!empty($this->editRemainingTagLocales) || !empty($editTranslationContents))
@foreach($editTranslationContents as $locale => $text)
@error('editTranslationContents.' . $locale)

{{ $message }}

@enderror
@endforeach @if(!empty($this->editRemainingTagLocales))

{{ __('Only languages the selected activity tag has been translated into can be selected.') }}

@foreach($this->editRemainingTagLocales as $locale) @endforeach {{ __('Add') }}
@endif
@endif {{-- Location --}}
@error('editCountry')

{{ $message }}

@enderror
{{-- Expiry date --}}
@php $tillMinDate = now()->addDay()->format('Y-m-d'); $callableType = ($editCall?->callable_type) ?? session('activeProfileType'); $tillMaxDays = ($callableType && $callableType !== \App\Models\User::class) ? timebank_config('calls.till_max_days_non_user') : timebank_config('calls.till_max_days'); $tillMaxDate = $tillMaxDays !== null ? now()->addDays($tillMaxDays)->format('Y-m-d') : null; @endphp
@error('editTill')

{{ $message }}

@enderror
{{-- Visibility --}}
@if ($editIsPublic)

{{ str_replace(':username', $editCall?->callable?->name ?? '', __('Heads up: this exposes your username (:username) and exchange location.')) }}

@endif
@can('delete calls') {{ __('Delete') }} @endcan
{{ __('Cancel') }} {{ __('Save') }}
{{-- Delete confirmation modal --}} {{ __('Delete Call') }}

{{ __('Are you sure you want to delete this call? You can undelete this call later.') }}

{{ __('Cancel') }} @can('delete calls') {{ __('Yes, delete') }} @endcan
{{-- Non-admin bulk delete confirmation modal --}} @if (!$isAdminView) {{ __('Delete selection?') }}

{{ trans_choice('Are you sure you want to delete :count call? This can always be undone later.|Are you sure you want to delete :count calls? This can always be undone later.', count($bulkSelected), ['count' => count($bulkSelected)]) }}

{{ __('Cancel') }} @can('delete calls') {{ trans_choice('Delete :count call|Delete :count calls', count($bulkSelected), ['count' => count($bulkSelected)]) }} @endcan
@endif {{-- Admin bulk delete confirmation modal --}} @if ($isAdminView) {{ __('Delete selection?') }}

{{ trans_choice('Delete :count call?|Delete :count calls?', count($bulkSelected), ['count' => count($bulkSelected)]) }}

{{ __('Do you have permission of :names to take this action?', ['names' => $adminDeleteCallableNames]) }}

{{ __('Cancel') }} @can('delete calls') {{ trans_choice('Delete :count call|Delete :count calls', count($bulkSelected), ['count' => count($bulkSelected)]) }} @endcan
@endif {{-- Per-row delete confirmation modal --}} {{ __('Delete Call') }}

{{ __('Are you sure you want to delete this call? You can undelete this call later.') }}

{{ __('Cancel') }} @can('delete calls') {{ __('Yes, delete') }} @endcan
{{-- Per-row restore confirmation modal --}} {{ __('Restore call') }}

{{ __('Are you sure you want to restore this call?') }}

{{ __('Cancel') }} {{ __('Yes, restore') }}
{{-- Admin pause/publish confirmation modal --}} @if ($isAdminView) {{ $adminActionType === 'pause' ? __('Pause call') : __('Publish call') }}

{{ $adminActionType === 'pause' ? __('Pause this call on behalf of :name?', ['name' => $adminActionCallableName]) : __('Publish this call on behalf of :name?', ['name' => $adminActionCallableName]) }}

{{ __('Do you have permission of :name to take this action?', ['name' => $adminActionCallableName]) }}

{{ __('Cancel') }} {{ $adminActionType === 'pause' ? __('Pause call') : __('Publish call') }}
@endif {{-- Bulk print modal --}} {{ __('Print selected calls') }}
{{-- Calls per page --}}

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

@foreach([1, 2, 4] as $option) @endforeach
{{-- Color --}}

{{ __('Color') }}

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

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