@if($updating)
@else
@if(
(
auth()->user()->can('Update all tickets')
|| (
auth()->user()->can('Update own tickets')
&& (
$ticket->owner_id === auth()->user()
|| $ticket->responsible_id === auth()->user()->id)
)
)
&& auth()->user()->can('change-status-tickets')
)
@endif
@endif