Allow users to change field label and calling field label in template

Dear @texnixe,

I found your post about a similar topic. My code

<?php $page->blueprint()->field('data')['fields']['period']['label'] ?>

results in

Whoops\Exception\ErrorException thrown with message “Undefined index: fields”

and I don’t know what’s wrong. The blueprint excerpt:

sections:
	data:
    	type: fields
        fields:
        	period:
            	label: Period of Origin
            	type: text

Do you have an idea how I can make it work?

Besides, I wonder if it’s possible to let the user change a field’s label in the panel.