Library History

@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 Name Category Issued On Due Date Return Date Day Fine
{{ $i }} {{ $books_history->book_code }} {{ $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()) }}
{{ $day= (\Carbon\Carbon::parse($books_history->return_date) ->diffInDays(\Carbon\Carbon::parse($books_history->issued_on))) }}
@if($day > $data['circulation']->issue_limit_days)
{{ ($day - $data['circulation']->issue_limit_days) * $data['circulation']->fine_per_day }}
@endif
Book Issued History Not Found.