@extends('hr-management.layouts.master') @section('title') Members @endSection @section('main-data')
Add Member
{{-- --}}
@if (auth()->user()->hasRole('Admin')) @endif @foreach ($members as $member) @if (auth()->user()->hasRole('Admin')) @endif @csrf @method('DELETE') @endforeach
# NAME EMAIL ROLENOTIFICATIONSSTATUS ACTION
{{ $loop->iteration }} {{ $member->name }} {{ $member->email }} {{ $member->getRoleNames()->implode(', ') ?: 'No roles assigned' }} @if (isset($notificationData[$member->id])) @php $unreadCount = $notificationData[$member->id]['unread_count']; @endphp @if ($unreadCount > 0) {{ $unreadCount }} unread @else No unread notifications @endif @else No notifications @endif
{{ Str::ucfirst($member->status) }}
@if (auth()->id() !== $member->id) @else @endif
@endSection