@props([ 'image' => config('bladewind.empty_state.image', '/vendor/bladewind/images/empty-state.svg'), 'heading' => '', 'button_label' => '', // button will not be displayed if no text is passed 'buttonLabel' => '', 'message' => '', // message to display // true or false. set to false if you want to fully control the content 'show_image' => config('bladewind.empty_state.show_image', true), 'showImage' => config('bladewind.empty_state.show_image', true), 'onclick' => '', 'class' => '', ]) @php // reset variables for Laravel 8 support $show_image = filter_var($show_image, FILTER_VALIDATE_BOOLEAN); $showImage = filter_var($showImage, FILTER_VALIDATE_BOOLEAN); if ($buttonLabel !== $button_label) $button_label = $buttonLabel; if (! $showImage) $show_image = $showImage; @endphp