@forelse ($data['notice-boards'] ?? [] as $key => $row)
| {{ ++$key }} |
{{ $row->title }} {{ $row->id }} |
{{ @$row->department->name }} |
@if ($row->student)
{{ $row->student->full_name }} - {{ $row->class->name }}
({{ $row->section->name }})
@elseif($row->class && $row->section)
{{ @$row->class->name }} ({{ @$row->section->name }}) -
{{ ___('common.All Students') }}
@elseif($row->class)
{{ $row->class->name }} - {{ ___('common.All Students') }}
@endif
|
{{ $row->visible_role_names ? $row->visible_role_names : ___('common.To All') }}
|
{{ date('d-m-Y', strtotime(@$row->date)) }} |
{{ date('d-m-Y H:i a', strtotime(@$row->publish_date)) }} |
{!! \Illuminate\Support\Str::limit(strip_tags(@$row->description), 40) !!} |
|
@if ($row->status == App\Enums\Status::ACTIVE)
{{ ___('common.active') }}
@else
{{ ___('common.inactive') }}
@endif
|
@if (hasPermission('homework_update') || hasPermission('homework_delete'))
|
@endif
@empty
{{ ___('common.no_data_available') }}
{{ ___('common.please_add_new_entity_regarding_this_table') }}
|
@endforelse