@extends('backEnd.master') @section('title') @lang('communicate.notice_board') @endsection @section('mainContent')

@lang('communicate.all_notices')

@if (userPermission('add-notice')) @endif
@php $i = 0; @endphp @if (isset($allNotices)) @foreach ($allNotices as $value)
@php $i++; @endphp
{!! $value->notice_message !!}

@lang('communicate.publish_date') : {{ @$value->publish_on != '' ? dateConvert(@$value->publish_on) : '' }}

@lang('communicate.notice_date') : {{ @$value->notice_date != '' ? dateConvert(@$value->notice_date) : '' }}

@lang('communicate.created_by') : {{ @$value->users != '' ? @$value->users->full_name : '' }}

@php $roleData = json_decode($value->inform_to); @endphp @if (isset($roleData)) @foreach ($roleData as $role) @php $name = \Modules\RolePermission\Entities\InfixRole::select('name') ->where('id', $role) ->first(); @endphp

{{ @$name->name }}

@endforeach @endif
@endforeach @endif
@endsection