90 lines
2.5 KiB
PHP
90 lines
2.5 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Models\Refund;
|
|
use App\Models\Setting;
|
|
use App\Models\transaction;
|
|
use App\Models\Users;
|
|
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"=>transaction::allTransactions()
|
|
]);
|
|
});
|
|
Route::get('/detail_transaction', function () {
|
|
return view('Admin/transaction/detail-transaction',[
|
|
'name'=>'Jilhn Haura',
|
|
'detail_transaction' => transaction::allDetailTransactions()
|
|
]);
|
|
});
|
|
Route::get('/history_transaction', function () {
|
|
return view('Admin/transaction/History_Transaction',[
|
|
'name'=>'Jilhan Haura',
|
|
"transaction"=> transaction::allTransactions()
|
|
]);
|
|
});
|
|
Route::get('/history_refund', function () {
|
|
return view('Admin/refund/history-refund',[
|
|
'name'=>'Jilhan Haura',
|
|
"history_refund" => Refund::HistoryRefund()
|
|
]);
|
|
});
|
|
Route::get('/detail_refund',function() {
|
|
return view('Admin/refund/detail-refund',[
|
|
'name'=>'Jilhan Haura',
|
|
"detail_refund"=> Refund::DetailRefund()
|
|
]);
|
|
});
|
|
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" => Setting:: HistorySetting()
|
|
]);
|
|
});
|
|
|
|
// --------------------------------------------------------------------------------------------
|
|
|
|
Route::get('/User', function () {
|
|
return view('User/index',[
|
|
'name'=>'Jilhan Haura',
|
|
"transaction"=>transaction::allTransactions()
|
|
]);
|
|
}); |