@extends('layouts.admin') @section('title', trans_choice('reports.summary.income_expense', 1)) @section('content')
{!! Form::open(['url' => 'reports/income-expense-summary', 'role' => 'form', 'method' => 'GET']) !!}
{!! Form::select('year', $years, request('year', Date::now()->year), ['class' => 'form-control input-filter input-sm', 'onchange' => 'this.form.submit()']) !!}
{!! Form::close() !!}

@foreach($dates as $date) @endforeach @if ($compares) @foreach($compares as $type => $categories) @foreach($categories as $category_id => $category) @if($type == 'income') @else @endif @foreach($category as $item) @if($type == 'income') @else @endif @endforeach @endforeach @endforeach @else @endif @foreach($totals as $total) @endforeach
{{ trans_choice('general.categories', 1) }}{{ $date }}
{{ $income_categories[$category_id] }}{{ $expense_categories[$category_id] }}@money($item['amount'], $item['currency_code'], true)@money(-$item['amount'], $item['currency_code'], true)
{{ trans('general.no_records') }}
{{ trans_choice('general.totals', 1) }} @if($total['amount'] == 0) @money($total['amount'], $total['currency_code'], true) @elseif($total['amount'] > 0) @money($total['amount'], $total['currency_code'], true) @else @money($total['amount'], $total['currency_code'], true) @endif
@endsection @section('js') @endsection @section('scripts') @endsection