<?php

use Illuminate\Support\Facades\Route;
use App\Components\SoftDelete\Http\Controllers\SoftDeleteController;

/*
|--------------------------------------------------------------------------
| Soft Delete Conflict Resolution Routes
|--------------------------------------------------------------------------
|
| These routes provide endpoints for handling soft delete conflicts in the UI.
| They are prefixed with 'admin/soft-delete' and require authentication.
|
*/

Route::prefix('admin/soft-delete')->name('admin.soft-delete.')->middleware(['web', 'auth'])->group(function () {
    Route::post('check-conflict', [SoftDeleteController::class, 'checkSoftDeleteConflict'])
        ->name('check-conflict');

    Route::post('resolve-conflict/{id}', [SoftDeleteController::class, 'resolveSoftDeleteConflict'])
        ->name('resolve-conflict');
});
