Project Budget
@if (auth()->user()->can('project-budget-create')) @endif

{{-- --}} @if(in_array('project-budget-edit', $authRolePermissions)) @endif @if(in_array('project-budget-delete', $authRolePermissions)) @endif {{-- @php $i=1;@endphp @if (count($projectBudget) > 0) @foreach ($projectBudget as $key => $list) @if (auth()->user()->can('project-budget-edit')) @endif @if (auth()->user()->can('project-budget-delete')) @endif @php $i++; @endphp @endforeach @else @endif --}} @php $i = 1; $totalAmount = 0; @endphp @if (count($projectBudget) > 0) @foreach ($projectBudget as $key => $list) {{-- --}} {{-- --}} @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 @else @endif
Sl No Budget Type Type AmountStatusEditDelete
{{ $key + 1}} {{ucfirst($list->getBudget->name ?? '')}} {{convertDecimelPoint($list->amount)}}
status=='1' ? 'checked' : ''}}>
No Data Found
{{ $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' : '' }}>
Total {{ convertDecimelPoint($totalAmount) }}
No Data Found