@extends('layouts.admin') @section('title', 'Inventory costing') @section('content') @php $valueCents = $layers->sum(fn ($layer) => (int) round($layer->qty_remaining * $layer->unit_cost_cents)); @endphp
Layers
{{ $layers->total() }}
Qty on page
{{ number_format($layers->sum('qty_remaining'), 2) }}
Page value
AUD {{ number_format($valueCents / 100, 2) }}
Clear
Variant Location Method Qty remaining Unit cost @forelse($layers as $layer) {{ $layer->variant?->sku ?? '#'.$layer->variant_id }} {{ $layer->location?->name ?? '#'.$layer->location_id }} {{ strtoupper($layer->method) }} {{ $layer->qty_remaining }} AUD {{ number_format($layer->unit_cost_cents / 100, 2) }} @empty No cost layers. @endforelse {{ $layers->links() }}
@endsection