diff --git a/app/View/Ui/BooleanDisplay.php b/app/View/Ui/BooleanDisplay.php new file mode 100644 index 00000000..47043109 --- /dev/null +++ b/app/View/Ui/BooleanDisplay.php @@ -0,0 +1,40 @@ +value ? 'text-green-800 group-[.dark]:text-green-600' : 'text-red-800 group-[.dark]:text-red-600'; + } + + public function render() + { + return <<<'HTML' +
+
+ +
+
{{ $value ? $right : $wrong }}
+
+ HTML; + } +}