@foreach($grade as $data)
@foreach($data->gradehead as $row)
{{$row->head->name}} |
{{ number_format($row->amount,2) }} |
amount; ?>
head_id;
$newgrade[] = $row->grade_id;
?>
@endforeach
@if(in_array($data->id,$newgrade))
@foreach($heads as $head)
@if(!in_array($head->id,$newhead))
{{$head->name}} |
0 |
@endif
@endforeach
@else
@foreach($heads as $head)
{{$head->name}} |
0 |
@endforeach
@endif
Total : {{ number_format($total,2) }} |
Update
@endforeach