cerebrate/templates/element/genericElements/SingleViews/Fields/booleanField.php

7 lines
157 B
PHP
Raw Normal View History

<?php
$value = Cake\Utility\Hash::extract($data, $field['path']);
echo sprintf(
'<i class="fas fa-%s"></i>',
empty($value[0]) ? 'times' : 'check'
);