diff --git a/resources/views/dashboard/pages/edit-item.blade.php b/resources/views/dashboard/pages/edit-item.blade.php index 6f8c887..bac93bd 100644 --- a/resources/views/dashboard/pages/edit-item.blade.php +++ b/resources/views/dashboard/pages/edit-item.blade.php @@ -72,10 +72,15 @@ @endphp @endif - @if(gettype($select_title)) + @if(gettype($select_title) == 'boolean') + @php + $select_title = $select_title ? 'true' : 'false'; + @endphp + @endif + + @if(gettype($select_value) == 'boolean') @php $select_value = $select_value ? 1 : 0; - $select_title = $select_title ? 'true' : 'false'; @endphp @endif