@extends('layouts.app_layout') @section('content')

{{ $announcement->title ?? '—' }}

{{ $announcement->title_hi ?? '—' }}

{{ $announcement->description ?? '—' }}

{{ $announcement->description_hi ?? '—' }}

{{ ucfirst($announcement->file_or_link) ?? '—' }}

@if ($announcement->file_or_link === 'file')
@if ($announcement->file_name)

View Document

@else

No file uploaded.

@endif
@if ($announcement->file_name_hi)

View Document

@else

No Hindi file uploaded.

@endif
@elseif ($announcement->file_or_link === 'link') @endif

{!! $announcement->status ? 'Active' : 'Inactive' !!}


@if ($announcement->is_approved == 1) Approved @elseif ($announcement->is_approved == 2) Rejected @else Pending @endif

{!! $announcement->is_published ? 'Published' : 'Not Published' !!}

{{ $announcement->remarks ? $announcement->remarks :'No remarks available' }}

@can('approve announcement')
Approval Form
@csrf
@endcan @can('publish announcement')
Publish Form
@csrf
@endcan
@endsection @section('pages-scripts') @can('approve announcement') @endcan @can('publish announcement') @endcan @endsection