mardi 26 février 2019

Object of class Carbon\Carbon could not be converted to int LARAVEL

How do I implement if the schedule has been expired where in I want to return a status of "Match will start soon".

here is the code:

 @if($match->schedule > 0)
      &nbsp;<strong id="match_schedule">Match will start soon</strong>
 @endif

I tried :

@if($match->schedule > $match->schedule)
      &nbsp;<strong id="match_schedule">Match will start soon</strong>
@endif

but it doesn't work. any ideas?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire