@extends('layouts.master') @section('title','Notices') @section('action','Lists') @section('button') @can('create_notice') @endcan @endsection @section('main-content')
@include('admin.section.flash_message') @include('admin.notice.common.breadcrumb')
@can('show_notice') @endcan @canany(['edit_notice','delete_notice','send_notice']) @endcanany @forelse($notices as $key => $value) @can('show_notice') @endcan @canany(['edit_notice','delete_notice','send_notice']) @endcanany @empty @endforelse
# Title Publish Date ReceiverDescriptionStatusAction
{{(($notices->currentPage()- 1 ) * (\App\Models\Notice::RECORDS_PER_PAGE) + (++$key))}} {{ucfirst($value->title)}} {{ convertDateTimeFormat($value->notice_publish_date) ?? 'Not published yet'}}
    @foreach(($value->noticeReceiversDetail) as $key => $datum)
  • {{ $datum->employee ? ucfirst($datum->employee->name) : 'N/A'}}
  • @endforeach
    @can('edit_notice')
  • @endcan @can('delete_notice')
  • @endcan @can('send_notice')
  • @endcan

No records found!

{{$notices->appends($_GET)->links()}}
@include('admin.notice.show') @endsection @section('scripts') @include('admin.notice.common.scripts') @endsection