dynamic report row
This commit is contained in:
parent
91637817ef
commit
1db51feeca
@ -49,7 +49,7 @@ abstract class Report
|
|||||||
|
|
||||||
public $indents = [
|
public $indents = [
|
||||||
'table_header' => '0px',
|
'table_header' => '0px',
|
||||||
'table_rows' => '0px',
|
'table_rows' => '24px',
|
||||||
];
|
];
|
||||||
|
|
||||||
public $chart = [
|
public $chart = [
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@php $row_total = 0; @endphp
|
@php $row_total = 0; @endphp
|
||||||
<tr class="rp-border-top-1">
|
<tr class="rp-border-top-1">
|
||||||
<td class="report-column">{{ $class->row_names[$table][$id] }}</td>
|
<td class="report-column" style="padding-left:{{ $class->indents['table_rows'] }}">{{ $class->row_names[$table][$id] }}</td>
|
||||||
@foreach($rows as $row)
|
@foreach($rows as $row)
|
||||||
@php $row_total += $row; @endphp
|
@php $row_total += $row; @endphp
|
||||||
<td class="report-column text-right px-0">@money($row, setting('default.currency'), true)</td>
|
<td class="report-column text-right px-0">@money($row, setting('default.currency'), true)</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user