{{ $key + 1 }} |
{{ ucfirst($list->getBudget->name ?? '') }} |
{{ ucfirst($list->getBudget->budget_calculation ?? '') }}
|
{{-- {{ convertDecimelPoint($list->amount) }} | --}}
@if ($list->getBudget->budget_calculation == 'expense')
-{{ convertDecimelPoint($list->amount) }}
@else
{{ convertDecimelPoint($list->amount) }}
@endif
| {{--
status == '1' ? 'checked' : '' }}>
| --}}
@if(in_array('project-budget-edit', $authRolePermissions))
|
@endif
@if(in_array('project-budget-delete', $authRolePermissions))
|
@endif
@php
$i++;
// Update total amount based on income or expense
if ($list->getBudget->budget_calculation == 'income') {
$totalAmount += $list->amount;
} elseif ($list->getBudget->budget_calculation == 'expense') {
$totalAmount -= $list->amount;
}
@endphp
@endforeach