@extends('layouts.app') @section('title', 'Laporan Keuangan') @section('breadcrumb') @endsection @section('content')
Total Invoice
Rp {{ number_format($summary['total_invoice'], 0, ',', '.') }}
Terbayar
Rp {{ number_format($summary['total_terbayar'], 0, ',', '.') }}
Piutang Tersisa
Rp {{ number_format($summary['total_sisa'], 0, ',', '.') }}
Hutang ke Penjual
Rp {{ number_format($summary['hutang_penjual'], 0, ',', '.') }}
{{-- Invoice List --}}
Rekap Invoice Pabrik
@forelse($invoice as $inv) @empty @endforelse @if($invoice->count()) @endif
No InvoicePabrikTgl InvoiceJatuh Tempo TotalTerbayarSisaStatus
{{ $inv->no_invoice }} {{ $inv->pabrik->nama }} {{ $inv->tanggal_invoice->format('d/m/Y') }} {{ $inv->jatuh_tempo->format('d/m/Y') }} Rp {{ number_format($inv->total, 0, ',', '.') }} Rp {{ number_format($inv->jumlah_terbayar, 0, ',', '.') }} Rp {{ number_format($inv->sisa_tagihan, 0, ',', '.') }} {{ strtoupper($inv->status) }}
Tidak ada data invoice
TOTAL Rp {{ number_format($invoice->sum('total'), 0, ',', '.') }} Rp {{ number_format($invoice->sum('jumlah_terbayar'), 0, ',', '.') }} Rp {{ number_format($summary['total_sisa'], 0, ',', '.') }}
{{-- Mutasi Stok --}}
Mutasi Stok Gudang (Terbaru)
@forelse($mutasiStok as $m) @empty @endforelse
WaktuJenisJumlah (kg)Stok SesudahKeterangan
{{ $m->created_at->format('d/m/Y H:i') }} {{ ucfirst($m->jenis) }} {{ $m->jenis === 'masuk' ? '+' : '-' }}{{ number_format($m->jumlah, 2) }} {{ number_format($m->stok_sesudah, 2) }} {{ $m->keterangan }}
Belum ada mutasi stok
{{ $mutasiStok->links() }}
@endsection