Files
timebank-cc-public/resources/views/livewire/calls/send-message-button.blade.php
Ronald Huynen 2547717edb Initial commit
2026-03-23 21:37:59 +01:00

20 lines
664 B
PHP

<div>
@php
$activeProfile = getActiveProfile();
$isOwnCall = $callable && $activeProfile &&
get_class($activeProfile) === get_class($callable) &&
$activeProfile->id === $callable->id;
@endphp
@if ($isOwnCall)
@livewire('calls.edit', ['call' => $call], key('edit-call-' . $call->id))
@elseif ($callable?->isRemoved())
<x-jetstream.button disabled wire:click="createConversation">
{{ __('Respond') }}
</x-jetstream.button>
@else
<x-jetstream.button wire:click="createConversation">
{{ __('Respond') }}
</x-jetstream.button>
@endif
</div>