@extends('admin.layout.master') @section('title','NOTICE') @section('content')

Notice

@if(checkAuthPermission('admin.notice.create')) Create @endif
@foreach ($notices as $n) @endforeach
# Subject Description Posted At Posted By Designation Department User Status Action
{{ $loop->iteration }} {{ $n->subject }} {!! $n->description !!} {{ date('d-m-Y', strtotime($n->created_at)) }} {{ $n->posted_by->name ?? "" }} {{ $designations->whereIn('id', explode(',', $n->designation_ids))->pluck('name')->implode(', ') }} {{ $departments->whereIn('id', explode(',', $n->department_ids))->pluck('name')->implode(', ') }} {{ $admins->whereIn('id', explode(',', $n->admin_ids))->pluck('name')->implode(', ') }} {{ $n->status == 1 ? 'Active' : 'Inactive' }} @if(checkAuthPermission('admin.notice.edit')) Edit @endif
@endsection