<?php
/*
|--------------------------------------------------------------------------
| ColibriPlus - The Ultimate Social Network Web Application.
|--------------------------------------------------------------------------
| Author: Mansur Terla. Full-Stack Web Developer, UI/UX Designer.
| Website: www.terla.me
| E-mail: mansurtl.contact@gmail.com
| Instagram: @mansur_terla
| Telegram: @mansurtl_contact
|--------------------------------------------------------------------------
| Copyright (c)  ColibriPlus. All rights reserved.
|--------------------------------------------------------------------------
*/

use Illuminate\Support\Facades\Route;

Route::get('/', [App\Http\Controllers\Admin\Ad\AdController::class, 'index'])->name('admin.ads.index');

Route::middleware('sided.layout')->get('/show/{adId}', [App\Http\Controllers\Admin\Ad\AdController::class, 'show'])->name('admin.ads.show');
Route::post('/destroy/{adId}', [App\Http\Controllers\Admin\Ad\AdController::class, 'destroy'])->name('admin.ads.destroy');
Route::post('/approve/{adId}', [App\Http\Controllers\Admin\Ad\AdController::class, 'approve'])->name('admin.ads.approve');
Route::post('/reject/{adId}', [App\Http\Controllers\Admin\Ad\AdController::class, 'reject'])->name('admin.ads.reject');