@if ($editTicketPermission == 'all'
|| ($editTicketPermission == 'added' && user()->id == $ticket->added_by)
|| ($editTicketPermission == 'owned' && (user()->id == $ticket->user_id || $ticket->agent_id == user()->id))
|| ($editTicketPermission == 'both' && (user()->id == $ticket->user_id || $ticket->agent_id == user()->id || $ticket->added_by == user()->id)))
@else
@lang('app.submit')
@endif
@if (!in_array('client', user_roles()))
@endif
@lang('app.cancel')