LAPORAN PRODUCT EXCHANGE

Dicetak: {{ now()->format('d/m/Y H:i:s') }}
{{-- FILTER --}}
Filter: @if($search) Pencarian: {{ $search }} | @endif @if($status) Status: {{ $status }} | @endif @if($dateFrom) Dari: {{ \Carbon\Carbon::parse($dateFrom)->format('d/m/Y') }} | @endif @if($dateTo) Sampai: {{ \Carbon\Carbon::parse($dateTo)->format('d/m/Y') }} @endif @if(!$search && !$status && !$dateFrom && !$dateTo) Semua Data @endif
{{-- SUMMARY --}}
TOTAL EXCHANGE
{{ $exchanges->count() }}
VERIFIED
{{ $exchanges->where('status', 'Verified')->count() }}
WAREHOUSE
{{ $exchanges->where('status', 'Warehouse')->count() }}
COMPLETED
{{ $exchanges->where('status', 'Completed')->count() }}
{{-- DETAIL --}} @php $no = 1; @endphp @forelse($exchanges as $exchange) @forelse($exchange->details as $detail) @php $originalProduct = $detail->originalProduct?->name ?? $detail->originalProduct?->product_name ?? $detail->originalProduct?->code ?? $detail->originalProduct?->product_code ?? '-'; $replacementProduct = $detail->replacementProduct?->name ?? $detail->replacementProduct?->product_name ?? $detail->replacementProduct?->code ?? $detail->replacementProduct?->product_code ?? '-'; @endphp @empty @endforelse @empty @endforelse
No Exchange No Tanggal Member Status Produk Awal Produk Pengganti Qty Alasan / Catatan
{{ $no++ }} {{ $exchange->exchange_no }} {{ optional($exchange->created_at)->format('d/m/Y') }} {{ $exchange->member?->name ?? '-' }} {{ $exchange->status }} {{ $originalProduct }} {{ $replacementProduct }} {{ number_format((float) $detail->quantity, 2, ',', '.') }} {{ $exchange->reason ?: ($detail->notes ?: $exchange->notes ?: '-') }}
{{ $no++ }} {{ $exchange->exchange_no }} {{ optional($exchange->created_at)->format('d/m/Y') }} {{ $exchange->member?->name ?? '-' }} {{ $exchange->status }} Tidak ada detail {{ $exchange->reason ?: ($exchange->notes ?: '-') }}
Tidak ada data.