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

{{ isset($account) ? _lang('Account Statement Of').' '.$acc->account_title : _lang('Account Statement') }}

{{ 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); $debit = 0; $credit = 0; @endphp @foreach($report_data as $report) @if( $report->debit == 0 && $report->credit == 0 ) @php continue; @endphp @endif @php $debit += (float)$report->debit; $credit += (float)$report->credit; @endphp @endforeach @endif
{{ _lang('Date') }} {{ _lang('Description') }} {{ _lang('Debit') }} {{ _lang('Credit') }}
{{ date($date_format, strtotime($report->date)) }} {{ $report->note }} {{ $report->debit != 0 ? decimalPlace($report->debit, $currency) : "" }} {{ $report->credit != 0 ? decimalPlace($report->credit, $currency) : "" }}
{{ _lang('Total') }} {{ decimalPlace($debit, $currency) }} {{ decimalPlace($credit, $currency) }}
@endsection @section('js-script') @endsection