<?php
$template = json_decode(file_get_contents(resource_path('views/app/dq-templates/' . $template)));
$loadedData = $data;
if(!$loadedData || !@$loadedData->lines || !@$loadedData->dataMap) {
    $loadedData = $template;
}
?>
<div class="dq-edit-container">
    <div class="dq-definition d-none"><?= htmlentities(json_encode($loadedData->lines)) ?></div>
    <div class="dq-data-map d-none"><?= json_encode($loadedData->dataMap) ?></div>
    @foreach ($loadedData->lines as $line)
        @include('app.dq-engine.line', compact('line'))
    @endforeach
</div>




