@foreach($bookReturn as $key=> $list) @php $startDate = Carbon::parse($list->getIssuedetails->getisseuBook->issue_date); $endDate = Carbon::parse($list->return_date); // Calculate the number of days between the two dates $numberOfDays = $startDate->diffInDays($endDate); @endphp @php $key++; @endphp @if(isset($list->getIssuedetails->book->short_name))@php echo wordwrap($list->getIssuedetails->book->short_name,25,"
\n") @endphp@endif
Issue Date: @if(isset($list->getIssuedetails->getisseuBook->issue_date)){{$list->getIssuedetails->getisseuBook->issue_date}}@endif
Return Date: @if(isset($list->return_date)){{$list->return_date}}@endif
damage_status==1){{'checked'}}@endif name="book_issue_damage[]">
@endforeach