<div class="offcanvas offcanvas-end" id="offcanvasEditAdat" aria-labelledby="offcanvasEditAdatLabel">
    <div class="offcanvas-header border-bottom">
        <h5 id="offcanvasEditAdatLabel" class="offcanvas-title">Edit Adat</h5>
        <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
    </div>
    
    <div class="offcanvas-body mx-0 flex-grow-0 p-6 h-100">
        <form id="editAdatForm" class="pt-0">
            @csrf
            <input type="hidden" id="edit-adat-id" name="id">
            
            <div class="mb-4">
                <label class="form-label" for="edit-adat-provinsi">Provinsi</label>
                <select id="edit-adat-provinsi" class="select2 form-select" data-placeholder="Pilih Provinsi">
                    <option value="">Pilih Provinsi</option>
                    @foreach($provinsi as $prov)
                        <option value="{{ $prov->id }}">{{ $prov->nama }}</option>
                    @endforeach
                </select>
            </div>

            <div class="mb-4">
                <label class="form-label" for="edit-adat-kabupaten">Kabupaten/Kota</label>
                <select id="edit-adat-kabupaten" class="select2 form-select" data-placeholder="Pilih Kabupaten/Kota" disabled>
                    <option value="">Pilih Kabupaten/Kota</option>
                </select>
            </div>

            <div class="mb-4">
                <label class="form-label" for="edit-adat-kecamatan">Kecamatan</label>
                <select id="edit-adat-kecamatan" class="select2 form-select" data-placeholder="Pilih Kecamatan" disabled>
                    <option value="">Pilih Kecamatan</option>
                </select>
            </div>

            <div class="mb-6 form-control-validation">
                <label class="form-label" for="edit-adat-desa">Desa/Kelurahan<span class="text-danger">*</span></label>
                <select id="edit-adat-desa" name="desa_kelurahan_id" class="select2 form-select" data-placeholder="Pilih Desa/Kelurahan" disabled>
                    <option value="">Pilih Desa/Kelurahan</option>
                </select>
            </div>

            <div class="mb-6 form-control-validation">
                <label class="form-label" for="edit-adat-nama">Nama Adat<span class="text-danger">*</span></label>
                <input type="text" class="form-control" id="edit-adat-nama" name="nama" />
            </div>

            <div class="mt-8">
                <button type="submit" class="btn btn-primary me-3">Update Data</button>
                <button type="reset" class="btn btn-label-danger" data-bs-dismiss="offcanvas">Cancel</button>
            </div>
        </form>
    </div>
</div>