Aplikasi_Rekber/routes/web.php

111 lines
3.3 KiB
PHP

<?php
use App\Http\Controllers\Admin\RefundController;
use Illuminate\Support\Facades\Route;
use App\Models\Refunds;
use App\Models\Refund;
use App\Models\Settings;
use App\Models\Setting;
use App\Models\Transactions;
use App\Models\Transaction;
use App\Models\User;
use App\Http\Controllers\Admin\UserController;
use App\Http\Controllers\Admin\SettingController;
use App\Http\Controllers\Admin\TransactionController;
// use Illuminate\Foundation\Auth\User;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/welcome', function () {
return view('welcome'
);
});
Route::get('/', function () {
return view('index',[
'name'=>'Jilhan Haura',
"transaction"=>Transactions::allTransactions()
]);
})->name('index');
Route::get('/detail_transaction', function () {
return view('admin/transaction/detail-transaction',[
'name'=>'Jilhn Haura',
'detail_transaction' => Transactions::allDetailTransactions()
]);
})->name('transaction.detail');
// Route::get('/history_transaction', function () {
// return view('admin/transaction/History_Transaction',[
// 'name'=>'Jilhan Haura',
// "transaction"=> Transactions::allTransactions()
// ]);
// });
// Route::get('/history_refund', function () {
// return view('admin/refund/history-refund',[
// 'name'=>'Jilhan Haura',
// "history_refund" => Refunds::HistoryRefund()
// ]);
// });
// Route::get('/refund',[RefundController::class,'index']);
Route::get('/detail_refund',function() {
return view('admin/refund/detail-refund',[
'name'=>'Jilhan Haura',
"detail_refund"=> Refunds::DetailRefund()
]);
})->name('refund.detail');
Route::get('/next_detail_refund',function() {
return view('admin/refund/next-detail-refund',[
'name'=>"Jilhan Haura"
]);
});
// Route::get('/list_user',function() {
// return view('Admin/users/list-user',[
// 'name'=>"Jilhan Haura",
// "list_users" => Users::listUsers()
// ]);
// });
// Route::get('/detail-user',function() {
// return view('Admin/users/detail-user',[
// 'name'=>"Jilhan Haura",
// "detail_user" => Users::detailUser()
// ]);
// });
Route::get('/profile',function() {
return view('admin/profile/index',[
'name'=>"Jilhan Haura",
]);
});
// Route::get('/setting',function() {
// return view('admin/setting/index',[
// 'name'=>"Jilhan Haura",
// "setting" => Settings:: HistorySetting()
// ]);
// });
// --------------------------------------------------------------------------------------------
// Route::get('/Ini', function () {
// return view('user/index',[
// 'name'=>'Jilhan Haura',
// "transaction"=>Transactions::allTransactions()
// ]);
// });
Route::resource('user', UserController::class);
Route::resource('transaction', TransactionController::class);
Route::resource('setting',SettingController::class);
Route::resource('refund',RefundController::class);