@extends('layout.app') @section('title', __('balance_sheet')) @section('content')
{{ __('balance_sheet') }}
@foreach ($accounts as $account) @endforeach
{{ __('sl') }} {{ __('name') }} {{ __('account_no') }} {{ __('credit') }} {{ __('debit') }} {{ __('balance') }}
{{ $loop->iteration }} {{ $account->name }} {{ $account->account_no }} {{ numberFormat($account->transactions()->where('transection_type', 'Credit')->sum('amount')) }} {{ numberFormat($account->transactions()->where('transection_type', 'Debit')->sum('amount')) }} {{ numberFormat($account->total_balance) }}
@endsection