@extends('layouts.app') @section('title', 'FYP Information - Admin') @section('content') {{-- Information Form --}}
Information
@csrf
@error('description')
{{ $message }}
@enderror
{{-- Information List --}}
List of Information
@forelse($announcements as $i => $a) @empty @endforelse
# Information Posted By Date Actions
{{ $announcements->firstItem() + $i }} {{ Str::limit($a->description, 120) }} {{ $a->creatorDisplayName() }} {{ $a->created_at->format('d M Y H:i') }}
No information posted yet.
{{ $announcements->withQueryString()->links() }}
{{-- Attachment & Template Section --}}
Attachment & Template
{{-- Existing templates (each row's Delete is handled by JS, no forms here) --}} @foreach($templates as $i => $tpl) @endforeach
No Attachment / Template Uploaded Actions
{{ $i + 1 }} {{ Str::replaceFirst('[TEMPLATE] ', '', $tpl->title) }} @foreach($tpl->attachments as $att) 📄 {{ $att->file_name }} @endforeach {{ $tpl->created_at->format('d M Y') }}
{{-- Add New Template Form (standalone POST form, NO _method override) --}}
@csrf
No New Attachment / Template Upload
1
{{-- Edit Template Modal --}} {{-- Edit Info Modal --}} @push('scripts') @endpush @endsection