@extends('layouts.app') @section('content')
{{ _lang('Income VS Expense Report') }}
{{ csrf_field() }}
@php $date_format = get_company_option('date_format','Y-m-d'); @endphp

{{ isset($account) ? _lang('Income VS Expense Report Of').' '.$acc->account_title : _lang('Income VS Expense Report') }}

{{ isset($date1) ? date($date_format, strtotime($date1)).' '._lang('to').' '.date($date_format, strtotime($date2)) : '------------- '._lang('to').' -------------' }}
@if(isset($report_data)) @php $currency = currency($acc->account_currency); $income_total = 0; $expense_total = 0; @endphp @foreach($report_data as $report) @php $income_total += $report->income_amount; $expense_total += $report->expense_amount; @endphp @endforeach @endif
{{ _lang('Income Date') }} {{ _lang('Income Type') }} {{ _lang('Amount') }} {{ _lang('Expense Date') }} {{ _lang('Expense Type') }} {{ _lang('Amount') }}
{{ date($date_format, strtotime($report->income_date)) }} {{ $report->income_type }} {{ decimalPlace($report->income_amount, $currency) }} {{ date($date_format, strtotime($report->expense_date)) }} {{ $report->expense_type }} {{ decimalPlace($report->expense_amount, $currency) }}
{{ _lang('Total Income') }} {{ $currency." ".decimalPlace($income_total) }} {{ _lang('Total Expense') }} {{ $currency." ".decimalPlace($expense_total) }}
@endsection @section('js-script') @endsection