I want to know how can I check if the current user has any order or not? if have show the list and if not show the message?

currently I'm using this but it doesn't work well:

```
  @if (empty(Auth::user()->order))
        <blockquote>
            <h1>Sorry you have no order at the moment, would you like to check out our products?</h1>
            <footer><a href="{{route('shop')}}">Click here</a></footer>
        </blockquote>
      @else
.......

@endif

```

user model:

```
public function order(){
       return $this->hasMany(Order::class);
    }

```

order model:

```
public function user(){
     return $this->belongsTo(User::class);
  }

```

my controller that shows orders history view:

```
public function index()
    {
      $user = Auth::user();
      $orders = Order::where("user_id", "=", $user->id)->orderby('id', 'desc')->paginate(10);
      return view('users.orders', compact('user', 'orders'));
    }

```