@extends('layouts.app') @section('title', $stock->description) @section('breadcrumb')Inventory {{ $stock->sku }}@endsection @section('content') @if(session('success'))
{{ session('success') }}
{{ $e }}
@endforeach{{ $stock->sku }} · {{ $stock->unit }} · {{ $stock->category ?? 'Uncategorised' }}
Are you sure you want to delete {{ $stock->description }} ({{ $stock->sku }})?
This cannot be undone. Items with active job allocations cannot be deleted.
Creates a draft PO for {{ $stock->description }} ({{ $stock->sku }}). Set the quantity to order below.
| Date | Job | Client | Qty | Unit Cost | Total | By | |
|---|---|---|---|---|---|---|---|
| {{ $alloc->created_at->format('d M Y') }} | {{ $alloc->job?->job_number ?? '—' }} | {{ $alloc->job?->contact?->full_name ?? $alloc->job?->contact?->company ?? '—' }} | {{ number_format($alloc->qty, 2) }} {{ $stock->unit }} | ${{ number_format($alloc->unit_cost, 2) }} | ${{ number_format($alloc->total_cost, 2) }} | {{ $alloc->createdBy?->name ?? '—' }} | |
| Total allocated cost | ${{ number_format($stock->jobAllocations->sum('total_cost'), 2) }} | ||||||
No stock has been allocated to any job yet.
Use the form above to allocate stock to a job.
No purchase order history for this SKU.
PO lines are matched by SKU code ({{ $stock->sku }}).
| Date | Type | Job | Qty | Unit Cost | Notes | By |
|---|---|---|---|---|---|---|
| {{ $mv->created_at->format('d M Y H:i') }} | {{ ucfirst($mv->type) }} | @if($mv->job) {{ $mv->job->job_number }} @else — @endif | {{ $mv->qty >= 0 ? '+' : '' }}{{ number_format($mv->qty, 2) }} | {{ $mv->unit_cost ? '$'.number_format($mv->unit_cost, 2) : '—' }} | {{ $mv->notes ?? '—' }} | {{ $mv->createdBy?->name ?? '—' }} |
Creates a draft PO pre-filled with this item's details, ready for you to review and send.
{{ $stock->notes }}