@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 @if(isset($list->short_name))@php echo wordwrap($list->short_name,25,"
\n") @endphp@endif
No.of Day's: {{$numberOfDays}}
Issue Date: @if(isset($list->issue_date)){{$list->issue_date}}@endif
Return Date: @if(isset($list->return_due_date)){{$list->return_due_date}}@endif
@endforeach