Add module to determine ujrah payment can be paid or not using parameters

This commit is contained in:
Afiq Hamzah
2024-05-20 10:49:48 +08:00
parent 8fe347d9e9
commit c219a29deb
5 changed files with 221 additions and 18 deletions
+10 -1
View File
@@ -11,7 +11,7 @@ use Carbon\Carbon;
class TetapanController extends Controller
{
public function home(){
$auth_user = Auth::user();
@@ -32,4 +32,13 @@ class TetapanController extends Controller
return view('tetapan.margin',compact('api_url','auth_user'));
}
public function payableUjrahBranches()
{
$api_url = config('api.url');
$auth_user = Auth::user();
$payable_cawangan = json_decode( Http::get(config('api.url').'/api/payable-ujrah-branches')->json() );
return view('tetapan.payable-ujrah-branches',compact('api_url','auth_user', 'payable_cawangan'));
}
}