TIF_NGANJUK_E41220778/resources/views/admin/pengumuman/edit.blade.php

53 lines
2.8 KiB
PHP

<x-app-layout>
@section('page-title', $pageTitle)
<div class="d-flex align-items-center mb-4">
<a href="{{ route('admin.pengguna.index') }}" class="btn btn-outline-secondary me-3">
<i class="bi bi-arrow-left"></i>
</a>
<h3 class="my-0 fw-bold">Formulir Edit Pengumuman</h3>
</div>
<div class="row justify-content-center">
<div class="col-md-10">
<div class="card border-0 shadow-sm">
<div class="card-body p-4">
<div class="card-body">
<form action="#" method="POST">
{{-- Form ini tidak akan berfungsi karena tidak ada backend --}}
<div class="mb-3">
<label for="judul" class="form-label">Judul Pengumuman</label>
<input type="text" class="form-control" id="judul"
value="{{ $pengumuman['title'] }}">
</div>
<div class="mb-3">
<label for="tipe" class="form-label">Tipe Pengumuman</label>
<select class="form-select" id="tipe">
<option>Pilih tipe...</option>
<option value="info" @if ($pengumuman['type'] == 'info') selected @endif>Info
</option>
<option value="success" @if ($pengumuman['type'] == 'success') selected @endif>Success
</option>
<option value="warning" @if ($pengumuman['type'] == 'warning') selected @endif>Warning
</option>
<option value="danger" @if ($pengumuman['type'] == 'danger') selected @endif>Danger
</option>
<option value="secondary" @if ($pengumuman['type'] == 'secondary') selected @endif>
Secondary</option>
</select>
</div>
<div class="mb-3">
<label for="content" class="form-label">Isi Pengumuman</label>
<textarea class="form-control" id="content" rows="5">{{ $pengumuman['content'] }}</textarea>
</div>
<hr>
<div class="d-flex justify-content-end">
<button type="submit" class="btn btn-primary">Simpan Perubahan</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</x-app-layout>