@extends('layouts.admin') @section('title', 'Emprunts - Bibliothèque') @section('page-title', 'Emprunts en cours') @section('page-subtitle', 'Suivi des prêts et retours de livres.') @section('content')
{{ $issues->where('status', 'borrowed')->count() }} en cours
| Livre | Étudiant | Date emprunt | Date retour | Statut | Actions |
|---|---|---|---|---|---|
|
{{ $issue->book->title }} {{ $issue->book->author }} |
{{ $issue->user->name }} {{ $issue->user->email }} |
{{ $issue->borrowed_at ? $issue->borrowed_at->format('d/m/Y') : '—' }} | {{ $issue->due_at ? $issue->due_at->format('d/m/Y') : '—' }} @if($issue->isOverdue()) En retard @endif | @if($issue->status === 'borrowed') Emprunté @else Retourné @endif |
@if($issue->status === 'borrowed')
@endif
|
|
Aucun emprunt enregistré |
|||||