Finding numbers of days between 2 dates in Laravel blade

Solution:

you have to use Carbon and calculate it in your controller like this

import the carbon namespace in your controller

use Carbon\Carbon;

and then calculate the date difference like this

$date = Carbon::parse($user->paid_for_date);
$now = Carbon::now();

$diff = $date->diffInDays($now);

and return the $diff to the view