Changed php echo code to blade echo code and renamed a variable for clarity