improved reports layout
This commit is contained in:
		@@ -1,11 +1,11 @@
 | 
			
		||||
<tfoot>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <th class="long-texts report-column">{{ trans_choice('general.totals', 1) }}</th>
 | 
			
		||||
        <th class="report-column">{{ trans_choice('general.totals', 1) }}</th>
 | 
			
		||||
        @php $total_total = 0; @endphp
 | 
			
		||||
        @foreach($class->totals[$table] as $total)
 | 
			
		||||
            @php $total_total += $total; @endphp
 | 
			
		||||
            <th class="long-texts report-column text-right">@money($total, setting('default.currency'), true)</th>
 | 
			
		||||
            <th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        <th class="long-texts report-column text-right">@money($total_total, setting('default.currency'), true)</th>
 | 
			
		||||
        <th class="report-column text-right">@money($total_total, setting('default.currency'), true)</th>
 | 
			
		||||
    </tr>
 | 
			
		||||
</tfoot>
 | 
			
		||||
 
 | 
			
		||||
@@ -3,10 +3,10 @@
 | 
			
		||||
        @if ($table == 'default')
 | 
			
		||||
            <th>{{ $class->groups[$class->report->group] }}</th>
 | 
			
		||||
        @else
 | 
			
		||||
            <th class="text-right">{{ $table }}</th>
 | 
			
		||||
            <th>{{ $table }}</th>
 | 
			
		||||
        @endif
 | 
			
		||||
        @foreach($class->dates as $date)
 | 
			
		||||
            <th class="text-right">{{ $date }}</th>
 | 
			
		||||
            <th class="text-right px-0">{{ $date }}</th>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        <th class="text-right">{{ trans_choice('general.totals', 1) }}</th>
 | 
			
		||||
    </tr>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,9 @@
 | 
			
		||||
@php $row_total = 0; @endphp
 | 
			
		||||
<tr>
 | 
			
		||||
    <td class="long-texts report-column">{{ $class->getTableRowList()[$id] }}</td>
 | 
			
		||||
    <td class="report-column">{{ $class->getTableRowList()[$id] }}</td>
 | 
			
		||||
    @foreach($items as $item)
 | 
			
		||||
        @php $row_total += $item; @endphp
 | 
			
		||||
        <td class="long-texts report-column text-right">@money($item, setting('default.currency'), true)</td>
 | 
			
		||||
        <td class="report-column text-right px-0">@money($item, setting('default.currency'), true)</td>
 | 
			
		||||
    @endforeach
 | 
			
		||||
    <td class="long-texts report-column text-right">@money($row_total, setting('default.currency'), true)</td>
 | 
			
		||||
    <td class="report-column text-right">@money($row_total, setting('default.currency'), true)</td>
 | 
			
		||||
</tr>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user