dynamic report row

This commit is contained in:
batuhanbas 2020-01-28 12:42:54 +03:00
parent 91637817ef
commit 1db51feeca
2 changed files with 2 additions and 2 deletions

View File

@ -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 = [

View File

@ -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>