@extends('layouts.main') @section('title', 'Laporan Transaksi') @section('content')

Laporan Transaksi

{{-- FORM PENCARIAN --}}
{{-- TABEL HANYA MUNCUL JIKA ADA PENCARIAN --}} @if(request('nama')) @if(count($transactions) > 0)
Download PDF
@foreach($transactions as $t) @endforeach
Tanggal Penyewa Tipe Jumlah Periode
{{ $t->transaction_date }} {{ $t->penyewa->nama_1 ?? '-' }} {{ ucfirst($t->type) }} Rp {{ number_format($t->amount,0,',','.') }} {{ $t->periode_mulai }} - {{ $t->periode_selesai }}
@else
Data tidak ditemukan.
@endif @endif
@endsection