@extends('layouts.master') @section('title', 'Chart Of Account') @section('page-header') Chart Of Account @stop @push('style') @endpush @section('content')
@include('partials._alert_message')

@yield('page-header')

@foreach ($accounts as $account) @if ($account->accountGroup->balance_type == 'Debit') @else @endif @endforeach
Sl Opening Date Name Balance Type Balance
{{ $loop->iteration }} {{ fdate($account->created_at) }} {{ $account->name }} {{ $account->balance_type }} {{ number_format($account->debit - $account->credit ?? 0, 2) }} {{ number_format($account->credit - $account->debit ?? 0, 2) }}
@include('partials._paginate', ['data' => $accounts])
@endsection @section('js') @endsection