@extends('layouts.app') @section('content')

Trial Balance - Specific Type

@if($type)
Account Type: {{ $type }} | As On: {{ \Carbon\Carbon::parse($asOnDate)->format('d F Y') }} | Accounts: {{ $accounts->count() }}
@forelse($accounts as $account) @empty @endforelse
Code Account Name Sub Type Balance
{{ $account->code }} {{ $account->name }} {{ $account->sub_type }} @if($account->balance >= 0) {{ number_format($account->balance, 2) }} Dr @else {{ number_format(abs($account->balance), 2) }} Cr @endif
No accounts found for this type
Total: Rs. {{ number_format($accounts->sum('balance'), 2) }}
@else
Please select an account type to view.
@endif
@endsection