@extends('layouts.master') @section('title', 'Trial Balance') @section('content')

Trial Balance


{{-- --}} @php $count = 1; $debitTotal = 0; $creatidTotal = 0; $balance = 0; $priority = ''; $priorityRow = 0; @endphp @foreach ($trialBalance as $value) @if ($priority == '' || $priority != $value->priority) @php $priority = $value->priority; $priorityRow=1; if($priorityRow==1){ $priorityRow=0; echo " "; } @endphp @endif {{-- --}} @php $debitTotal += $value->debit; $creatidTotal += $value->credit; $balance += (floatval($value->debit) != '' ? floatval($value->debit) : 0) - (floatval($value->credit) != '' ? floatval($value->credit) : 0); @endphp @endforeach
#DateAccount Code Description Opening Balance Debit Credit Closing Balance
$value->account_type
{{ $count++ }}{{ $value->date }}{{ $value->acc_code }} {{ $value->acc_name }} 0.00 {{ $value->debit != 0 ? number_format($value->debit, 2, '.', ',') : '' }} {{ $value->credit != 0 ? number_format($value->credit, 2, '.', ',') : '' }} {{ number_format( (floatval($value->debit) != '' ? floatval($value->debit) : 0) - (floatval($value->credit) != '' ? floatval($value->credit) : 0), 2, '.', ',' ) }}
{{ number_format($debitTotal, 2, '.', ',') }} {{ number_format($creatidTotal, 2, '.', ',') }} {{ number_format($balance, 2, '.', ',') }}
@endsection