Skip to content

Commit

Permalink
Merge pull request #91 from andes2912/Feature/export-laporan
Browse files Browse the repository at this point in the history
Improve Laporan View
  • Loading branch information
andes2912 authored Jun 21, 2022
2 parents 119c60e + d040ba6 commit a425db6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Karyawan/LaporanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LaporanController extends Controller
//Halaman Laporan
public function laporan()
{
$laporan = transaksi::where('user_id', Auth::id())->whereIn('status_order',['Done','Delivery'])->get();
$laporan = transaksi::where('user_id', Auth::id())->get();
return view('karyawan.laporan.index', compact('laporan'));
}

Expand Down
2 changes: 2 additions & 0 deletions resources/views/karyawan/laporan/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<th>Nama Customer</th>
<th>Jenis Laundry</th>
<th>Jenis Pembayaran</th>
<th>Status Pembayaran</th>
<th>Total</th>
</tr>
</thead>
Expand All @@ -26,6 +27,7 @@
<td>{{namaCustomer($laporans->customer_id)}}</td>
<td>{{$laporans->price->jenis}}</td>
<td>{{$laporans->jenis_pembayaran}}</td>
<td>{{$laporans->status_payment}}</td>
<td>{{Rupiah::getRupiah($laporans->harga_akhir)}}</td>
</tr>
<?php $no++; ?>
Expand Down

0 comments on commit a425db6

Please sign in to comment.