<?php

use App\Http\Controllers\GatewayController;
use App\Http\Controllers\CompanyController;
use App\Http\Controllers\LedgerController;
use App\Http\Controllers\VoucherController;

Route::get('/test', function() {
    return '<h1 style="color:green;">✅ Laravel is working! Database: '.DB::connection()->getDatabaseName().'</h1>';
});

Route::get('/',[GatewayController::class,'index']);

Route::get('/company/create',[CompanyController::class,'create']);
Route::post('/company/store',[CompanyController::class,'store']);

Route::get('/ledger/create',[LedgerController::class,'create']);
Route::post('/ledger/store',[LedgerController::class,'store']);

Route::get('/voucher/sales',[VoucherController::class,'sales']);
Route::get('/voucher/purchase',[VoucherController::class,'purchase']);
Route::get('/voucher/payment',[VoucherController::class,'payment']);
Route::get('/voucher/receipt',[VoucherController::class,'receipt']);
Route::get('/voucher/journal',[VoucherController::class,'journal']);