@extends('layouts.app') @section('content')

Return Book

@if ($book->issue_status == 'Y') @else @if (date('Y-m-d') > $book->return_date->format('d-m-Y')) @endif @endif
StudentName: {{ $book->student->name }}
Book Name : {{ $book->book->name }}
Phone : {{ $book->student->phone }}
Email : {{ $book->student->email }}
Issue Date : {{ $book->issue_date->format('d M, Y') }}
Return Date : {{ $book->return_date->format('d M, Y') }}
Status Returned
Returned On {{ $book->return_day->format('d M, Y') }}
Fine RM{{ $fine }}
@if ($book->issue_status == 'N') {{-- Use a flex container to place buttons side-by-side --}}
{{-- Return Book Form --}} {{-- Add 'mr-2' (margin-right) for spacing between the form and the next button --}}
@csrf
{{-- Scan Button: Changed to an tag styled as a button --}} {{-- This makes it a proper link that goes to the demo scan page --}} Scan Back
@endif
@endsection