I'm confused here. I've passed
$grade=Grade::all()->whereLoose('id',$gid);
from my controller. When I access it in my view like:
@foreach($grade as $grade)
{{$grade->grade_name}}
@endforeach
It works fine. But when i try to use it again in my table:
@foreach($grade as $grade)
<tr class="success">
<td></td>
<td><b>Balance</b></td>
<td>{{$grade->fee_status}}</td>
@endforeach
It just throws Trying to get object of non object. What's the problem here? Can anyone help me?