{{ __('project_cost_report.title') }}

@if (session('status'))
{{ session('status') }}
@endif
@if (!$data)
{{ __('project_cost_report.select_a_project_to_view_cost_vs_estimated_budget') }}
@else @php $a = $data['actual']; $c = $data['comparison']; $statusClass = $c['status'] ?? ''; @endphp
{{ __('project_cost_report.estimated_budget') }}
{{ number_format($c['estimated_budget'], 2) }}
{{ __('project_cost_report.actual_total') }}
{{ number_format($c['actual_total'], 2) }}
{{ __('project_cost_report.variance') }}
{{ number_format($c['variance'], 2) }} ({{ number_format($c['variance_percent'], 2) }}%)
{{ __('project_cost_report.materials_used') }} {{ number_format($a['materials_used'], 2) }}
{{ __('project_cost_report.labor_cost') }} {{ number_format($a['labor_cost'], 2) }}
{{ __('project_cost_report.machinery_cost') }} {{ number_format($a['machinery_cost'], 2) }}
{{ __('project_cost_report.general') }} {{ number_format($a['general_expenses'], 2) }}
{{ __('project_cost_report.actual_total') }} {{ number_format($a['actual_total'], 2) }}
@endif