@extends('admin.layouts.app') @section('title', get_setting('site_name').' | Notice Board') @push('css') @endpush @section('content')

Notice Board

Publish announcements for all branches or a specific location.

@can('Notice-create') @endcan
@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
{{ (int) ($noticeStats->total ?? 0) }}
{{ __('Notices') }}
{{ (int) ($noticeStats->with_attachment ?? 0) }}
{{ __('With Attachment') }}
{{ (int) ($noticeStats->all_branch_count ?? 0) }}
{{ __('All-Branch') }}
{{ __('Notice List') }} {{ __('Clear Filters') }}
@forelse($notices as $notice) @empty @endforelse
# {{ __('Notice') }} {{ __('Scope') }} {{ __('Attachment') }} {{ __('Posted') }} {{ __('Action') }}
{{ $notices->firstItem() + $loop->index }}
{{ $notice->title }}
{{ $notice->plainContentExcerpt(160) }}
@if($notice->warehouse_id === null) {{ __('All Branches') }} @else {{ $notice->warehouse?->name ?? __('Branch') }} @endif @if($notice->attach) @else @endif
{{ optional($notice->created_at)->format('d M Y') }}
{{ optional($notice->created_at)->format('h:i A') }}
@can('Notice-edit') @endcan @can('Notice-delete') @endcan
{{ __('No notices found for the selected filters.') }}
@if($notices->hasPages()) @endif
@include('modals.delete_modal') @endsection @section('modal') @endsection @section('script') @endsection