@if ($property_exists)

@lang('pi.page.edit') ({{ $building->name }})

@else

@lang('pi.page.add') ({{ $building->name }})

@endif
@if ($property_exists)
@endif
@foreach ($pi_sections as $pi_section) @if (count($pi_section->piItems) > 0)

{{ $pi_section->name }}

@foreach ($pi_section->piItems as $pi_item) @php $custom_item_id = 'item_id.' . $pi_section->id . '.'. $pi_item->id; $custom_item_answer = 'item_answer.' . $pi_section->id . '.'. $pi_item->id; @endphp
@if ($pi_item->type == 'rating') @elseif ($pi_item->type == 'query') @else @endif
@endforeach
@endif @endforeach
@push('scripts') @endpush