@extends('library.admin.layouts.admin_design') @section('title')
{!! $bookisbn->book->description !!}
status == "available") "color:green;" @else "color:red" @endif>{{ucwords($bookisbn->status)}}{{'Book of ISBN '}}{{$bookisbn->isbn}}{{' has been Issued'}}
@elseif($bookisbn->status == 'lost'){{'Book of ISBN '}}{{$bookisbn->isbn}}{{' has been Lost'}}
@elseif($bookisbn->status == 'damaged'){{'Book of ISBN '}}{{$bookisbn->isbn}}{{' has been Damaged'}}
@else Issue @endif| # | Role | User Id | Issue Date | Date to be Return | Renewed | Returned Date | Fine Paid |
|---|---|---|---|---|---|---|---|
| {{$count++}} | {{$iff->role}} | @if($iff->role == 'student') {{$iff->role_id_student}} @elseif($iff->role == 'teacher') {{$iff->role_id_teacher}} @else {{'ID not found'}} @endif | {{date('Y M d',strtotime($iff->created_at))}} | {{date('Y M d',strtotime($iff->return_date))}} | {{$iff->count}} times | {{'Not Return Yet'}} | {{'-'}} |
| {{$count++}} | {{$rif->role}} | @if($rif->role == 'student') {{$rif->user_id_student}} @elseif($rif->role == 'teacher') {{$rif->user_id_teacher}} @else {{'ID not found'}} @endif | {{date('Y M d',strtotime($rif->issued_date))}} | {{'-'}} | 0 times | {{date('Y M d',strtotime($rif->created_at))}} | @if(($rif->grandtotal) <= 0) {{'No fine'}} @else {{$rif->grandtotal}} @endif |