screwtape_mk
5 months ago

unexpected else

Posted 5 months ago by screwtape_mk

I apparently have an unexpected else in line 58 (The last 'else' below). I have been on this for almost an hour and i cant seem to see why

@if(Auth::check())
                
                    
            @if($bookingR->count()>0 || $bookingP->count()>0 )
                    
                    @if($Emp->id==$bookingP->first()->emp_id)
                                
                        //do something
                    
                        @elseif($Emp->id==$bookingR->first()->emp_id)
                                            //do something
                @else
                                            //do something
                @endif
                                    
            @endif
                        
      @else
                                
            //do something
      @endif
                
                    
                
                
  @else
                                    //do something
  @endif
                    

Please sign in or create an account to participate in this conversation.