Update index.blade.php

Trying to get property of Non object issue