added hover and border to reports

This commit is contained in:
Denis Duliçi 2022-07-22 14:44:02 +03:00
parent 80dc7707ef
commit 50c4caff9d
3 changed files with 725 additions and 12117 deletions

12822
public/css/app.css vendored

File diff suppressed because it is too large Load Diff

View File

@ -6,10 +6,10 @@
@if ($row_total = array_sum($rows))
@if (isset($parent_id))
<tr class="collapse-sub collapse-sub-report" data-collapse="child-{{ $parent_id }}">
<tr class="hover:bg-gray-100 border-b collapse-sub collapse-sub-report" data-collapse="child-{{ $parent_id }}">
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" style="padding-left: {{ $tree_level * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
@else
<tr>
<tr class="hover:bg-gray-100 border-b">
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
@endif
@ -40,10 +40,10 @@
@if ($row_total = array_sum($parent_row_values))
@if (isset($parent_id))
<tr class="collapse-sub collapse-sub-report" data-collapse="child-{{ $parent_id }}">
<tr class="hover:bg-gray-100 border-b collapse-sub collapse-sub-report" data-collapse="child-{{ $parent_id }}">
<td class="{{ $class->column_name_width }} w-24 py-top text-left text-black-400" style="padding-left: {{ $tree_level * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">
@else
<tr>
<tr class="hover:bg-gray-100 border-b">
<td class="{{ $class->column_name_width }} w-24 py-top text-left text-black-400" title="{{ $class->row_names[$table_key][$id] }}">
@endif
@ -66,7 +66,7 @@
<!-- no categories part -->
@php $rows = $class->row_values[$table_key][$id]; @endphp
@if (($row_total = array_sum($rows)) && array_sum($parent_row_values) != array_sum($rows))
<tr class="collapse-sub collapse-sub-report" data-collapse="child-{{ $id }}">
<tr class="hover:bg-gray-100 border-b collapse-sub collapse-sub-report" data-collapse="child-{{ $id }}">
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" style="padding-left: {{ ($tree_level + 1) * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
@foreach($rows as $row)
<td class="{{ $class->column_value_width }} py-top ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs">{{ $class->has_money ? money($row, default_currency(), true) : $row }}</td>

View File

@ -9,11 +9,11 @@
<li
@class([
'mt-1' => $is_print,
'collapse-sub collapse-sub-report' => ! $is_print
'hover:bg-gray-100 collapse-sub collapse-sub-report' => ! $is_print
])
data-collapse="child-{{ $parent_id }}">
@else
<li>
<li class="hover:bg-gray-100">
@endif
<div
@class([
@ -56,11 +56,11 @@
<li
@class([
'mt-1' => $is_print,
'collapse-sub collapse-sub-report' => ! $is_print
'hover:bg-gray-100 collapse-sub collapse-sub-report' => ! $is_print
])
data-collapse="child-{{ $parent_id }}">
@else
<li>
<li class="hover:bg-gray-100">
@endif
<div style="display: flex; justify-content: space-between;">
<div style="display:flex; align-items: center; padding-left: {{ $tree_level * 20 }}px;">
@ -84,7 +84,7 @@
<li
@class([
'mt-1' => $is_print,
'collapse-sub collapse-sub-report' => ! $is_print
'hover:bg-gray-100 collapse-sub collapse-sub-report' => ! $is_print
])
data-collapse="child-{{ $id }}">
<div style="display: flex; justify-content: space-between;">