GREAT SWISS BUILDER CONSTRUCTION
Project Budget Estimation Report
Project Code: {{ $project->code }} Date Generated: {{ now()->format('F d, Y') }}
Project Name: {{ $project->name }} Project Type: {{ $project->project_type }}
Client Name: {{ $project->client_name ?: 'N/A' }} Location: {{ $project->location ?: 'N/A' }}
Contract Value: ₱{{ number_format($project->contract_value, 2) }} Status: {{ $project->status instanceof \Modules\ProjectManagement\Enums\ProjectStatus ? $project->status->label() : ($project->status === 'under_bidding' ? 'Planning' : ucwords(str_replace('_', ' ', $project->status))) }}
@if($project->is_unprofitable)
Warning: Profit Margin Alert
This project has been flagged as unprofitable. The estimated cost centers exceed the registered contract value. Special oversight is required during authorization.
@endif
1. Materials Cost Breakdown
@forelse($project->materialsEstimates as $index => $est) @empty @endforelse
# Material Name Unit Est. Qty Unit Cost Total Cost
{{ $index + 1 }} {{ $est->material->name }} {{ $est->material->unit }} {{ number_format($est->estimated_qty, 2) }} ₱{{ number_format($est->unit_cost, 2) }} ₱{{ number_format($est->estimated_qty * $est->unit_cost, 2) }}
No materials allocated.
Subtotal Materials Cost ₱{{ number_format($totals['materials'], 2) }}
2. Labor Manpower Cost Breakdown
@php $laborIdx = 1; @endphp @forelse($project->tasks as $task) @foreach($task->taskLabors as $tl) @endforeach @empty @endforelse @if($laborIdx === 1) @endif
# Target Task Labor Record Category Rate / hr Est. Hours Total Cost
{{ $laborIdx++ }} {{ $task->name }} {{ $tl->labor->name }} {{ $tl->labor->category }} ₱{{ number_format($tl->labor->hourly_rate, 2) }} {{ number_format($tl->estimated_hours, 1) }} ₱{{ number_format($tl->estimated_hours * $tl->labor->hourly_rate, 2) }}
No labor trade allocations.
Subtotal Labor Cost ₱{{ number_format($totals['labor'], 2) }}
3. Equipment & Machinery Cost Breakdown
@php $equipIdx = 1; @endphp @forelse($project->tasks as $task) @foreach($task->taskEquipments as $te) @endforeach @empty @endforelse @if($equipIdx === 1) @endif
# Target Task Equipment / Tool Owner Rate / hr Est. Hours Total Cost
{{ $equipIdx++ }} {{ $task->name }} {{ $te->equipment->name }} {{ $te->equipment->owner_name ?: 'Unspecified' }} ₱{{ number_format($te->equipment->hourly_rate, 2) }} {{ number_format($te->estimated_hours, 1) }} ₱{{ number_format($te->estimated_hours * $te->equipment->hourly_rate, 2) }}
No equipment allocations.
Subtotal Equipment Cost ₱{{ number_format($totals['equipment'], 2) }}
Financial Estimation Summary
A. Total Materials Cost Center: ₱{{ number_format($totals['materials'], 2) }}
B. Total Labor Manpower Cost Center: ₱{{ number_format($totals['labor'], 2) }}
C. Total Equipment Machinery Cost Center: ₱{{ number_format($totals['equipment'], 2) }}
Total Combined Budget Estimate (A+B+C): ₱{{ number_format($totals['sum'], 2) }}
Project Registered Contract Value: ₱{{ number_format($project->contract_value, 2) }}
Projected Gross Profit Margin: ₱{{ number_format($totals['margin'], 2) }} ({{ number_format($totals['margin_pct'], 2) }}%)