| {{ NumToBn(date('d/m/Y', strtotime($item['date']))) }} |
@if($item['type'] == 'earning')
{{ NumToBn($item['calan_no']) }}
@elseif($item['type'] == 'cost')
{{ NumToBn($item['check_no']) }}
@endif
|
@if($item['type'] == 'earning')
{{ $item['income_sector_id'] }}
@elseif($item['type'] == 'cost')
{{ $item['expenditure_sector_id'] }}
@endif
|
@if($item['type'] == 'cost')
{{ NumToBn(number_format($item['cost_amount'], 2)) }}
@php($total_cost += $item['cost_amount'])
@endif
|
@if($item['type'] == 'earning')
{{ NumToBn(number_format($item['earning_amount'], 2)) }}
@php($total_earning += $item['earning_amount'])
@endif
|
{{ NumToBn(number_format($total_earning-$total_cost, 2)) }} |
@endforeach