-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcc6107
commit 7ecf691
Showing
15 changed files
with
316 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html> | ||
@include('partials.admin.head') | ||
|
||
<body onload="window.print();" class="print-width"> | ||
@yield('content') | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<div class="box-body"> | ||
{!! $chart->render() !!} | ||
|
||
<hr> | ||
|
||
<div class="table table-responsive"> | ||
<table class="table table-bordered table-striped table-hover" id="tbl-report-expenses"> | ||
<thead> | ||
<tr> | ||
<th>{{ trans_choice('general.categories', 1) }}</th> | ||
@foreach($dates as $date) | ||
<th class="text-right">{{ $date }}</th> | ||
@endforeach | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@if ($expenses) | ||
@foreach($expenses as $category_id => $category) | ||
<tr> | ||
<td>{{ $categories[$category_id] }}</td> | ||
@foreach($category as $item) | ||
<td class="text-right">@money($item['amount'], $item['currency_code'], true)</td> | ||
@endforeach | ||
</tr> | ||
@endforeach | ||
@else | ||
<tr> | ||
<td colspan="4"> | ||
<h5 class="text-center">{{ trans('general.no_records') }}</h5> | ||
</td> | ||
</tr> | ||
@endif | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<th>{{ trans_choice('general.totals', 1) }}</th> | ||
@foreach($totals as $total) | ||
<th class="text-right">@money($total['amount'], $total['currency_code'], true)</th> | ||
@endforeach | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
@push('js') | ||
{!! Charts::assets() !!} | ||
@endpush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@extends('layouts.print') | ||
|
||
@section('title', trans('reports.summary.expense')) | ||
|
||
@section('content') | ||
@include('reports.expense_summary.body') | ||
@endsection |
66 changes: 66 additions & 0 deletions
66
resources/views/reports/income_expense_summary/body.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<div class="box-body"> | ||
{!! $chart->render() !!} | ||
|
||
<hr> | ||
|
||
<div class="table table-responsive"> | ||
<table class="table table-bordered table-striped table-hover" id="tbl-payments"> | ||
<thead> | ||
<tr> | ||
<th>{{ trans_choice('general.categories', 1) }}</th> | ||
@foreach($dates as $date) | ||
<th class="text-right">{{ $date }}</th> | ||
@endforeach | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@if ($compares) | ||
@foreach($compares as $type => $categories) | ||
@foreach($categories as $category_id => $category) | ||
<tr> | ||
@if($type == 'income') | ||
<td>{{ $income_categories[$category_id] }}</td> | ||
@else | ||
<td>{{ $expense_categories[$category_id] }}</td> | ||
@endif | ||
@foreach($category as $item) | ||
@if($type == 'income') | ||
<td class="text-right">@money($item['amount'], $item['currency_code'], true)</td> | ||
@else | ||
<td class="text-right">@money(-$item['amount'], $item['currency_code'], true)</td> | ||
@endif | ||
@endforeach | ||
</tr> | ||
@endforeach | ||
@endforeach | ||
@else | ||
<tr> | ||
<td colspan="13"> | ||
<h5 class="text-center">{{ trans('general.no_records') }}</h5> | ||
</td> | ||
</tr> | ||
@endif | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<th>{{ trans_choice('general.totals', 1) }}</th> | ||
@foreach($totals as $total) | ||
<th class="text-right"> | ||
@if($total['amount'] == 0) | ||
<span>@money($total['amount'], $total['currency_code'], true)</span> | ||
@elseif($total['amount'] > 0) | ||
<span class="text-green">@money($total['amount'], $total['currency_code'], true)</span> | ||
@else | ||
<span class="text-red">@money($total['amount'], $total['currency_code'], true)</span> | ||
@endif | ||
</th> | ||
@endforeach | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
@push('js') | ||
{!! Charts::assets() !!} | ||
@endpush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
resources/views/reports/income_expense_summary/print.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@extends('layouts.print') | ||
|
||
@section('title', trans('reports.summary.income_expense')) | ||
|
||
@section('content') | ||
@include('reports.income_expense_summary.body') | ||
@endsection |
Oops, something went wrong.