<?php

// Admin web routes  for student
Route::group(['prefix' => trans_setlocale().'/admin/student'], function () {
    Route::resource('student', 'Assetdocs\Student\Http\Controllers\StudentAdminController');
});

// Admin API routes  for student
Route::group(['prefix' => trans_setlocale().'api/v1/admin/student'], function () {
    Route::resource('student', 'Assetdocs\Student\Http\Controllers\StudentAdminApiController');
});

// User web routes for student
Route::group(['prefix' => trans_setlocale().'/user/students'], function () {
    Route::resource('/', 'Assetdocs\Student\Http\Controllers\StudentUserController');
});

// User API routes for student
Route::group(['prefix' => trans_setlocale().'api/v1/user/students'], function () {
    Route::resource('/', 'Assetdocs\Student\Http\Controllers\StudentUserApiController');
});

// Public web routes for student
Route::group(['prefix' => trans_setlocale().'/students'], function () {
    Route::get('/', 'Assetdocs\Student\Http\Controllers\StudentController@index');
    Route::get('/{slug?}', 'Assetdocs\Student\Http\Controllers\StudentController@show');
});

// Public API routes for student
Route::group(['prefix' => trans_setlocale().'api/v1/students'], function () {
    Route::get('/', 'Assetdocs\Student\Http\Controllers\StudentApiController@index');
    Route::get('/{slug?}', 'Assetdocs\Student\Http\Controllers\StudentApiController@show');
});