@extends('layouts.app') @section('content') @if(!$projects->isEmpty()) {{__('Projects')}} {{__("No.")}} {{__('Project')}} {{__('Cluster')}} {{__('Pan')}} {{__('Provider')}} @foreach($allTasks as $task) {{$task->task}} @endforeach {{__('Total')}} {{__('amount')}} @foreach($projects as $rbr => $project) @php $sumaSumarum = 0; $sumaSumarumRealized = 0;if($loop->last) $bottomBorder = 'border-bottom: 3px solid #000000;'; else $bottomBorder = ''; @endphp {{($rbr+1).'.'}} {{$project->project_name}} {{$project->cluster}} {{$project->pan}} {{$project->provider}} @foreach($allTasks as $key => $task) @php $percentage = 0; $num = 0; $specificWorks = $wMod->worksIndex($project->id, $task->id); $total = 0; $totalRealized = 0; @endphp @if(!$specificWorks->isEmpty()) @foreach ($specificWorks as $swork) @php $total += $swork->price*$swork->quantity; $realized = $deMod->workQuantityByPan($project->pan_id,$swork->work_id); $totalRealized += $swork->price*$realized; $num++; $percentage+=100*$realized/$swork->quantity; $sumaSumarum += $swork->price*$swork->quantity; $sumaSumarumRealized += $swork->price*$realized; @endphp @endforeach {{number_format($total, 2, ',', '.')}} {{number_format($totalRealized, 2, ',', '.')}} {{number_format($percentage/$num)}}% @else {{number_format($total, 2, ',', '.')}} {{number_format(0, 2, ',', '.')}} 0% @endif @endforeach {{number_format($sumaSumarum, 2, ',', '.')}} {{number_format($sumaSumarumRealized, 2, ',', '.')}} @if($isAdmin) @endif @if($isAdmin) @endif @endforeach @endif
{{__('Are you sure you want to delete data?')}}