@extends('layouts.list_pdf') @section('pdf-title') {{ __('Bank Statement') }} @endsection @section('header-info')

{{ __('Bank Statement') }}

{{ __('Account') }}: @if($bankAccounts != 'All') {{ $bankAccounts->name }} ({{ $bankAccounts->currency->name }}) @else {{ $bankAccounts }} @endif

{{ __('Period') }}: {{ $date_range }}

{{ __('Print Date') }}: {{ formatDate(date('d-m-Y')) }}

@endsection @section('list-table') @foreach($transactionList as $key=>$data) @endforeach
{{ __('Date') }} {{ __('Type') }} {{ __('Description') }} {{ __('Cash out (Credit)') }} {{ __('Cash in (Debit)') }} {{ __('Balance') }}
{{ __('Balance On') }} {{ formatDate($from) }} {{ formatCurrencyAmount($amount) }}
{{ formatDate($data->transaction_date) }} {{ ucwords(str_replace ('_',' ', strtolower($data->transaction_method))) }} {{ $data->description }} @if($data->amount <= 0) {{ formatCurrencyAmount(abs($data->amount)) }} @else {{ formatCurrencyAmount(0) }} @endif @if($data->amount > 0) {{ formatCurrencyAmount(abs($data->amount)) }} @else {{ formatCurrencyAmount(0) }} @endif {{ formatCurrencyAmount($newBalance) }}
{{ __('Balance On') }} {{ formatDate(date('Y-m-d')) }} {{ formatCurrencyAmount(abs($totalDebit), $presentCurrency->name) }} {{ formatCurrencyAmount(abs($totalCredit), $presentCurrency->name) }} {{ formatCurrencyAmount($totalCredit + $totalDebit + $amount, $presentCurrency->name) }}
@endsection