s@extends('layouts.master') @section('title', 'Trial Balance Report') @section('content')
Back to Reports
Trial Balance Report
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf

@if(isset($trialBalanceData))
@csrf
Logo

Trial Balance Statement

Date: {{ date('F j, Y') }}

Currency: {{ $currnames }}

From: {{ $pfrom }} To: {{ $pto }}

@forelse($trialBalanceData as $account) @empty @endforelse
Account Code Account Name Debit Credit Balance
{{ $account['code'] }} {{ $account['name'] }} {{ number_format($account['debit'], 2) }} {{ number_format($account['credit'], 2) }} {{ number_format($account['balance'], 2) }}
No accounts found
Total {{ number_format($totalDebit, 2) }} {{ number_format($totalCredit, 2) }} {{ number_format($totalBalance, 2) }}
@endif
@endsection @section('styles') @endsection