@if (data_get($setUp, 'detail.state.' . $rowId))
@php
$detailView = (bool) data_get(
collect($row->__powergrid_rules)
->where('apply', true)
->last(),
'detailView',
);
@endphp
@if ($detailView)
@includeWhen(data_get($setUp, 'detail.state.' . $row->{$this->realPrimaryKey}),
$rulesValues['detailView'][0]['detailView'],
[
'id' => data_get($row, $this->realPrimaryKey),
'options' => array_merge(
data_get($setUp, 'detail.options'),
$rulesValues['detailView']['0']['options']),
]
)
@else
@includeWhen(data_get($setUp, 'detail.state.' . $row->{$this->realPrimaryKey}),
data_get($setUp, 'detail.view'),
[
'id' => data_get($row, $this->realPrimaryKey),
'options' => data_get($setUp, 'detail.options'),
]
)
@endif
|
@endif