From 042cd579b025fa3785328f32309dec90ec545764 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Mon, 21 Oct 2024 00:46:45 +0800 Subject: [PATCH] added block specific cawangan transaction --- config/redeemoption.php | 4 +++- resources/views/customers/v2/info.blade.php | 2 ++ resources/views/penebusan/v2/index.blade.php | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config/redeemoption.php b/config/redeemoption.php index 5987f20..306610d 100644 --- a/config/redeemoption.php +++ b/config/redeemoption.php @@ -2,6 +2,8 @@ return [ 'enable_tambahpinjam' => env('ENABLE_TAMBAHPINJAM',1), 'enable_separuh' => env('ENABLE_SEPARUH',1), - 'enable_pembiayaansemula' => env('ENABLE_AUTOTAWARRUQ',1) + 'enable_pembiayaansemula' => env('ENABLE_AUTOTAWARRUQ',1), + 'enable_specific_block' => env('ENABLE_BLOCK',0), + 'cawangan_block' => env('CAWANGAN_BLOCK','011227') ]; ?> \ No newline at end of file diff --git a/resources/views/customers/v2/info.blade.php b/resources/views/customers/v2/info.blade.php index 970f9c6..bf7a5e7 100644 --- a/resources/views/customers/v2/info.blade.php +++ b/resources/views/customers/v2/info.blade.php @@ -135,9 +135,11 @@
+ @if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block'))
Daftar Pembiayaan
+ @endif
diff --git a/resources/views/penebusan/v2/index.blade.php b/resources/views/penebusan/v2/index.blade.php index a31a109..6501b41 100644 --- a/resources/views/penebusan/v2/index.blade.php +++ b/resources/views/penebusan/v2/index.blade.php @@ -93,14 +93,20 @@ @if($gadai['tagbaru'] == 1) @if(config('redeemoption.enable_separuh') == 1) + @if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block')) + @endif @endif @if(config('redeemoption.enable_tambahpinjam') == 1) + @if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block')) + @endif @endif @endif @if(config('redeemoption.enable_pembiayaansemula') == 1) + @if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block')) + @endif @endif