9943ec892e
- Add basic blade components based on already existing element on app - Add module to view online transaction trail, serve as debugger - Add module to review arrahn transaction vs billplz transaction, serve as debugger - Fix tetapan/payable-ujrah-branches error on api response - Add arrahn pay portal api url link in config. The billplz data is query from there
19 lines
576 B
PHP
19 lines
576 B
PHP
<?php
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Http;
|
|
use Carbon\Carbon;
|
|
|
|
class BillplzTransactionReviewController extends Controller
|
|
{
|
|
public function __invoke(Request $request)
|
|
{
|
|
$date = request()->selectedDate ?? Carbon::now()->toDateString();
|
|
|
|
$billPlzTransactionReview = Http::get(config('api.url_arrahn_portal') . '/api/billplz-transaction-review', ['date' => $date])->json();
|
|
|
|
return view('online.billplz-transaction-review.index', compact('billPlzTransactionReview', 'date'));
|
|
}
|
|
}
|