{{-- HEADER --}}
{{ $company->company_name }}
LAPORAN REKAP BARANG MASUK PER TAHUN
Periode: {{ $yearFrom }} s/d {{ $yearTo }}
{{-- SUMMARY --}}
Tahun Ada Transaksi
{{ $yearlyReport->count() }}
Total Transaksi
{{ number_format( $yearlyReport->sum('transaction_count'), 0, ',', '.' ) }}
Total Detail
{{ number_format( $yearlyReport->sum('detail_count'), 0, ',', '.' ) }}
Total Qty Masuk
{{ number_format( $yearlyReport->sum('total_qty'), 2, ',', '.' ) }}
{{-- REPORT --}} @if ($yearlyReport->count()) @foreach ($yearlyReport as $index => $row) @endforeach {{-- GRAND TOTAL --}}
No Tahun Jumlah Transaksi Jumlah Detail Jenis Produk Total Qty Masuk
{{ $index + 1 }} {{ $row['year'] }} {{ number_format( $row['transaction_count'], 0, ',', '.' ) }} {{ number_format( $row['detail_count'], 0, ',', '.' ) }} {{ number_format( $row['total_product'], 0, ',', '.' ) }} {{ number_format( $row['total_qty'], 2, ',', '.' ) }}
TOTAL {{ number_format( $yearlyReport->sum('transaction_count'), 0, ',', '.' ) }} {{ number_format( $yearlyReport->sum('detail_count'), 0, ',', '.' ) }} {{ number_format( $yearlyReport->sum('total_product'), 0, ',', '.' ) }} {{ number_format( $yearlyReport->sum('total_qty'), 2, ',', '.' ) }}
@else
Tidak ada transaksi barang masuk pada periode {{ $yearFrom }} s/d {{ $yearTo }} .
@endif {{-- FOOTER --}}