<div class="modal fade" id="modalEdit" tabindex="-1" aria-labelledby="modalEditRoleLabel" aria-hidden="true">
    <div class="modal-dialog ">
        <form id="formEdit">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">Ubah Status</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Tutup"></button>
                </div>
                <div class="modal-body">
                    <input type="hidden" name="edit-id" id="edit-id">
                    <div class="mb-3">
                        <label for="title" class="form-label">Judul Inspeksi</label>
                        <input type="text" name="title" id="edit-title" required class="form-control"
                            placeholder="Masukkan judul inspeksi">
                    </div>
                    <div class="mb-3">
                        <label for="title" class="form-label">Tipe Inspeksi</label>
                        <select name="type_unit" id="edit-type_unit" class="form-control type-unit">
                            <option value="">Pilih Tipe Inspeksi</option>
                            @foreach ($typeUnit as $tp)
                                <option value="{{$tp->id}}">{{$tp->name}}</option>
                            @endforeach
                        </select>
                    </div>

                    <div class="mb-3">
                        <label for="title" class="form-label">Catatan</label>
                        <textarea name="note" id="edit-note" class="form-control" rows="4"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-light" data-bs-dismiss="modal">Tutup</button>
                    <button type="submit" class="btn btn-primary">Simpan</button>
                </div>
            </div>
        </form>
    </div>
</div>
