Merhaba;
not tablosunda kişinin notu yoksa hata alıyorum.
$notu=Not::where('userid', '=', $id)
->get();
blade
@if(!empty($notu))
@foreach ($notu as $key => $us)
<tr>
<td> {{ $i=$i+1 }}</td>
<td> {!! html_entity_decode($us->not) !!} </td>
<td>
{{ $us->created_at->format('d-m-Y') }}
</td>
</tr>
@endforeach
@endif
hata
ErrorException in 313b186f191b7cc03f5926b5f881d01fceeed3d2.php line 813:
Undefined variable: us
in 313b186f191b7cc03f5926b5f881d01fceeed3d2.php line 813
at HandleExceptions->handleError('8', 'Undefined variable: us',