@extends('layouts.master') @section('title', $title) @section('content')
| # | {{__('Account')}} | {{__('Description')}} | {{__('Debit')}} | {{__('Credit')}} | {{__('Amount')}} |
|---|---|---|---|---|---|
| {{$key+1}} | {{!empty($account->accounts)?$account->accounts->code.' - '.$account->accounts->name:''}} | {{!empty($account->description)?$account->description:'-'}} | {{number_format($account->debit,2)}} | {{number_format($account->credit,2)}} | @if($account->debit!=0) {{number_format($account->debit,2)}} @else {{number_format($account->credit,2)}} @endif |
| {{__('Total Credit')}} | {{number_format($journalEntry->totalCredit(),2)}} | ||||
| {{__('Total Debit')}} | {{number_format($journalEntry->totalDebit(),2)}} | ||||