{{-- 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 --}}
@if ($statusFilter === 'deleted') {{ __('Undelete') }} {{ __('selection') }} @else @if ($isAdminView) {{ __('Delete') }} {{ __('selection') }} @else {{ __('Delete') }} {{ __('selection') }} @endif @endif
{{-- Table --}}
@if ($isAdminView) {{-- ID --}} @endif {{-- Lang --}} @if ($isAdminView) @endif {{-- Tag --}} {{-- Description --}} {{-- Public --}} {{-- Expires --}} @forelse ($calls as $call) @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'; @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 --}} @if ($call->is_paused) @else @endif @elseif (!$call->is_paused && ($call->till === null || $call->till > now())) {{-- Non-admin: pause button sets is_paused = true --}} @else {{-- Non-admin: publish button (shown when paused or expired) --}} @endif @if ($isAdminView) {{-- Block / Unblock --}} @if ($call->is_suppressed) @else @endif @else {{-- Edit --}} @endif {{-- View --}}
@else {{-- Deleted: show only View button --}}
@endif
{{ __('No results found') }}
{{-- Pagination --}} @if ($calls->hasPages())
{{ __('per page') }}
{{ $calls->links('livewire.long-paginator') }}
@endif {{-- Inline Edit Modal --}} @if ($showEditModal && $editCall) {{ 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
{{-- 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
{{ __('Delete') }}
{{ __('Cancel') }} {{ __('Save') }}
@endif {{-- Delete confirmation modal --}} {{ __('Delete Call') }}

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

{{ __('Cancel') }} {{ __('Yes, delete') }}
{{-- 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') }} {{ trans_choice('Delete :count call|Delete :count calls', count($bulkSelected), ['count' => count($bulkSelected)]) }}
@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') }} {{ trans_choice('Delete :count call|Delete :count calls', count($bulkSelected), ['count' => count($bulkSelected)]) }}
@endif {{-- 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