v2 first commit
This commit is contained in:
@@ -1,57 +0,0 @@
|
||||
<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'], setting('general.default_currency'), 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'], setting('general.default_currency'), 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'], setting('general.default_currency'), 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>
|
||||
13
resources/views/reports/tax_summary/content/header.blade.php
Normal file
13
resources/views/reports/tax_summary/content/header.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<div class="table-responsive mt-4">
|
||||
<table class="table align-items-center">
|
||||
<thead class="border-top-style">
|
||||
<tr>
|
||||
<th> </th>
|
||||
@foreach($class->dates as $date)
|
||||
<th class="text-right pl-0">{{ $date }}</th>
|
||||
@endforeach
|
||||
<th class="text-right pl-0">{{ trans_choice('general.totals', 1) }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
@@ -1,25 +0,0 @@
|
||||
@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 with-border">
|
||||
{!! Form::open(['url' => 'reports/tax-summary', 'role' => 'form', 'method' => 'GET']) !!}
|
||||
<div id="items" class="pull-left" style="margin-left: 5px">
|
||||
{!! Form::select('year', $years, request('year', $this_year), ['class' => 'form-control input-filter input-sm']) !!}
|
||||
{!! Form::select('status', $statuses, request('status'), ['class' => 'form-control input-filter input-sm']) !!}
|
||||
{!! Form::button('<span class="fa fa-filter"></span> ' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-sm btn-default btn-filter']) !!}
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
@include('reports.tax_summary.body')
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
@endsection
|
||||
@@ -1,15 +0,0 @@
|
||||
@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
|
||||
11
resources/views/reports/tax_summary/table/footer.blade.php
Normal file
11
resources/views/reports/tax_summary/table/footer.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ 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>
|
||||
@endforeach
|
||||
<th class="text-right pl-0">@money($total_total, setting('default.currency'), true)</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@@ -0,0 +1,5 @@
|
||||
<thead class="border-top-style">
|
||||
<tr>
|
||||
<th colspan="{{ count($class->dates) + 2 }}">{{ $table }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
Reference in New Issue
Block a user