@extends('layouts.master') @section('title','Notices') @section('action','Lists') @section('button') @can('create_notice') Create Notice @endcan @endsection @section('main-content') @include('admin.section.flash_message') @include('admin.notice.common.breadcrumb') Notice Lists Receiver @if(\App\Helpers\AppHelper::ifDateInBsEnabled()) Published From Publish To @else Published From Publish To @endif Filter Reset # Title Publish Date Receiver @can('show_notice') Description @endcan Status @canany(['edit_notice','delete_notice','send_notice']) Action @endcanany @forelse($notices as $key => $value) {{(($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('show_notice') @endcan is_active) == 1 ?'checked':''}}> @canany(['edit_notice','delete_notice','send_notice']) @can('edit_notice') @endcan @can('delete_notice') @endcan @can('send_notice') send notice @endcan @endcanany @empty No records found! @endforelse {{$notices->appends($_GET)->links()}} @include('admin.notice.show') @endsection @section('scripts') @include('admin.notice.common.scripts') @endsection
No records found!