26 lines
872 B
PHP
26 lines
872 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 index(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'));
|
|
}
|
|
|
|
public function show($bill_id)
|
|
{
|
|
$billPlzTransactionReview = Http::get(config('api.url_arrahn_portal') . '/api/billplz-transaction-review/'. $bill_id)->json();
|
|
|
|
return view('online.billplz-transaction-review.show', compact('billPlzTransactionReview', 'bill_id'));
|
|
}
|
|
}
|