styling for monthly preview for report details
This commit is contained in:
parent
1dd4fca8f2
commit
d2f4d52c86
@ -270,6 +270,9 @@ abstract class Report
|
|||||||
case 'yearly':
|
case 'yearly':
|
||||||
$width = 'w-4/12 col-4';
|
$width = 'w-4/12 col-4';
|
||||||
break;
|
break;
|
||||||
|
case 'monthly':
|
||||||
|
$width = 'col-1';
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($width)) {
|
if (empty($width)) {
|
||||||
|
@ -283,7 +283,7 @@ html[dir='rtl'] .text-alignment-left {
|
|||||||
text-align: right !important;
|
text-align: right !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[dir='lte'] .text-alignment-right {
|
html[dir='ltr'] .text-alignment-right {
|
||||||
text-align: right !important;
|
text-align: right !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -681,6 +681,10 @@ html[dir='rtl'] .text-alignment-right {
|
|||||||
|
|
||||||
/*--Print--*/
|
/*--Print--*/
|
||||||
|
|
||||||
|
.col-1 {
|
||||||
|
width: 8.333333%;
|
||||||
|
}
|
||||||
|
|
||||||
.col-2 {
|
.col-2 {
|
||||||
width: 16.666667%;
|
width: 16.666667%;
|
||||||
}
|
}
|
||||||
|
@ -41,10 +41,10 @@
|
|||||||
@if ($row_total = array_sum($parent_row_values))
|
@if ($row_total = array_sum($parent_row_values))
|
||||||
@if (isset($parent_id))
|
@if (isset($parent_id))
|
||||||
<tr class="collapse-sub" data-collapse="child-{{ $parent_id }}">
|
<tr class="collapse-sub" 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] }}">
|
<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
|
@else
|
||||||
<tr>
|
<tr>
|
||||||
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" title="{{ $class->row_names[$table_key][$id] }}">
|
<td class="{{ $class->column_name_width }} w-24 py-top text-left text-black-400" title="{{ $class->row_names[$table_key][$id] }}">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
{{ $class->row_names[$table_key][$id] }}
|
{{ $class->row_names[$table_key][$id] }}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<table class="w-full rp-border-collapse">
|
<table class="w-full rp-border-collapse">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="{{ $class->column_name_width }} ltr:text-left rtl:text-right text-black-400 uppercase font-bold">
|
<td class="{{ $class->column_name_width }} w-24 ltr:text-left rtl:text-right text-black-400 uppercase font-bold">
|
||||||
{{ trans('reports.net_profit') }}
|
{{ trans('reports.net_profit') }}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<table class="w-full">
|
<table class="w-full">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="{{ $class->column_name_width }} print-alignment"> </th>
|
<th class="{{ $class->column_name_width }} w-24 print-alignment"> </th>
|
||||||
|
|
||||||
@foreach($class->dates as $date)
|
@foreach($class->dates as $date)
|
||||||
<th class="{{ $class->column_value_width }} ltr:text-right rtl:text-left text-purple font-medium text-xs uppercase print-alignment">
|
<th class="{{ $class->column_value_width }} ltr:text-right rtl:text-left text-purple font-medium text-xs uppercase print-alignment">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="{{ $class->column_name_width }} py-4 ltr:text-left rtl:text-right text-black-400 font-bold uppercase">
|
<td class="{{ $class->column_name_width }} w-24 py-4 ltr:text-left rtl:text-right text-black-400 font-bold uppercase">
|
||||||
{{ trans_choice('general.totals', 1) }}
|
{{ trans_choice('general.totals', 1) }}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<table class="w-full rp-border-collapse">
|
<table class="w-full rp-border-collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="{{ $class->column_name_width }} print-alignment"> </th>
|
<th class="{{ $class->column_name_width }} w-24 print-alignment"> </th>
|
||||||
|
|
||||||
@foreach($class->dates as $date)
|
@foreach($class->dates as $date)
|
||||||
<th class="{{ $class->column_value_width }} ltr:text-right rtl:text-left text-purple font-medium text-xs uppercase print-alignment">
|
<th class="{{ $class->column_value_width }} ltr:text-right rtl:text-left text-purple font-medium text-xs uppercase print-alignment">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="{{ $class->column_name_width }} py-4 ltr:text-left rtl:text-right text-black-400 font-bold uppercase">
|
<td class="{{ $class->column_name_width }} w-24 py-4 ltr:text-left rtl:text-right text-black-400 font-bold uppercase">
|
||||||
{{ trans('reports.net') }}
|
{{ trans('reports.net') }}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user