@php $editPermission = user()->permission('edit_notice'); $deletePermission = user()->permission('delete_notice'); @endphp

@lang('modules.notices.notice') @lang('app.details')

@if (!in_array('client', user_roles()) && (($editPermission == 'all' || ($editPermission == 'added' && $notice->added_by == user()->id) || ($editPermission == 'owned' && in_array($notice->to, user_roles())) || ($editPermission == 'both' && (in_array($notice->to, user_roles()) || $notice->added_by == user()->id))) || ($deletePermission == 'all' || ($deletePermission == 'added' && $notice->added_by == user()->id) || ($deletePermission == 'owned' && in_array($notice->to, user_roles())) || ($deletePermission == 'both' && (in_array($notice->to, user_roles()) || $notice->added_by == user()->id))))) @endif
@if (!is_null($notice->attachment)) @lang('app.viewAttachment') '/> @endif @if (in_array('admin', user_roles()))

@lang('app.readBy')

@if (count($readMembers) > 0) @foreach ($readMembers as $item) @if($notice->to == 'employee') @else @endif @endforeach @else -- @endif

@endif