Php @“空洞的给予”;未定义变量:“uuu0”为空;

Php @“空洞的给予”;未定义变量:“uuu0”为空;,php,laravel,laravel-5,blade,Php,Laravel,Laravel 5,Blade,我目前正在尝试使用laravel 5.4设置刀片布局,但我似乎在使用@empty语句时遇到了问题 我尝试使用的代码是: @foreach ($notifications as $notification) <li data-for='{{ $notification->lobbyid }}'> @if ($notification->approved == 1) <div class='notification-t

我目前正在尝试使用laravel 5.4设置刀片布局,但我似乎在使用@empty语句时遇到了问题

我尝试使用的代码是:

@foreach ($notifications as $notification)
    <li data-for='{{ $notification->lobbyid }}'>
        @if ($notification->approved == 1) 
             <div class='notification-text'><strong>{{ $notification->sentBy }}</strong> wants access to your lobby:  \"{{$notification->title}}\".</div>
             <div class='notification-actions' id='HI' data-for='{{ $notification->lobbyid }}' data-userid='{{ $notification->userid }}'><span data-type='{ \"as\": \"requesting\", \"action\": 1 }'>Accept</span><span data-type='{ \"as\": \"invited\", \"action\": 0 }'>Deny</span></div> 
        @else 
            <div class='notification-text'><strong>{{ $notification->sentBy }}</strong> invites you to join his lobby: \"{{$notification->title}}\".</div>
            <div class='notification-actions' id='HI' data-for='{{ $notification->lobbyid }}' data-userid='{{ $notification->userid }}'><span data-type='{ \"as\": \"invited\", \"action\": 1 }'>Accept</span><span data-type='{ \"as\": \"invited\", \"action\": 0 }'>Deny</span></div>      
        @endif
     </li>
@empty
    <li>No Notifications</li>
@endforelse
@foreach($notifications as$notification)