<?php

namespace App\Http\Controllers;

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

class ExemptDataController extends Controller
{
    public function create(Request $request)
    {
        return response()->json(['message' => 'Data created successfully']);
    }

    public function update(Request $request)
    {
        return response()->json(['message' => 'Data updated successfully']);
    }

    public function delete(Request $request)
    {
        $projectNumber = $request->input('project_number');
        ExemptData::where('project_number', $projectNumber)->delete();

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