@extends('layouts.appmin')

@section('content')
<div class="container">
    <h3 class="mb-4">Kemaskini Pengumuman</h3>

    <form action="{{ route('pengumuman.update', $pengumuman->id) }}" method="POST">
        @csrf
        @method('PUT')
        <div class="mb-3">
            <label for="keterangan" class="form-label">Keterangan</label>
            <input type="text" name="keterangan" class="form-control" value="{{ $pengumuman->keterangan }}" required>
        </div>

        <div class="mb-3">
            <label for="tarikh_mula_papar" class="form-label">Tarikh Mula Papar</label>
            <input type="date" name="tarikh_mula_papar" class="form-control" value="{{ $pengumuman->tarikh_mula_papar }}" required>
        </div>

        <div class="mb-3">
            <label for="tarikh_tamat_papar" class="form-label">Tarikh Tamat Papar</label>
            <input type="date" name="tarikh_tamat_papar" class="form-control" value="{{ $pengumuman->tarikh_tamat_papar }}" required>
        </div>

        <button type="submit" class="btn btn-primary">Simpan Perubahan</button>
    </form>
</div>
@endsection