@extends('layout') @section('title','Laporan') @section('heading','Laporan Pendapatan') @section('content')
Periode {{ $from }} sampai {{ $to }}

Total Pendapatan: Rp {{ number_format($total,0,',','.') }}

{{ $rows->count() }} transaksi
@foreach($rows as $t)@endforeach
WaktuInvoiceJenisDeskripsiSubtotalTotal
{{ $t->created_at->format('d/m/Y H:i') }}{{ $t->invoice_number }}{{ strtoupper($t->type) }}{{ $t->description }}Rp {{ number_format($t->subtotal,0,',','.') }}Rp {{ number_format($t->total,0,',','.') }}
@endsection