tax summary
This commit is contained in:
57
resources/views/reports/tax_summary/body.blade.php
Normal file
57
resources/views/reports/tax_summary/body.blade.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<div class="box-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 120px;"> </th>
|
||||
@foreach($dates as $date)
|
||||
<th class="text-right">{{ $date }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
@if ($taxes)
|
||||
@foreach($taxes as $tax_name)
|
||||
<table class="table table-hover" style="margin-top: 40px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 120px;" colspan="13">{{ $tax_name }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 120px;">{{ trans_choice('general.incomes', 2) }}</td>
|
||||
@foreach($incomes[$tax_name] as $tax_date)
|
||||
<td class="text-right">@money($tax_date['amount'], $tax_date['currency_code'], true)</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 120px;">{{ trans_choice('general.expenses', 2) }}</td>
|
||||
@foreach($expenses[$tax_name] as $tax_date)
|
||||
<td class="text-right">@money($tax_date['amount'], $tax_date['currency_code'], true)</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th style="width: 120px;">{{ trans('reports.net') }}</th>
|
||||
@foreach($totals[$tax_name] as $tax_date)
|
||||
<th class="text-right">@money($tax_date['amount'], $tax_date['currency_code'], true)</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@endforeach
|
||||
@else
|
||||
<table class="table table-bordered table-striped table-hover" style="margin-top: 40px">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="13">
|
||||
<h5 class="text-center">{{ trans('general.no_records') }}</h5>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
28
resources/views/reports/tax_summary/index.blade.php
Normal file
28
resources/views/reports/tax_summary/index.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
@extends('layouts.admin')
|
||||
|
||||
@section('title', trans('reports.summary.tax'))
|
||||
|
||||
@section('new_button')
|
||||
<span class="new-button"><a href="{{ url('reports/tax-summary') }}?print=1&status={{ request('status') }}&year={{ request('year', $this_year) }}" target="_blank" class="btn btn-success btn-sm"><span class="fa fa-print"></span> {{ trans('general.print') }}</a></span>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<!-- Default box -->
|
||||
<div class="box box-success">
|
||||
<div class="box-header">
|
||||
<div class="pull-left" style="margin-left: 5px">
|
||||
<a href="{{ url('reports/tax-summary') }}?year={{ request('year', $this_year) }}"><span class="badge @if (request('status') == '') bg-green @else bg-default @endif">{{ trans('general.all') }}</span></a>
|
||||
<a href="{{ url('reports/tax-summary') }}?status=paid&year={{ request('year', $this_year) }}"><span class="badge @if (request('status') == 'paid') bg-green @else bg-default @endif">{{ trans('invoices.paid') }}</span></a>
|
||||
<a href="{{ url('reports/tax-summary') }}?status=upcoming&year={{ request('year', $this_year) }}"><span class="badge @if (request('status') == 'upcoming') bg-green @else bg-default @endif">{{ trans('dashboard.receivables') }}</span></a>
|
||||
</div>
|
||||
{!! Form::open(['url' => 'reports/tax-summary', 'role' => 'form', 'method' => 'GET']) !!}
|
||||
<div class="pull-right">
|
||||
{!! Form::select('year', $years, request('year', $this_year), ['class' => 'form-control input-filter input-sm', 'onchange' => 'this.form.submit()']) !!}
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
@include('reports.tax_summary.body')
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
@endsection
|
||||
15
resources/views/reports/tax_summary/print.blade.php
Normal file
15
resources/views/reports/tax_summary/print.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@extends('layouts.print')
|
||||
|
||||
@section('title', trans('reports.summary.tax'))
|
||||
|
||||
@section('content')
|
||||
<div class="box-header">
|
||||
<h2>{{ trans('reports.summary.tax') }}</h2>
|
||||
<div class="text-muted">
|
||||
{{ setting('general.company_name') }}
|
||||
<br/>
|
||||
{{ Date::parse(request('year') . '-1-1')->format($date_format) }} - {{ Date::parse(request('year') . '-12-31')->format($date_format) }}
|
||||
</div>
|
||||
</div>
|
||||
@include('reports.tax_summary.body')
|
||||
@endsection
|
||||
Reference in New Issue
Block a user