diff --git a/app/Http/Transformers/CategoriesTransformer.php b/app/Http/Transformers/CategoriesTransformer.php index d10c2ee4c3..a07d8b345c 100644 --- a/app/Http/Transformers/CategoriesTransformer.php +++ b/app/Http/Transformers/CategoriesTransformer.php @@ -28,6 +28,7 @@ class CategoriesTransformer 'name' => e($category->name), 'image' => ($category->image) ? Storage::disk('public')->url('categories/'.e($category->image)) : null, 'category_type' => ucwords(e($category->category_type)), + 'has_eula' => ($category->getEula() ? true : false), 'eula' => ($category->getEula()), 'checkin_email' => ($category->checkin_email =='1'), 'require_acceptance' => ($category->require_acceptance == '1'),