@extends('layouts.app') @section('title', 'Inventory purchases') @section('content')

Inventory purchases

Purchase orders for materials and site stock

Excel PDF
@include('inventory.partials.subnav', ['invActive' => 'purchases']) @if($errors->any())
{{ $errors->first() }}
@endif @if(session('success'))
{{ session('success') }}
@endif @php $st = $stats ?? []; @endphp

Active POs

{{ $st['active'] ?? 0 }}

Pending delivery

{{ $st['pending_delivery'] ?? 0 }}

Partially received

{{ $st['partial'] ?? 0 }}

This month value

{{ \App\Support\Format::mwkDecimal($st['month_value'] ?? 0) }}

@forelse($orders as $o) @php $sb = match ($o->status) { 'Received', 'Billed' => 'g', 'Cancelled' => 's', 'Partially Received' => 'a', default => 'b', }; @endphp @empty @endforelse
PO #SupplierProjectPO dateExpectedItemsTotalStatusAction
{{ $o->po_number }} {{ $o->supplier?->company_name }} {{ $o->project?->name ?? '—' }} {{ $o->po_date?->format('Y-m-d') }} {{ $o->expected_delivery_date?->format('Y-m-d') ?? '—' }} {{ $o->items->count() }} {{ \App\Support\Format::mwkDecimal($o->total_amount) }} {{ $o->status }} View @if(in_array($o->status, ['Ordered', 'Partially Received'], true)) Receive @endif
No purchase orders yet.
{{ $orders->links() }}
@endsection @push('scripts') @endpush