Book Taken List

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