@extends('backEnd.master') @section('title') @lang('accounts.transaction') @endsection @section('mainContent') @push('css') @endpush @php @$setting = generalSetting(); if (!empty(@$setting->currency_symbol)) { @$currency = @$setting->currency_symbol; } else { @$currency = '$'; } @endphp

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'transaction-search', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
@if ($errors->has('type')) {{ @$errors->first('type') }} @endif
{{ Form::close() }}
@if (isset($add_incomes))

@lang('accounts.income_result')

@php $total_income = 0; @endphp @foreach ($add_incomes as $add_income) @php @$total_income = @$total_income + @$add_income->amount; @endphp @endforeach
@lang('common.date') @lang('common.name') @lang('accounts.payroll') @lang('accounts.payment_method') @lang('accounts.amount')
{{ dateConvert(@$add_income->date) }} {{ @$add_income->name }} {{ @$add_income->ACHead->head }} {{ @$add_income->paymentMethod->method }} @if (@$add_income->payment_method_id == 3) ({{ @$add_income->account->bank_name }}) @endif {{ @$add_income->amount }}
@lang('accounts.grand_total'): {{ currency_format($total_income) }}
@endif @if (isset($add_expenses))

@lang('accounts.expense_result')

@php $total_expense = 0; @endphp @foreach ($add_expenses as $add_expense) @php @$total_expense = @$total_expense + @$add_expense->amount; @endphp @endforeach
@lang('common.date') @lang('common.name') @lang('accounts.expense_head') @lang('accounts.payment_method') @lang('accounts.amount')
{{ dateConvert(@$add_expense->date) }} {{ @$add_expense->name }} {{ @$add_expense->ACHead->head }} {{ @$add_expense->paymentMethod->method }} @if (@$add_expense->payment_method_id == 3) ({{ @$add_expense->account->bank_name }}) @endif {{ currency_format(@$add_expense->amount) }}
@lang('accounts.grand_total'): {{ currency_format($total_expense) }}
@endif
@endsection @include('backEnd.partials.data_table_js', ['i' => true]) @include('backEnd.partials.date_range_picker_css_js')