@if(session('success'))
@endif
@if ($errors->any())
{!! implode('
', $errors->all(':message')) !!}
@endif
Total Projects
{{ $projects->count() }}
@if(!request()->has('from'))
Showing results from past 90 days.
@endif
| Project |
Total Sales |
Estimated Gross Profit |
Actual Gross Profit |
@php
$grand_sales = 0;
$grand_estimated_profit = 0;
$grand_actual_profit = 0;
$months = ['09-2024', '10-2024', '11-2024'];
$result = array_fill_keys($months, [
'project_ids' => [],
'sales_net' => 0,
'estimated_profit' => 0,
'actual_profit' => 0,
]);
@endphp
@foreach($projects as $project)
@php
$plant = 0;
$labour = 0;
$material = 0;
$subcontract = 0;
$other = 0;
$sales_net = 0;
$sub_contracts_total = 0;
$sub_contracts_other_total = 0;
$estimated_net = 0;
$po_total_plant = 0;
$po_total_material = 0;
$po_total_labour = 0;
$po_total = 0;
$estimated_gross_profit = 0;
$actual_gross_profit = 0;
@endphp
@if($project->tender==1)
@else
@endif