@extends('layouts.master') @section('content')
{{$title}}
{{-- @if(\Auth::user()->utype==1) Add Grade Structure

@endif --}}
@foreach($grade as $data)

{{$data->name}}

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

Update

@endforeach
@stop @section('style') @stop @section('script') @stop @if(Session::has('msg'))
×   {{Session::get('msg')}}
@endif