@include('form.custom-checkbox', [
                'name' => 'events[]',
                'value' => 'all',
                'label' => trans('settings.webhooks_events_all'),
                'checked' => old('events') ? in_array('all', old('events')) : (isset($webhook) ? $webhook->tracksEvent('all') : false),
            ])
        
        
            @foreach(\BookStack\Actions\ActivityType::all() as $activityType)
                
                    @include('form.custom-checkbox', [
                       'name' => 'events[]',
                       'value' => $activityType,
                       'label' => $activityType,
                       'checked' => old('events') ? in_array($activityType, old('events')) : (isset($webhook) ? $webhook->tracksEvent($activityType) : false),
                   ])
                
            @endforeach