@foreach($filterResult as $list) @php $startDate = Carbon::parse($list->issue_date); $endDate = Carbon::parse(date('Y-m-d')); // Calculate the number of days between the two dates $numberOfDays = $startDate->diffInDays($endDate); @endphp