added block specific cawangan transaction
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
return [
|
return [
|
||||||
'enable_tambahpinjam' => env('ENABLE_TAMBAHPINJAM',1),
|
'enable_tambahpinjam' => env('ENABLE_TAMBAHPINJAM',1),
|
||||||
'enable_separuh' => env('ENABLE_SEPARUH',0),
|
'enable_separuh' => env('ENABLE_SEPARUH',1),
|
||||||
'enable_pembiayaansemula' => env('ENABLE_AUTOTAWARRUQ',0)
|
'enable_pembiayaansemula' => env('ENABLE_AUTOTAWARRUQ',1),
|
||||||
|
'enable_specific_block' => env('ENABLE_BLOCK',0),
|
||||||
|
'cawangan_block' => env('CAWANGAN_BLOCK','011227')
|
||||||
];
|
];
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -119,39 +119,28 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- footer card -->
|
<div class="col-md-12 mt-md-3 justify-content-between form-group row">
|
||||||
<div class="mr-4 form-group d-flex justify-content-end">
|
<div class="btn-group btn-group-toggle col-md-6" data-toggle="buttons">
|
||||||
<button class="btn btn-primary button-spacing" data-toggle="modal" data-target="#customer_detail">Maklumat Pelanggan</button>
|
<label class="btn btn-primary">
|
||||||
</div>
|
<input type="radio" name="options" id="option1" value="belum_tebus" autocomplete="off" checked>Pembiayaan Belum Selesai
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- button -->
|
|
||||||
|
|
||||||
<div class="col-md-10 mt-md-2 justify-content-between form-group row">
|
|
||||||
<div class="btn-group btn-group-toggle d-flex flex-fill" data-toggle="buttons">
|
|
||||||
<label class="btn btn-secondary flex-fill">
|
|
||||||
<input type="radio" name="options" id="option1" value="belum_tebus" autocomplete="off" checked>
|
|
||||||
Pembiayaan Belum Selesai
|
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-secondary flex-fill">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="options" id="option2" value="sudah_tebus" autocomplete="off">
|
<input type="radio" name="options" id="option2" value="sudah_tebus" autocomplete="off">Pembiayaan Sudah Selesai
|
||||||
Pembiayaan Sudah Selesai
|
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-secondary flex-fill">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="options" id="option3" value="lelong" autocomplete="off">
|
<input type="radio" name="options" id="option3" value="lelong" autocomplete="off">Lelong
|
||||||
Lelong
|
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class='col-md-3'>
|
||||||
|
<button class='btn btn-primary' data-toggle="modal" data-target="#customer_detail">Maklumat Pelanggan</button>
|
||||||
|
</div>
|
||||||
|
@if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block'))
|
||||||
|
<div class="col-md-3 text-right">
|
||||||
|
<a class="btn btn-primary" style="margin-right:-50px" id="daftar_gadai">Daftar Pembiayaan</a>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- card -->
|
|
||||||
|
|
||||||
<div class="col-md-12 col-lg-12">
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<nav class="mb-3">
|
<nav class="mb-3">
|
||||||
|
|||||||
@@ -93,15 +93,21 @@
|
|||||||
@if($gadai['tagbaru'] == 1)
|
@if($gadai['tagbaru'] == 1)
|
||||||
<option value="A" {{ $gadai['tempoh'] >= 12 ? 'disabled' : '' }}>A = Ansuran Pembiayaan</option>
|
<option value="A" {{ $gadai['tempoh'] >= 12 ? 'disabled' : '' }}>A = Ansuran Pembiayaan</option>
|
||||||
@if(config('redeemoption.enable_separuh') == 1)
|
@if(config('redeemoption.enable_separuh') == 1)
|
||||||
|
@if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block'))
|
||||||
<option value="S">S = Sebahagian</option>
|
<option value="S">S = Sebahagian</option>
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
@if(config('redeemoption.enable_tambahpinjam') == 1)
|
@if(config('redeemoption.enable_tambahpinjam') == 1)
|
||||||
|
@if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block'))
|
||||||
<option value="P">P = Tambah Pembiayaan</option>
|
<option value="P">P = Tambah Pembiayaan</option>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
@if(config('redeemoption.enable_pembiayaansemula') == 1)
|
@if(config('redeemoption.enable_pembiayaansemula') == 1)
|
||||||
|
@if(config('redeemoption.enable_specific_block') == 0 || Auth::user()->cawangan !== config('redeemoption.cawangan_block'))
|
||||||
<option value="AT">PS = Pembiayaan Semula</option>
|
<option value="AT">PS = Pembiayaan Semula</option>
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
<option value="" disabled hidden>Pilih Jenis Penyelesaian Pembiayaan</option>
|
<option value="" disabled hidden>Pilih Jenis Penyelesaian Pembiayaan</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user