This commit is contained in:
Denis Duliçi 2022-07-22 00:30:51 +03:00
parent 323d1571f1
commit c63f082ef2

View File

@ -9,7 +9,7 @@
<li <li
@class([ @class([
'mt-1' => $is_print, 'mt-1' => $is_print,
'collapse-sub collapse-sub-report' => !$is_print 'collapse-sub collapse-sub-report' => ! $is_print
]) ])
data-collapse="child-{{ $parent_id }}"> data-collapse="child-{{ $parent_id }}">
@else @else
@ -18,7 +18,7 @@
<div <div
@class([ @class([
'd-flex align-items-center justify-content-between' => $is_print, 'd-flex align-items-center justify-content-between' => $is_print,
'flex justify-between border-0 m-0 p-0' => !$is_print 'flex justify-between border-0 m-0 p-0' => ! $is_print
]) ])
> >
@if (isset($parent_id)) @if (isset($parent_id))
@ -56,7 +56,7 @@
<li <li
@class([ @class([
'mt-1' => $is_print, 'mt-1' => $is_print,
'collapse-sub collapse-sub-report' => !$is_print 'collapse-sub collapse-sub-report' => ! $is_print
]) ])
data-collapse="child-{{ $parent_id }}"> data-collapse="child-{{ $parent_id }}">
@else @else
@ -65,7 +65,7 @@
<div style="display: flex; justify-content: space-between;"> <div style="display: flex; justify-content: space-between;">
<div style="display:flex; align-items: center; padding-left: {{ $tree_level * 20 }}px;"> <div style="display:flex; align-items: center; padding-left: {{ $tree_level * 20 }}px;">
<span>{{ $class->row_names[$table_key][$id] }}</span> <span>{{ $class->row_names[$table_key][$id] }}</span>
@if (!$is_print) @if (! $is_print)
@if (array_sum($parent_row_values) != array_sum($class->row_values[$table_key][$id])) @if (array_sum($parent_row_values) != array_sum($class->row_values[$table_key][$id]))
<button type="button" class="align-text-top flex" node="child-{{ $id }}" onClick="toggleSub('child-{{ $id }}', event)"> <button type="button" class="align-text-top flex" node="child-{{ $id }}" onClick="toggleSub('child-{{ $id }}', event)">
<span class="material-icons transform rotate-90 transition-all text-lg leading-none">navigate_next</span> <span class="material-icons transform rotate-90 transition-all text-lg leading-none">navigate_next</span>
@ -84,7 +84,7 @@
<li <li
@class([ @class([
'mt-1' => $is_print, 'mt-1' => $is_print,
'collapse-sub collapse-sub-report' => !$is_print 'collapse-sub collapse-sub-report' => ! $is_print
]) ])
data-collapse="child-{{ $id }}"> data-collapse="child-{{ $id }}">
<div style="display: flex; justify-content: space-between;"> <div style="display: flex; justify-content: space-between;">