@extends('backend.layouts.grid') @section('title', __('Notice Board')) @section('link', route('admin.noticeBoard.create')) @section('content')
@foreach ($noticeBoardList as $key => $noticeBoard) @if($noticeBoard->notice_type == 1) @elseif($noticeBoard->notice_type == 2) @else @endif @endforeach
{{ __('#') }} {{ __('Campus') }} {{ __('Shift') }} {{ __('Class') }} {{ __('Section') }} {{ __('Student') }} {{ __('Title') }} {{ __('Content') }} {{ __('Notice Date') }} {{ __('Created Date') }} {{ __('Action') }}
{{ $noticeBoard->id }} {{ str_replace(',',', ',$noticeBoard->campus) }} {{ $noticeBoard->shift }} {{ shortertext($noticeBoard->class_id, 50) }} @if($noticeBoard->section == 0) {{ 'All' }} @else {{ studentSection($noticeBoard->section) }} @endif {{ ($noticeBoard->student_id == 0)?"All":$noticeBoard->student_id }} {{ shortertext($noticeBoard->title, 30) }} {{ $noticeBoard->image }} {!! shortertext($noticeBoard->content, 70) !!}{{ date('d M, Y', strtotime($noticeBoard->notice_date)) }} {{ vDate($noticeBoard->created_at) }}
@endsection