Merge pull request #1192 from batuhawk/master

Dynamic report row
This commit is contained in:
Batuhan Baş 2020-01-28 12:43:39 +03:00 committed by GitHub
commit e6577b00f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ abstract class Report
public $indents = [
'table_header' => '0px',
'table_rows' => '0px',
'table_rows' => '24px',
];
public $chart = [

View File

@ -1,6 +1,6 @@
@php $row_total = 0; @endphp
<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)
@php $row_total += $row; @endphp
<td class="report-column text-right px-0">@money($row, setting('default.currency'), true)</td>