{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
{% set colorRgb = entity.instance.vestiging.colorRgb %}
{#<div class="container border border-1 border-success rounded pt-2 pb-2" style="--bs-success-rgb: {{colorRgb}};">#}
<div class="container border border-1 border-success rounded pt-2 pb-2" style="--bs-success-rgb: {{colorRgb}};"> <div class="row blokrij01">
<div id="record" class="col-5">
<table id="table11" class="table datagrid">
<thead>
<tr class="d-flex">
<th colspan="2" class="col-12">
<div class="">
<p class="ps-2 mb-1">Record</p>
</div>
</th>
</tr>
</thead>
<tbody>
{% for key, value in field.formattedValue['orderOverzicht'][0] %}
<tr class="d-flex">
<td class="col-3">
<div class="">
<p class="float-start mb-0" style="{{field.formattedValue['orderOverzicht'][3][key]}}">{{ key|capitalize|raw }}:</p>
</div>
</td>
<td class="col-9">
<div class="">
<p class="float-start mb-0" style="{{ field.formattedValue['orderOverzicht'][3][key] }}">{{ value|raw|nl2br }}</p>
</div>
</td>
{# <div class='col-1 float-start {{ field.formattedValue['orderOverzicht'][1][key] }}'>P</div> #}
</tr>
{#
<tr><td>
<div class="col-6 bg-secundary">
<p class="mb-0">{{ field.formattedValue['orderOverzicht'][2][key]|raw|nl2br }}</p>
</div>
</td>
</tr>
</tr>
#}
{% endfor %}
</tbody>
</table>
</div>
<div id="basisgegevens" class="col-7">
<table id="table12" class="table datagrid">
<thead>
<tr class="d-flex">
<th colspan="2" class="col-12 ">
<div class="">
<p class="ps-2 mb-1">Basisgegevens</p>
</div>
</th>
</tr>
</thead>
<tbody>
{% for key, value in field.formattedValue['orderBasisgegevens'][0] %}
{% set emphasisClass = 'text-secondary' %}
{% set emphasisStyle = '' %}
{% if (key == 'Opmerkingen') and (value|trim is not empty) %}
{% set emphasisClass = 'font-weight-bold' %}
{% set emphasisStyle = 'style="color:red;"' %}
{# set emphasisStyle = 'style="color:red;font-weight: bold;"' #}
{% endif %}
<tr class="d-flex">
<td class="col-3">
<div class="">
<p class="float-start mb-0 {# emphasisClass #} " {# emphasisStyle | raw #} style="{{field.formattedValue['orderBasisgegevens'][3][key]}}">{{ key | raw}}:</p>
</div>
</td>
<td class="col-9">
<div class="">
<p class="float-start mb-0" style="{{ field.formattedValue['orderBasisgegevens'][3][key] }}">{{ value|raw|nl2br }}</p>
</div>
</td>
{#<div class='col-1 float-start {{ field.formattedValue['orderBasisgegevens'][1][key] }}'>P</div>#}
</tr>
{#<tr>
<td>
<div class="col-6 ">
<p class="mb-0">{{ field.formattedValue['orderBasisgegevens'][2][key]|raw|nl2br }}bla</p>
</div>
</td>
</tr>
#}
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{#http://localhost/admin?crudAction=getUitgelichteAfbeelding&crudControllerFqcn=App%5CController%5CAdmin%5COrderCrudController&entityId=177&menuIndex=3&referrer=http://localhost/admin?crudAction%3Dindex%26crudControllerFqcn%3DApp%255CController%255CAdmin%255COrderCrudController%26entityFqcn%3DApp%255CEntity%255COr'> #}