@extends('layouts.library.layout') @section('content')

Dashboard

@include('partials.message')

Upcoming Events

@if(count($dashboard['events']) > 0) @foreach($dashboard['events'] as $events)

{{ $events->title }}

{{ date('d M Y H:i',strtotime($events->start_date)) }}

@if($events->select_type == 'class') {{ $events->standardLink->StandardSection }} @else {{ ucwords($events->select_type) }} @endif

{{ $events->description }}

@endforeach @else

No Records Found

@endif

Notice Board

@if(count($dashboard['noticeboard']) > 0) @foreach($dashboard['noticeboard'] as $noticeboard)

{{ $noticeboard->title }}

{{ date('d M Y',strtotime($noticeboard->publish_date)) }}

@if($noticeboard->type == 'class') {{ $noticeboard->standardLink->StandardSection }} @else {{ ucwords($noticeboard->type) }} @endif

{!! $noticeboard->description !!}

{{ $noticeboard->created_at->diffForHumans() }}

@if($noticeboard->attachment_file > '') @endif
@endforeach @else

No Notice Found

@endif

Overdue Students List

@if(count($dashboard['booklendings']) > 0) @foreach($dashboard['booklendings'] as $booklending) @endforeach @else @endif
Student Name Book Code Library Card Number Return Date
{{ $booklending->user[0]['FullName'] }} {{ $booklending->book_code_no }} {{ $booklending->library_card_no }} {{ $booklending->return_date }}
No Records found
@endsection