@extends('layouts.supplier') @section('title', 'Penjualan') @section('header-title', 'Laporan Penjualan') @section('header-subtitle', 'Daftar transaksi produk konsinyasi Anda (POS Kasir & Audit Retail CSV)') @section('content')
Kembali ke Dasbor

Rincian Penjualan Produk

Total Pendapatan Anda

Rp {{ number_format($supplierRevenue ?? 0, 0, ',', '.') }}

Uang bersih yang dicairkan/ditransfer ke rekening Anda (Harga Beli × Qty)

Total Unit Terjual

{{ number_format($totalItemsSold ?? 0, 0, ',', '.') }}

Pcs

Akumulasi produk konsinyasi Anda yang terjual di minimarket

{{-- Mobile Card View --}}
@forelse($sales as $sale)
@if(!empty($sale->product->image)) {{ $sale->product->name }} @else
@endif
{{ $sale->product->name ?? 'Produk' }}
{{ $sale->source ?? 'POS Kasir' }}
+Rp {{ number_format($sale->supplier_revenue ?? ($sale->quantity * ($sale->product->buyPrice ?? 0)), 0, ',', '.') }}
{{ $sale->created_at ? $sale->created_at->format('d M Y') : '-' }} {{ $sale->quantity }} × Rp {{ number_format($sale->buy_price ?? $sale->product->buyPrice ?? 0, 0, ',', '.') }}
@empty

Belum ada riwayat penjualan.

@endforelse
{{-- Desktop Table View --}}
{{ $sales->links() }}
@endsection