@extends('master.authMaster') @section('content')
Select a Project
-- Select Project --
@foreach ($projects as $project)
{{ $project->project_name }}
@endforeach
@csrf
PROJECT NAME : {{ $project->project_name }} PROJECT BUDGET: {{ $project->total_project_cost }}
{{-- Resource records history --}}
{{-- Assign Employees/resources --}}
Assign Employees
*
@php $assignedEmployees = json_decode($project->assigned_employee); @endphp
@foreach ($users as $user) @if ($user->role_id == 3 && in_array($user->id, $assignedEmployees ?? []))
id, $assignedEmployees) ? 'selected' : '' }}> {{ $user->name }}
@elseif ($user->role_id == 3 && !in_array($user->id, $assignedEmployees ?? []))
{{ $user->name }}
@endif @endforeach
@error('assigned_employee')
{{ $message }}
@enderror
{{-- Display Selected Resources and Monthly Rates --}}
Resources Name and Cost (INR)
Total Resource Budget : {{ $project->total_resource_cost }}
Resource Name
{{--
Rate per Hour
--}} {{--
Duration(Hourly)
--}}
Total Budget Cost per Resource
Actual Spend on Resource
{{-- Calculation for resources --}}
Total Budgeted Resource Cost:
0.00
Total Actual Resource Cost:
0.00
Net Resource Cost:
0.00
{{-- Total Resource Cost --}}
Total Resource Cost (INR)
*
@error('total_resource_cost')
{{ $message }}
@enderror
{{-- Actual Cost records for fixed --}}
{{-- EXPENSE Heads --}}
FIXED EXPENSES :
Expense Head
Budget Cost (INR)
Actual Costs
Project Manager Cost
Operational Cost
Marketing Cost
Sales Cost
{{-- Calculation for fixed expenses --}}
Total Budget for Fixed Expenses:
0.00
Total Actual Fixed Expenses:
0.00
Net Fixed Expenses:
0.00
{{-- Actual Cost records for resources --}}
Other/Variable Expenses :
@php $otherCosts = json_decode($project->other_costs, true); // true = array @endphp @if (is_array($otherCosts) && count($otherCosts))
Expense Head
Budget Cost (INR)
Actual Costs
File Upload
@foreach ($otherCosts as $title => $amount)
@error('client_name')
{{ $message }}
@enderror
@endforeach
{{-- Calculation for other expenses --}}
Total Budget for other Expenses:
0.00
Total Actual other Expenses:
0.00
Net other Expenses:
0.00
+ Expenses Expense
@else
No other costs recorded.
@endif {{-- Submit Button --}}
Save
{{--
Resources
Billing Modules
--}} {{-- Uncomment if needed --}} {{--
Other Costs
--}}
@endsection @section('scripts') @endsection