<x-app-layout>
    @section('page-title', $pageTitle)
    <div class="d-flex align-items-center mb-4">
        <a href="{{ route('admin.rekomendasi.index') }}" class="btn btn-outline-secondary me-3">
            <i class="bi bi-arrow-left"></i>
        </a>
        <h3 class="my-0 fw-bold">Formulir Edit Rekomendasi</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">
                            <div class="mb-3"><label class="form-label">Judul</label><input type="text"
                                    class="form-control" value="{{ $rekomendasi['judul'] }}"></div>
                            <div class="mb-3"><label class="form-label">Kategori</label><input type="text"
                                    class="form-control" value="{{ $rekomendasi['kategori'] }}"></div>
                            <div class="mb-3"><label class="form-label">Link YouTube</label><input type="url"
                                    class="form-control" value="{{ $rekomendasi['youtube_link'] }}"></div>
                            <div class="mb-3"><label class="form-label">Deskripsi</label>
                                <textarea name="deskripsi" id="editor">{{ $rekomendasi['deskripsi'] }}</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>
    @push('scripts')
        <script src="https://cdn.ckeditor.com/4.22.1/standard/ckeditor.js"></script>
        <script>
            CKEDITOR.replace('editor');
        </script>
    @endpush
</x-app-layout>
