@@ -110,9 +110,9 @@
No. |
Tanggal |
Siswa |
-
Jumlah |
+
Tagihan |
Diskon |
-
Total |
+
Dibayarkan |
Keterangan |
@@ -122,9 +122,9 @@
{{ $index+1 }} |
{{ $item->created_at->format('d-m-Y') }} |
{{ $item->siswa->nama.'('.$item->siswa->kelas->nama.')' }} |
-
IDR. {{ format_idr($item->tagihan->jumlah) }} |
+
{{ $item->tagihan->nama }} |
IDR. {{ format_idr($item->diskon) }} |
-
IDR. {{ format_idr($item->tagihan->jumlah - $item->diskon) }} |
+
IDR. {{ format_idr($item->keuangan->jumlah) }} |
{{ $item->keterangan }} |
@endforeach
diff --git a/resources/views/transaksi/transaksiexport.blade.php b/resources/views/transaksi/transaksiexport.blade.php
new file mode 100644
index 0000000..1207e3b
--- /dev/null
+++ b/resources/views/transaksi/transaksiexport.blade.php
@@ -0,0 +1,24 @@
+
+
+
+ Tanggal |
+ Siswa |
+ Tagihan |
+ Diskon |
+ Dibayarkan |
+ Keterangan |
+
+
+
+ @foreach($transaksi as $item)
+
+ {{ $item->created_at->format('d-m-Y') }} |
+ {{ $item->siswa->nama.'('.$item->siswa->kelas->nama.')' }} |
+ {{ $item->tagihan->nama }} |
+ IDR. {{ format_idr($item->diskon) }} |
+ IDR. {{ format_idr($item->keuangan->jumlah) }} |
+ {{ $item->keterangan }} |
+
+ @endforeach
+
+
\ No newline at end of file
diff --git a/routes/web.php b/routes/web.php
index 5cefa90..b0e4aa9 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -78,6 +78,7 @@ Route::middleware(['auth:web'])->group(function(){
//Pembayaran SPP
Route::get('transaksi-spp','TransaksiController@index')->name('spp.index');
+ Route::get('export-spp','TransaksiController@transaksiExport')->name('transaksi.export');
Route::post('print-spp/{siswa?}','TransaksiController@print')->name('spp.print');
Route::post('export-spp/{siswa?}','TransaksiController@export')->name('spp.export');