@extends('procurement::layouts.master') @section('title','Purchase Orders') @section('content') @include('procurement::components.partials.page_header',['title'=>'Purchase Orders','actionRoute'=>route('procurement.orders.create'),'actionLabel'=>'New PO'])
Clear
@include('procurement::components.partials.sortable_th', ['label'=>'PO #','field'=>'po_number']) @include('procurement::components.partials.sortable_th', ['label'=>'Supplier','field'=>'supplier']) @include('procurement::components.partials.sortable_th', ['label'=>'Project','field'=>'project']) @include('procurement::components.partials.sortable_th', ['label'=>'Run','field'=>'run']) @include('procurement::components.partials.sortable_th', ['label'=>'Order Date','field'=>'order_date']) @include('procurement::components.partials.sortable_th', ['label'=>'Purchase Date','field'=>'purchase_date']) @include('procurement::components.partials.sortable_th', ['label'=>'Expected','field'=>'expected']) @include('procurement::components.partials.sortable_th', ['label'=>'Status','field'=>'status']) @include('procurement::components.partials.sortable_th', ['label'=>'Subtotal','field'=>'subtotal','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'Shipping','field'=>'shipping','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'Tariff','field'=>'tariff','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'Total','field'=>'total','class'=>'text-right']) @forelse($orders as $o) @empty @endforelse
{{ $o->po_number }} {{ $o->supplier->name ?? '—' }} {{ $o->project->name ?? '—' }} {{ $o->run->run_number ?? '—' }} {{ $o->order_date->format('M j, Y') }} {{ $o->purchase_date?->format('M j, Y') ?? '—' }} {{ $o->expected_delivery?->format('M j, Y') ?? '—' }} {{ ucfirst($o->status) }} ${{ number_format($o->subtotal,2) }} ${{ number_format($o->shipping_cost,2) }} ${{ number_format($o->tariff_amount,2) }} ${{ number_format($o->total_amount,2) }} {{ $o->currency }} View Edit
No purchase orders yet.
{{ $orders->withQueryString()->links() }} @endsection