@if (isset($ajax) && $ajax)
@php
$initials = 0;
$in_progress = 0;
$completed = 0;
$time_extended = 0;
$total = 0;
@endphp
@foreach($data as $dt)
@php
$initials = $initials + $dt->initials;
$in_progress = $in_progress + $dt->in_progress;
$completed = $completed + $dt->completed;
$time_extended = $time_extended + $dt->time_extended;
$total = $total + $dt->total;
@endphp
{{-- {{dd($data)}}--}}
| {{$dt->department_name}} |
{{$dt->initials}} |
{{$dt->in_progress}} |
{{-- {{$dt->out_of_schedule}} | --}}
{{$dt->completed }} |
{{$dt->time_extended}} |
{{$dt->total}} |
{{-- {{$dt->dev_partner_exist}} | --}}
{{-- {{$dt->dev_partner_not_exist}} | --}}
@endforeach
| Grand Total |
{{$initials}} |
{{$in_progress}} |
{{$completed}} |
{{$time_extended}} |
{{$total}} |
@else
| Department Name |
Initial |
In Progress |
{{-- Out Of Schedule | --}}
Completed |
Extended Time |
Total |
{{-- Dev Partner Exist | --}}
{{-- Dev Partner Not Exist | --}}
@endif