@php $configData = Helper::appClasses(); @endphp @extends('layouts/layoutMaster') @section('title', __('Notice Details')) @section('page-style') @endsection @section('content')

@lang('Notice Details')

@lang('Notice Information')
{{ ucfirst($notice->status) }}

{{ $notice->title }}

@switch($notice->notice_for) @case('all') @lang('All Employees') @break @case('teams') @lang('Specific Teams') @break @case('employees') @lang('Specific Employees') @break @default {{ ucfirst($notice->notice_for) }} @endswitch

{{ $notice->created_at->format('d-m-Y H:i:s') }}

@if($notice->expiry_date) {{ $notice->expiry_date->format('d-m-Y H:i:s') }} @if($notice->expiry_date < now()) @lang('Expired') @else @lang('Active') @endif @else @lang('No Expiry') @endif

{{ $notice->description }}
@lang('Recipients & Observers')
@if($notice->notice_for === 'teams' && $notice->teams->count() > 0)
@foreach($notice->teams as $team) {{ $team->name }} @endforeach
@elseif($notice->notice_for === 'employees' && $notice->users->count() > 0)
@foreach($notice->users as $user) {{ $user->first_name }} {{ $user->last_name }} @endforeach
@else

@lang('All Employees')

@endif
@php $voCount = $notice->visibleObservers ? $notice->visibleObservers->count() : 0; @endphp @if($voCount > 0)
@foreach($notice->visibleObservers as $vo) {{ $vo->first_name ?? '' }} {{ $vo->last_name ?? '' }} @endforeach
@lang('Can see recipients and other VO users')
@endif @php $isCreatorOrAdmin = auth()->id() === $notice->created_by_id || (auth()->user() && method_exists(auth()->user(), 'hasRole') && auth()->user()->hasRole('admin')); $soCount = $notice->shadowObservers ? $notice->shadowObservers->count() : 0; @endphp @if($isCreatorOrAdmin && $soCount > 0)
@foreach($notice->shadowObservers as $so) {{ $so->first_name ?? '' }} {{ $so->last_name ?? '' }} @endforeach
@lang('Hidden from primary recipients and VO users')
@endif
@lang('Audit Information')

{{ $notice->createdBy ? $notice->createdBy->name : 'System' }}

@if($notice->updatedBy)

{{ $notice->updatedBy->name }}

@endif @if($notice->updated_at && $notice->updated_at != $notice->created_at)

{{ $notice->updated_at->format('d-m-Y H:i:s') }}

@endif
@lang('Interaction Analytics')
0
@lang('Comments') @lang('Cmts')
0
@lang('Reactions') @lang('Reacts')
0
@lang('Reads')
0%
@lang('Engagement') @lang('Engage')
@lang('Primary Recipients')

0

0 @lang('VO') 0 @lang('SO')
@lang('Active Users')

0

@lang('Loading...')

@lang('Loading...')

@lang('Loading...')

@lang('Loading...')

@lang('Loading...')

@include('_partials._modals.notice.add_or_update_notice') @endsection @section('page-script') @endsection