@use('App\Services\Date') @extends('companyuser::layouts.master') @section('title', __('accounting::reconciliations.add')) @section('extra-styles') {{-- --}} @endsection @section('breadcrumb') @endsection @section('content')

@lang('accounting::reconciliations.system_total')

{{ $data['closingBalance']['balanceAfterTransaction'] }}

{{ $data['currency'] }}

@lang('accounting::reconciliations.audit_total')

{{request('auditTotal') ?? $data['openingBalance']['balanceAfterTransaction']}}

{{ $data['currency'] }}

@lang('accounting::reconciliations.difference')

{{ request('differenceValue') ?? $data['closingBalance']['balanceAfterTransaction'] - $data['openingBalance']['balanceAfterTransaction']}}

@include('companyuser::errors.lists') @include('companyuser::errors.all')

{{ $data['account']->code }} - {{ $data['account']->name }}

{{$data['companyName']}}

@lang('from') {{$data['dates']['from']}} @lang('to') {{$data['dates']['to']}}

@csrf
@foreach($data['journalRecords'] as $journalRecord) @endforeach
@lang('reports::reports.date') @lang('accounting::reconciliations.type') @lang('reports::reports.account_statement.transaction') @lang('reports::reports.description') @lang('reports::reports.debit') @lang('reports::reports.credit') @lang('accounting::reconciliations.balance')
{{ $data['openingBalance']['date'] }} @lang('reports::reports.opening_balance') {{ number_format($data['openingBalance']['debit'],2) }} {{ number_format($data['openingBalance']['credit'],2) }} {{ $data['openingBalance']['balanceAfterTransaction'] < 0 ? '(' . number_format(abs($data['openingBalance']['balanceAfterTransaction']) , 2) . ')' : number_format($data['openingBalance']['balanceAfterTransaction'],2) }}
{{ $journalRecord['journalEntryDate'] }} {{ $journalRecord['transactionType'] }} {{ $journalRecord['journalEntryCode'] }} {{ $journalRecord['description'] }} @if($journalRecord['debit']) @if($data['account']->default_transaction_type==\Modules\Accounting\Enums\AccountTypesEnum::DEBIT) @else @endif @endif {{ $journalRecord['debit'] }} @if($journalRecord['credit']) @if($data['account']->default_transaction_type==\Modules\Accounting\Enums\AccountTypesEnum::CREDIT) @else @endif @endif {{ $journalRecord['credit'] }} {{ $journalRecord['balanceAfterTransaction'] < 0 ? '(' . number_format(abs($journalRecord['balanceAfterTransaction']) , 2) . ')' : number_format($journalRecord['balanceAfterTransaction'],2)}}
{{ $data['closingBalance']['date'] }} @lang('reports::reports.account_statement.closing_balance') {{ number_format($data['closingBalance']['debit'],2) }} {{ number_format($data['closingBalance']['credit'],2) }} {{ $data['closingBalance']['balanceAfterTransaction'] < 0 ? '(' . number_format(abs($data['closingBalance']['balanceAfterTransaction']) , 2) . ')' : number_format($data['closingBalance']['balanceAfterTransaction'],2) }}
@lang('reports::reports.account_statement.gross_change') {{ $data['grossChange']['debit'] ? number_format($data['grossChange']['debit'],2) : ($data['grossChange']['credit'] ? '' : 0 ) }} {{ $data['grossChange']['credit'] ? number_format($data['grossChange']['credit'],2) : ($data['grossChange']['debit'] ? '' : 0) }}
{{$data['journalRecords']->appends(request()->query())->links()}}
@endsection @section('extra_scripts') @endsection