Merge pull request #951 from batuhawk/master

Diffrent reports status tables updated
This commit is contained in:
Batuhan Baş 2019-11-28 11:20:41 +03:00 committed by GitHub
commit d380267269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 23 additions and 23 deletions

View File

@ -1,6 +1,6 @@
@php $chart = $class->getChart(); @endphp
<div class="card-body" id="report-chart">
<div id="report-chart" class="card-body pt-0">
{!! $chart->container() !!}
</div>

View File

@ -6,13 +6,13 @@
'class' => 'mb-0',
]) !!}
<div id="items" class="float-left box-filter">
{!! Form::select('year', $class->filters['years'], request('year', $class->year), ['class' => 'form-control form-control-sm table-header-search ml--2']) !!}
<div id="items" class="float-left">
{!! Form::select('year', $class->filters['years'], request('year', $class->year), ['class' => 'form-control form-control-sm table-header-search']) !!}
@php unset($class->filters['years']) @endphp
@foreach($class->filters as $name => $values)
{!! Form::select($name . '[]', $values, request($name), ['id' => 'filter-' . $name, 'class' => 'form-control form-control-sm table-header-search']) !!}
{!! Form::select($name . '[]', $values, request($name), ['id' => 'filter-' . $name, 'class' => 'form-control form-control-sm table-header-search']) !!}
@endforeach
{!! Form::button('<span class="fa fa-filter"></span> &nbsp;' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-secondary btn-sm card-buttons ml-1']) !!}
{!! Form::button('<span class="fa fa-filter"></span> &nbsp;' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-secondary btn-sm card-buttons']) !!}
</div>
{!! Form::close() !!}

View File

@ -1,7 +1,7 @@
@section('title', $class->report->name)
@section('new_button')
<span class="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>
</span>
<span>

View File

@ -1,4 +1,4 @@
<div class="table-responsive mt-4 overflow-auto">
<div class="table-responsive overflow-auto">
<table class="table align-items-center table-hover" id="tbl-report">
@include($class->views['table.header'])
<tbody>

View File

@ -1,4 +1,4 @@
<div class="table-responsive mt-4 overflow-auto">
<div class="table-responsive overflow-auto">
<table class="table align-items-center">
<thead class="border-top-style">
<tr>

View File

@ -1,11 +1,11 @@
<tfoot>
<tr>
<th style="width: 179px;">{{ trans_choice('general.totals', 1) }}</th>
@php $total_total = 0; @endphp
@foreach($class->totals[$table] as $date => $total)
@php $total_total += $total; @endphp
<th class="text-right">@money($total, setting('default.currency'), true)</th>
@endforeach
@php $total_total = 0; @endphp
@foreach($class->totals[$table] as $date => $total)
@php $total_total += $total; @endphp
<th class="text-right">@money($total, setting('default.currency'), true)</th>
@endforeach
<th class="text-right">@money($total_total, setting('default.currency'), true)</th>
</tr>
</tfoot>

View File

@ -1,12 +1,12 @@
<div class="table-responsive mt-4">
<div class="table-responsive overflow-auto">
<table class="table align-items-center">
<thead class="border-top-style">
<tr>
<th>&nbsp;</th>
<th style="width: 152px;"></th>
@foreach($class->dates as $date)
<th class="text-right pl-0">{{ $date }}</th>
<th class="text-right">{{ $date }}</th>
@endforeach
<th class="text-right pl-0">{{ trans_choice('general.totals', 1) }}</th>
<th class="text-right">{{ trans_choice('general.totals', 1) }}</th>
</tr>
</thead>
</table>

View File

@ -1,11 +1,11 @@
<tfoot>
<tr>
<th>{{ trans('reports.net') }}</th>
<th style="width: 179px;">{{ trans('reports.net') }}</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="text-right">@money($total, setting('default.currency'), true)</th>
@endforeach
<th class="text-right pl-0">@money($total_total, setting('default.currency'), true)</th>
<th class="text-right">@money($total_total, setting('default.currency'), true)</th>
</tr>
</tfoot>

View File

@ -29,7 +29,7 @@
</div>
</div>
<div class="card-body mt--4" id="cashflow">
<div class="card-body pt-0" id="cashflow">
<div class="chart">
{!! $cashflow->container() !!}
</div>

View File

@ -32,7 +32,7 @@
</div>
<div class="card-body" id="expense-category-doughnut">
<div class="chart dashboard-categories">
<div class="dashboard-categories">
{!! $donut_expenses->container() !!}
</div>
</div>

View File

@ -32,7 +32,7 @@
</div>
<div class="card-body" id="income-category-doughnut">
<div class="chart dashboard-categories">
<div class="dashboard-categories">
{!! $donut_incomes->container() !!}
</div>
</div>