mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
96 lines
3.3 KiB
PHP
96 lines
3.3 KiB
PHP
<?php
|
|
|
|
use App\Classes\ValueObjects\Constants\TransactionType;
|
|
use App\Models\Booking;
|
|
use App\Models\User;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Maatwebsite\Excel\Excel;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('', function () {
|
|
return view('pages.accounts.login');
|
|
})->name('login');
|
|
|
|
Route::get('/account/email/verification/{token}', function ($token) {
|
|
return view('pages.accounts.email_verified', ['token' => $token]);
|
|
})->name('account.email.verification');
|
|
|
|
Route::get('/account/password/reset/{token}', function ($token) {
|
|
return view('pages.accounts.reset_password', ['token' => $token]);
|
|
})->name('account.password.reset');
|
|
|
|
Route::get('/dashboard', function () {
|
|
return view('pages.dashboards.index');
|
|
})->name('dashboard');
|
|
|
|
Route::get('/banks', function () {
|
|
return view('pages.banks.index');
|
|
})->name('banks');
|
|
|
|
|
|
Route::get('/settings', function () {
|
|
return view('pages.settings');
|
|
})->name('settings');
|
|
|
|
Route::get('/customers', function () {
|
|
return view('pages.customers.index');
|
|
})->name('customers');
|
|
|
|
Route::get('/customer/{marking}', function ($marking) {
|
|
$id = \App\Models\Company::where('reference', '=', $marking)->first()->id;
|
|
return view('pages.customers.profile', ['id' => $id]);
|
|
})->name('customer.profile');
|
|
|
|
Route::get('/payments', function () {
|
|
return view('pages.payments');
|
|
})->name('payments');
|
|
|
|
Route::get('/currency_orders', function () {
|
|
return view('pages.currency_orders');
|
|
})->name('currency_orders');
|
|
|
|
Route::get('/transfers', function () {
|
|
return view('pages.bookings.index');
|
|
})->name('bookings');
|
|
|
|
Route::get('/bookings/urgent', function () {
|
|
return view('pages.urgent_list');
|
|
})->name('bookings.urgent');
|
|
|
|
Route::get('/transfer/{marking}', function ($marking) {
|
|
return view('pages.bookings.profile', ['marking' => $marking]);
|
|
})->name('booking.details');
|
|
|
|
Route::get('/transfer/merge/{marking}', function ($marking) {
|
|
return view('pages.bookings.merge', ['marking' => $marking]);
|
|
})->name('booking.merge');
|
|
|
|
Route::get('/online_payment/redirect', 'Billplz\CallbackBillplzController@callback')->name('online_payment.redirect');
|
|
|
|
Route::get('/export/customers/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@export');
|
|
Route::get('/export/transactions/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@transactions');
|
|
|
|
Route::get('/products', function (\App\Classes\Modules\Exports\Services\ExportsProducts $exportsProducts) {
|
|
return $exportsProducts->download('products.csv', Excel::CSV, ['Content-Type' => 'text/csv']);
|
|
})->name('products.random');
|
|
|
|
|
|
//Route::get('/duplicated_bills', function (Request $request) {
|
|
// Auth()->login(User::find(1));
|
|
// $bookings = Booking::whereIn('id', [10391, 10275, 10109, 10108, 10070, 10066, 10063, 9801, 9166, 8895, 8790, 8544, 8264, 6957, 5409, 4717])->with('transactions')->pluck('marking');
|
|
// dd($bookings);
|
|
//
|
|
//})->name('x2.data');
|