<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\ProviderController;

Route::get('/provider/pending', [ProviderController::class, 'pending'])->middleware('permission:config.provider,view');
Route::patch('/provider/{id}/approve', [ProviderController::class, 'approve'])->middleware('permission:config.provider,edit');
Route::patch('/provider/{id}/reject', [ProviderController::class, 'reject'])->middleware('permission:config.provider,edit');
Route::get('/provider', [ProviderController::class, 'index'])->middleware('permission:config.provider,view');
Route::post('/provider', [ProviderController::class, 'store'])->middleware('permission:config.provider,add');
Route::get('/provider/{id}', [ProviderController::class, 'show'])->middleware('permission:config.provider,view');
Route::put('/provider/{id}', [ProviderController::class, 'update'])->middleware('permission:config.provider,edit');
Route::delete('/provider/{id}', [ProviderController::class, 'destroy'])->middleware('permission:config.provider,delete');
