@extends('layouts.app') @section('title', 'Laporan') @section('actions') ⬇ Export CSV @endsection @section('content')
Total Invoice
{{ number_format($summary['total_invoice'], 0, ',', '.') }}
Total Nilai
Rp {{ number_format($summary['total_nilai'], 0, ',', '.') }}
Total Dibayar
Rp {{ number_format($summary['total_dibayar'], 0, ',', '.') }}
Total Piutang
Rp {{ number_format($summary['total_piutang'], 0, ',', '.') }}
Total Qty
{{ number_format($summary['total_qty'], 0, ',', '.') }} pcs
@foreach($perStatus as $ps)
{{ $ps->status }} {{ $ps->total }} invoice
Rp {{ number_format($ps->nilai, 0, ',', '.') }}
@endforeach
@forelse($invoices as $inv) @empty @endforelse
Nomor Tanggal Customer Qty Total Dibayar Sisa Status
{{ $inv->nomor_invoice }} {{ $inv->tanggal_invoice->format('d/m/Y') }} {{ $inv->customer->nama ?? '-' }} {{ $inv->total_qty }} Rp {{ number_format($inv->total_akhir, 0, ',', '.') }} Rp {{ number_format($inv->total_dibayar, 0, ',', '.') }} Rp {{ number_format($inv->sisa_pembayaran, 0, ',', '.') }} {{ $inv->status }}
Tidak ada invoice pada periode ini.
{{ $invoices->links() }}
@endsection