@page "/borrowings/manage" @using BlazorWebAssembly.Services @using LibraryManagement.Shared.Models @using Microsoft.AspNetCore.Authorization @inject LibraryApiClient ApiClient @inject IJSRuntime JS @attribute [Authorize(Roles = "Librarian")]
Monitor and process library loans across all members.
| Book & Loan Info | Member Details | Loan Dates | Status | Fines | Actions |
|---|---|---|---|---|---|
| No borrowing records found in the system. | |||||
|
@loan.BookTitle ID: #@loan.Id |
@loan.UserEmail UID: #@loan.UserId |
Out:
@loan.BorrowDate.ToString("MMM dd, yyyy")
Due:
@{
var isOverdue = loan.DueDate < DateTime.Now && loan.Status == "Borrowed";
}
@loan.DueDate.ToString("MMM dd, yyyy")
@if (loan.ReturnDate.HasValue)
{
Back:
@loan.ReturnDate.Value.ToString("MMM dd, yyyy")
}
|
@(loan.Status == "PendingReturn" ? "Pending Approval" : loan.Status) |
@if (loan.FineAmount > 0)
{
MMK @loan.FineAmount.ToString("N0")
@if (loan.IsFinePaid)
{
Settled
}
else
{
Pending
}
}
else
{
No Fines
}
|
@if (loan.Status == "PendingReturn")
{
}
else if (loan.Status == "Borrowed")
{
}
else
{
|
Showing @((_currentPage - 1) * _pageSize + 1) to @(Math.Min(_currentPage * _pageSize, _borrowings.Count())) of @_borrowings.Count() records