@extends('dashboard.base') @section('content')

{{ isset($notice) ? 'Edit Public Notice' : 'Create Public Notice' }}

Prepare concise notices for the public website.

Back to Notices
@if($errors->any())
Please fix the highlighted fields.
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- 1. Dynamic Route Switching --}}
@csrf {{-- 2. PUT method spoofing for Edit --}} @if(isset($notice)) @method('PUT') @endif
Notice Details
Publishing
@if(isset($notice) && $notice->image_url) {{ $notice->title }} @else No image uploaded @endif
JPG, PNG, or WebP. Maximum size: 10MB.
Cancel {{-- 3. Explicit Type Submit --}}
{{-- 4. Completed JavaScript --}} @endsection