Snapshot of main at 9f39a6e1e (2026-11-02)

This commit is contained in:
Ronald Huynen committed 2026-11-02 10:41:47 +01:00
commit 6ccf1792d7
2580 files changed
+1040202

No files matched your search

@@ -0,0 +1,30 @@
<div class="flex items-end ml-auto">
@php
$activeProfile = getActiveProfile();
$isOwnCall = $callable && $activeProfile &&
get_class($activeProfile) === get_class($callable) &&
$activeProfile->id === $callable->id;
$isDeleted = $call->trashed();
$isExpired = $call->till !== null && $call->till->isPast();
$isSuppressed = $call->is_suppressed;
$isPaused = $call->is_paused;
$callableRemoved = $callable?->isRemoved();
$unavailableReason = match(true) {
$isDeleted => __('This call has been deleted.'),
$isSuppressed => __('This call has been blocked.'),
$isPaused => __('This call is currently paused.'),
$isExpired => __('This call has expired.'),
$callableRemoved => __('This user is no longer available.'),
default => null,
};
@endphp
@if ($isOwnCall)
@livewire('calls.edit', ['call' => $call], key('edit-call-' . $call->id))
@elseif ($unavailableReason)
<p class="text-sm text-white/70 italic max-w-48 text-right">{{ $unavailableReason }}</p>
@else
<x-jetstream.button wire:click="createConversation">
{{ __('Respond') }}
</x-jetstream.button>
@endif
</div>