Total Credit

@php $total_credit = $total_rupiah = 0; @endphp @forelse($detail_credits as $transaction) {{-- @if(!in_array($transaction->trx_type, ['6', '28'])) @else @endif --}} @php $total_credit = bcadd($total_credit, $transaction->total_credit, 4); $total_rupiah = $total_rupiah + $transaction->jumlah_dana; @endphp @empty @endforelse
Type Total Emas Total Rupiah
{{ $transaction->type }} {{ number_format(bcadd(0, $transaction->total_credit, 4), 4) }} {{ number_format($transaction->jumlah_dana) }}{{ number_format($transaction->jumlah_dana) }}0
No Data
Total {{ number_format($total_credit, 4) }} {{ number_format($total_rupiah) }}

Total Debet

@php $total_debet = $total_rupiah = 0; @endphp @forelse($detail_debets as $transaction) {{-- @if(!in_array($transaction->trx_type, ['6', '28'])) @else @endif --}} @php $total_debet = bcadd($total_debet, $transaction->total_debet, 4); $total_rupiah = $total_rupiah + $transaction->jumlah_dana; @endphp @empty @endforelse
Type Total Emas Total Rupiah
{{ $transaction->type }} {{ number_format(bcadd(0, $transaction->total_debet, 4), 4) }} {{ number_format($transaction->jumlah_dana) }}{{ number_format($transaction->jumlah_dana) }}0
No Data
Total {{ number_format($total_debet, 4) }} {{ number_format($total_rupiah) }}