@if (isset($data['book_issued']) && $data['book_issued']->count() > 0) @php($i=1) @foreach($data['book_issued'] as $bookIssue) @php($i++) @endforeach @else @endif
SN Reg.No. Book Issued On Due Date Status
{{ $i }} @if($bookIssue->user_type == 1) {{ $bookIssue->reg_no }} Student @else {{ $bookIssue->reg_no }} Staff @endif {{ $bookIssue->title }} {{ \Carbon\Carbon::parse($bookIssue->issued_on)->format('Y-m-d') }} {{ \Carbon\Carbon::parse($bookIssue->due_date)->format('Y-m-d') }} @if($bookIssue->due_date > Carbon\Carbon::now())
{{ \Carbon\Carbon::parse($bookIssue->due_date)->diffForHumans(\Carbon\Carbon::now()) }}
@else
{{ \Carbon\Carbon::parse($bookIssue->due_date)->diffForHumans(\Carbon\Carbon::now()) }}
@endif
More
No data found.