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') }} | @if(!isset($books_history->return_date) && $books_history->due_date >= \Carbon\Carbon::now()->format('Y-m-d'))
{{ \Carbon\Carbon::parse($books_history->due_date)->diffForHumans(\Carbon\Carbon::now()) }}
|
@elseif(isset($books_history->return_date))
{{ \Carbon\Carbon::parse($books_history->return_date)->format('Y-m-d') }}
|
@else
{{ \Carbon\Carbon::parse($books_history->due_date)->diffForHumans(\Carbon\Carbon::now()) }}
|
@endif
{{ $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. |