@extends('layouts.app') @section('title', 'Purchase Requisition') @section('content') @php $money = fn ($v) => \App\Support\Fmt::money($v); $num = fn ($v) => \App\Support\Fmt::plain($v, 2); $day = fn ($v) => \App\Support\Fmt::day($v instanceof \DateTimeInterface ? $v->format('Y-m-d') : $v); $sel = 'h-9 w-full rounded-lg border border-input bg-transparent px-3 text-sm outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50'; @endphp
Vote-funded requests raised from stores, feeding into Inventory purchase orders
| PR | Date | Vote | Department | Raised by | Lines | Estimate | Status | Actions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $pr->pr_no }} | {{ $day($pr->raised_on) }} | {{ $pr->vote?->name ?? '—' }} | {{ $pr->department }} | {{ $pr->raised_by }} | {{ $pr->lineCount() }} | {{ $money($pr->estimate) }} | @include('kitchen.partials.badge', ['status' => $pr->status]) @if ($pr->reject_reason) {{ $pr->reject_reason }} @endif |
@if ($pr->status === 'Draft')
@elseif ($pr->status === 'Submitted')
@elseif ($pr->status === 'Approved')
@endif
@if (in_array($pr->status, ['Draft', 'Submitted'], true))
@endif
@if ($pr->status === 'Draft')
@endif
|
||||||||||||
Line items for {{ $pr->pr_no }}
Edit draft {{ $pr->pr_no }}@include('kitchen.partials.pr-form', ['pr' => $pr, 'votes' => $votes, 'items' => $items, 'sel' => $sel, 'today' => $today])Reject {{ $pr->pr_no }} |
||||||||||||||||||||
| No requisitions match these filters. | ||||||||||||||||||||