<?php

namespace App\Http\Controllers;

use App\Models\ExemptReason;
use Illuminate\Http\Request;

class ExemptReasonController extends Controller
{
    //
    public function delete(Request $request)
    {
        $projectNumber = $request->input('project_number');
        ExemptReason::where('project_number', $projectNumber)->delete();

        return response()->json(['message' => 'Exempt reasons deleted successfully'], 200);
    }
}
