report alignment and big test values fixed

This commit is contained in:
batuhanbas
2020-01-13 15:55:28 +03:00
parent 22ee37622e
commit e1bdcd0964
12 changed files with 57 additions and 46 deletions

View File

@@ -2,9 +2,13 @@
@section('new_button')
<span>
<a href="{{ url($class->getUrl('print')) }}" target="_blank" class="btn btn-white btn-sm"><span class="fa fa-print"></span> &nbsp;{{ trans('general.print') }}</a>
<a href="{{ url($class->getUrl('print')) }}" target="_blank" class="btn btn-white btn-sm">
<span class="fa fa-print"></span> &nbsp;{{ trans('general.print') }}
</a>
</span>
<span>
<a href="{{ url($class->getUrl('export')) }}" class="btn btn-white btn-sm"><span class="fa fa-upload"></span> &nbsp;{{ trans('general.export') }}</a>
<a href="{{ url($class->getUrl('export')) }}" class="btn btn-white btn-sm">
<span class="fa fa-upload"></span> &nbsp;{{ trans('general.export') }}
</a>
</span>
@endsection

View File

@@ -1,5 +1,5 @@
<div class="table-responsive overflow-auto">
<table class="table align-items-center table-hover">
<div class="table-responsive overflow-auto mt-5">
<table class="table align-items-center">
@include($class->views['table.header'])
<tbody>
@if (!empty($class->rows[$table]))

View File

@@ -1,11 +1,11 @@
<tfoot>
<tr>
<th>{{ trans_choice('general.totals', 1) }}</th>
<th class="long-texts 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="text-right pl-0">@money($total, setting('default.currency'), true)</th>
<th class="long-texts report-column">@money($total, setting('default.currency'), true)</th>
@endforeach
<th class="text-right pl-0">@money($total_total, setting('default.currency'), true)</th>
<th class="long-texts report-column">@money($total_total, setting('default.currency'), true)</th>
</tr>
</tfoot>

View File

@@ -1,9 +1,9 @@
@php $row_total = 0; @endphp
<tr>
<td>{{ $class->getTableRowList()[$id] }}</td>
<td class="long-texts report-column">{{ $class->getTableRowList()[$id] }}</td>
@foreach($items as $item)
@php $row_total += $item; @endphp
<td class="text-right pl-0">@money($item, setting('default.currency'), true)</td>
<td class="long-texts report-column">@money($item, setting('default.currency'), true)</td>
@endforeach
<th class="text-right pl-0">@money($row_total, setting('default.currency'), true)</th>
<td class="long-texts report-column">@money($row_total, setting('default.currency'), true)</td>
</tr>