@props([ 'parentTicketId' => false, 'onTheClock' => false, 'style' => 'simple' //simple just the button, full witrh button text ])
@if ($onTheClock === false) @if($style=="full") {{ __("links.start_work") }} @endif @endif @if ($onTheClock !== false && $onTheClock["id"] == $parentTicketId) @if($style=="full") @if (is_array($onTheClock) == true) {!! sprintf(__("links.stop_work_started_at"), date(__("language.timeformat"), $onTheClock["since"])) !!} @else {!! sprintf(__("links.stop_work_started_at"), date(__("language.timeformat"), time())) !!} @endif @endif
@endif @if ($onTheClock !== false && $onTheClock["id"] != $parentTicketId) @if($style=="full") {{ __("text.timer_set_other_todo") }} @else @endif @endif