update serahan online, lelong dan keseluruhan

This commit is contained in:
Ain Izazi
2025-03-16 12:25:05 +08:00
parent 02f48f7214
commit d8de04ade9
3 changed files with 33 additions and 5 deletions
+3 -1
View File
@@ -3065,7 +3065,9 @@ class KhazanahController extends Controller
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json(); $cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
$cawangan_detail=$cawangan[0]; $cawangan_detail=$cawangan[0];
return view('print.laporan_pendahuluanserahan', compact('pendser','cawangan_detail','tarikh_cetak','mula_date','hingga_date','api_url')); $jenisLaporan = $request->radpendser;
return view('print.laporan_pendahuluanserahan', compact('pendser','cawangan_detail','tarikh_cetak','mula_date','hingga_date','api_url','jenisLaporan'));
} }
public function laporanDenominasi() public function laporanDenominasi()
@@ -96,11 +96,24 @@
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datehingga" name="datehingga"> <input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datehingga" name="datehingga">
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak"> <input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
</div> </div>
<div class="row">
<div class="col-md-12 col-sm-8 mb-4">
<label for="radpendser">Pilih Jenis Laporan:</label>
<select name="radpendser" id="radpendser" class="form-control">
<option value="pendahuluan" selected>Pendahuluan</option>
<option value="serahan">Serahan</option>
<option value="online">Serahan Online</option>
<option value="serahanlelong">Serahan Lelong</option>
<option value="serahanonline">Serahan Keseluruhan</option>
<option value="all">Keseluruhan</option>
</select>
</div>
</div>
</form>
</div> </div>
</div> </div>
<br><br> <br><br>
<div class="row"> {{-- <div class="row">
<div class="col-md-12 col-sm-12 mb-4"> <div class="col-md-12 col-sm-12 mb-4">
@@ -114,7 +127,7 @@
<span>Serahan-Online</span> <span>Serahan-Online</span>
</div> </div>
</div> </div> --}}
</form> </form>
</div> </div>
@@ -169,10 +169,23 @@
</tr> --}} </tr> --}}
</table> </table>
<br> <br>
@php
$reportNames = [
'serahan' => 'LAPORAN SERAHAN HQ',
'pendahuluan' => 'LAPORAN PENDAHULUAN HQ',
'online' => 'LAPORAN SERAHAN ONLINE HQ',
'serahanlelong' => 'LAPORAN SERAHAN LELONG HQ',
'serahanonline' => 'LAPORAN SERAHAN DAN SERAHAN ONLINE HQ',
'all' => 'LAPORAN KESELURUHAN HQ'
];
$displayJenisLaporan = $reportNames[$jenisLaporan] ?? 'Laporan Tidak Diketahui';
@endphp
<table id="scan"> <table id="scan">
<tr> <tr>
<th colspan ="5"><b>LAPORAN PENDAHULUAN/SERAHAN HQ</b></th> {{-- <th colspan ="5"><b>LAPORAN PENDAHULUAN/SERAHAN HQ</b></th> --}}
<th colspan ="5"><b>{{ $displayJenisLaporan }} (arOSv2)</b></th>
<th> </th> <th> </th>
<th> </th> <th> </th>
<th></th> <th></th>