laravel isset blade code example
Example 1: forelse laravel
@forelse ($users as $user)
<li>{{ $user->name }}</li>
@empty
<p>No users</p>
@endforelse
Example 2: isset laravel
public function returnView() {
return View::make('view')->with('param',$param);
}
@isset($param)
Example 3: laravel blade @if 3 varabile
@if(is_null($key['p3']))
{{--*/$p3 = $key['p3']$wabku = $key['wabku']/*--}}
@else
{{ 0 }}
@endif
<td class="tg-rv4w" width="5%">
{{ number_format($p3 - $wabku,0,',','.') }}
</td>
@php
$p3 = $key['p3']
@endphp