chevron styling when active collapse

This commit is contained in:
Burak Civan 2022-06-06 18:26:26 +03:00
parent 08604acdbb
commit bb579acd8a
5 changed files with 13 additions and 4 deletions

View File

@ -50,7 +50,7 @@
{{ $class->row_names[$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)">
<span class="material-icons transform transition-all text-lg leading-none">navigate_next</span>
<span class="material-icons transform rotate-90 transition-all text-lg leading-none">expand_more</span>
</button>
@endif
</td>

View File

@ -0,0 +1,9 @@
@foreach($class->tables as $table_key => $table_name)
@php $grand_total = array_sum($class->footer_totals[$table_key]); @endphp
<div class="w-full lg:w-6/12">
@include($class->views['summary.table.header'])
@include($class->views['summary.table.body'])
@include($class->views['summary.table.footer'])
</div>
@endforeach

View File

@ -52,7 +52,7 @@
<span>{{ $class->row_names[$table_key][$id] }}</span>
@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)">
<span class="material-icons transform 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>
</button>
@endif
</div>

View File

@ -81,7 +81,7 @@
node="child-{{ $category->id }}"
onClick="toggleSub('child-{{ $category->id }}', event)"
>
<span class="material-icons transform transition-all text-lg leading-none align-middle text-white">navigate_next</span>
<span class="material-icons transform rotate-90 transition-all text-lg leading-none align-middle text-white">chevron_right</span>
</button>
</x-tooltip>
</div>

View File

@ -18,7 +18,7 @@
node="child-{{ $sub_category->id }}"
onClick="toggleSub('child-{{ $sub_category->id }}', event)"
>
<span class="material-icons transform transition-all text-lg leading-none align-middle text-white">navigate_next</span>
<span class="material-icons transform rotate-90 transition-all text-lg leading-none align-middle text-white">chevron_right</span>
</button>
</x-tooltip>
</div>