add laporan audit
This commit is contained in:
@@ -82,18 +82,14 @@
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 mx-auto">
|
||||
<div class="col-md-5 mx-auto">
|
||||
<form action="{{ route('audittrail.laporancetak') }}" method="post">
|
||||
@csrf
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text" id="basic-addon1">Mula</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Pilih Tarikh" aria-label="Tarikh" id="datemula" name="datemula">
|
||||
<div class="input-group-prepend ml-2">
|
||||
<span class="input-group-text" id="basic-addon1">Hingga</span>
|
||||
</div>
|
||||
<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="dateaudit" name="dateaudit">
|
||||
<input type="submit" class="btn btn-primary ml-md-5" id="submit_button" name="submit_button" value="Cetak">
|
||||
</div>
|
||||
|
||||
@@ -117,15 +113,7 @@
|
||||
var today = new Date();
|
||||
|
||||
var dateObject = '';
|
||||
$('#datemula').datepicker({
|
||||
maxViewMode:1,
|
||||
format: 'dd-mm-yyyy',
|
||||
autoclose:true,
|
||||
endDate: "today",
|
||||
maxDate: today
|
||||
});
|
||||
|
||||
$('#datehingga').datepicker({
|
||||
$('#dateaudit').datepicker({
|
||||
maxViewMode:1,
|
||||
format: 'dd-mm-yyyy',
|
||||
autoclose:true,
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<th colspan ="5"><b>LAPORAN SENARAI HARGA EMAS</b></th>
|
||||
<th colspan ="5"><b>LAPORAN AUDIT TRAIL</b></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th></th>
|
||||
@@ -193,18 +193,18 @@
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:20px"> <b>MULA:</b></td>
|
||||
<td style="width:20px"> <b>TARIKH:</b></td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $mula_date);
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp</td>
|
||||
<td style="width:20px"> <b>HINGGA:</b></td>
|
||||
{{-- <td style="width:20px"> <b>HINGGA:</b></td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $hingga_date);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
@endphp</td>
|
||||
@endphp</td> --}}
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
@@ -219,12 +219,13 @@
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Tarikh</th>
|
||||
<th>Masa</th>
|
||||
<th>Teller</th>
|
||||
<th>Pelulus</th>
|
||||
<th>Act</th>
|
||||
<th>Transaksi</th>
|
||||
{{-- <th>Transaksi</th> --}}
|
||||
<th>Norujukan</th>
|
||||
<th>Ping Lama</th>
|
||||
<th>Pinj. Lama</th>
|
||||
<th>Pinjaman</th>
|
||||
<th>Upah</th>
|
||||
<th>Nota</th>
|
||||
@@ -232,13 +233,22 @@
|
||||
<th>Norujukan Asal</th>
|
||||
</tr>
|
||||
@php $counter = 1; $totalamaun = 0; $jenis = ''; @endphp
|
||||
@foreach($petibesi as $index=>$item)
|
||||
@foreach($audittrail as $index=>$item)
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $item['t_efektif'] }}</td>
|
||||
<td>{{ $item['m_efektif'] }}</td>
|
||||
<td>{{ $item['karat'] }}</td>
|
||||
<td>{{ number_format($item['harga'],2) }}</td>
|
||||
<td>{{ $item['tarikh'] }}</td>
|
||||
<td>{{ $item['masa'] }}</td>
|
||||
<td>{{ $item['users'] }}</td>
|
||||
<td>{{ $item['pelulus'] }}</td>
|
||||
<td>{{ $item['actions'] }}</td>
|
||||
<td>{{ $item['norujukan'] }}</td>
|
||||
<td>{{ number_format($item['oldpinjaman'],2) }}</td>
|
||||
<td>{{ number_format($item['newpinjaman'],2) }}</td>
|
||||
<td>{{ number_format($item['newupah'],2) }}</td>
|
||||
<td>{{ $item['nota'] }}</td>
|
||||
<td>{{ $item['nokp'] }}</td>
|
||||
<td>{{ $item['norujukanasal'] }}</td>
|
||||
{{-- <td>{{ number_format($item['harga'],2) }}</td> --}}
|
||||
</tr>
|
||||
@php $counter++;@endphp
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user