@extends('layouts.adminmaster') @section('styles') @endsection @section('content')

{{lang('Announcement Settings')}}

@csrf @honeypot
({{lang('If you enable this "All Users" setting feature, the "Announcement" will appear to both the users, i.e., for login users as well as non login users on the "Application.', 'setting')}})
({{lang('If you enable this "Only Login Users" setting feature, the "Announcement" will appear only for the Login users on the "Application."', 'setting')}})
({{lang('If you enable this "Non Logi Users" setting feature, the "Announcement" will appear for the non login users on the "Application."', 'setting')}})

{{lang('Announcements', 'menu')}}

@can('Announcements Create') {{-- {{lang('Add New Announcement')}} --}} {{lang('Add New Announcement')}} @endcan
@can('Announcements Delete') @endcan @can('Announcements Delete') @endcan @cannot('Announcements Delete') @endcannot @php $i = 1; @endphp @foreach($announcements as $announcement) @if($announcement->announcementday) @else @endif @endforeach
{{lang('Sl.No')}} {{lang('Title')}} {{lang('Start Date')}} {{lang('End Date')}} {{lang('Selected Day')}} {{lang('Status')}} {{lang('Actions')}}
{{$i++}} @if(Auth::user()->can('Announcements Delete')) @else @endif {{Str::limit($announcement->title, '40')}}~ ~ {{$announcement->announcementday}}{{$announcement->startdate->format(setting('date_format'))}} {{$announcement->enddate->format(setting('date_format'))}} ~ @if(Auth::user()->can('Announcements Edit')) @if($announcement->status == '1') @else @endif @else ~ @endif
@if(Auth::user()->can('Announcements Edit')) @else ~ @endif @if(Auth::user()->can('Announcements Delete')) @else ~ @endif
@endsection @section('modal') @include('admin.announcement.model') @endsection @section('scripts') @endsection