@extends('layoutUser') @section('index-content')
@if ($time < "12")

Good Morning, {{$resident->name}}

Welcome Back!

@elseif ($time >= "12" && $time < "17")

Good Afternoon, {{$resident->name}}

Welcome Back!

@elseif ($time >= "17" && $time < "19")

Good Evening, {{$resident->name}}

Welcome Back!

@else

Good Night, {{$resident->name}}

@endif

Announcements

@foreach($announcements as $one)
  • {{$one->announce_desc}}
    {{$one->date}} @if($one->time !== '00:00:00')
    {{$one->time}} @endif
@endforeach

Notifications @if(App\Residents::find(session()->get('resident_id'))->unreadNotifications->count()) {{App\Residents::find(session()->get('resident_id'))->unreadNotifications->count()}} @endif

@foreach(App\Residents::find(session()->get('resident_id'))->unreadNotifications as $one)
    @if($one->data['type'] === 'message')
  • Message From: {{$one->data['sender']['name']}}
  • @elseif($one->data['type'] === 'visitorMessage')
  • {{$one->data['visitor']['name']}} want to visit you
  • @endif
@endforeach
Send Message
View Details
My VisitorsList
View Details
Facility Booking
View Details
Lost and Found Board
View Details
Repair Report
View Details
@stop