Book Taken History List

{{--
Book Taken History List Record list on table. Filter list using the search box as you wish.
--}}
@if (isset($data['books_history']) && $data['books_history']->count() > 0) @php($i=1) @foreach($data['books_history'] as $books_history) @if(!isset($books_history->return_date) && $books_history->due_date >= \Carbon\Carbon::now()->format('Y-m-d')) @elseif(isset($books_history->return_date)) @else @endif @php($i++) @endforeach @else @endif
S.N. Reference No Image Name Category Issued On Due Date Return Date Day
{{ $i }} {{ $books_history->book_code }} @if($books_history->image) {{ $books_history->title }} @endif {{ $books_history->title }} {{ ViewHelper::getBookCategoryById($books_history->categories) }} {{ \Carbon\Carbon::parse($books_history->issued_on)->format('Y-m-d') }} {{ \Carbon\Carbon::parse($books_history->due_date)->format('Y-m-d') }}
{{ \Carbon\Carbon::parse($books_history->due_date)->diffForHumans(\Carbon\Carbon::now()) }}
{{ \Carbon\Carbon::parse($books_history->return_date)->format('Y-m-d') }}
{{ \Carbon\Carbon::parse($books_history->due_date)->diffForHumans(\Carbon\Carbon::now()) }}
{{ (\Carbon\Carbon::parse($books_history->return_date) ->diffInDays(\Carbon\Carbon::parse($books_history->issued_on))) }}
Book Issued History Not Found.