@extends('layouts.master') @section('title') {{ $requisition->reference_no }} @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Requisitions @endslot @slot('title') {{ $requisition->reference_no }} @endslot @endcomponent @if(session('success'))
Description{{ $requisition->description }}
@endif @if($requisition->justification)Justification{{ $requisition->justification }}
@endif @if($requisition->procurement_justification)Method Justification{{ $requisition->procurement_justification }}
@endif| Item / Description | Qty | Unit | Unit Cost | Line Total |
|---|---|---|---|---|
| {{ $line->item?->name ?? $line->description ?? '—' }} @if($line->item && $line->description){{ $line->description }}@endif | {{ rtrim(rtrim(number_format($line->quantity,2),'0'),'.') }} | {{ $line->uom?->abbreviation }} | {{ $line->estimated_unit_cost !== null ? number_format($line->estimated_unit_cost,2) : '—' }} | {{ number_format($line->estimated_line_total ?? 0,2) }} |
| Estimated Total | {{ number_format($requisition->estimated_total,2) }} | |||
No quotes recorded yet.
@endforelse
Analysis {{ $analysis->status ?? 'not run' }} — it runs automatically in the background once 2+ quotes exist
(process the queue with php artisan queue:work), or click Run analysis for an instant result.
{{ $analysis->summary }}
| # | Supplier | Total | Rating | Cost | Quality | Value | |
|---|---|---|---|---|---|---|---|
| {{ $row['rank'] }} | {{ $row['supplier'] }} @if($row['quote_id'] == $analysis->recommended_quote_id)Recommended@endif @foreach($row['flags'] as $flag){{ $flag }}@endforeach | {{ $row['currency'] }} {{ number_format($row['total'],2) }} | {{ $row['rating'] !== null ? $row['rating'].'/5' : '—' }} | {{ number_format($row['cost_score']*100) }}% | {{ number_format($row['quality_score']*100) }}% | {{ number_format($row['value_score']*100) }}% | @if($canPalProcess && $row['quote_id'] != ($requisition->quotes->firstWhere('is_selected',true)?->id)) @endif |
{{ $analysis->summary }}
@endif| Item | Qty | Received | Pending | Outstanding | Unit | Line Total |
|---|---|---|---|---|---|---|
| {{ $pi->description }} | {{ $f($pi->quantity) }} | {{ $f($pi->quantity_received) }} | @if($pending > 0.0001){{ $f($pending) }}@else 0@endif | @if($out > 0.0001){{ $f($out) }}@else0@endif | {{ number_format($pi->unit_price,2) }} | {{ number_format($pi->line_total,2) }} |
| Total ({{ $po->currency }}) | {{ number_format($po->total,2) }} | |||||
Terms{{ $po->terms }}
@endif| Item | Ordered | Delivered | Variance |
|---|---|---|---|
| {{ $di->purchaseOrderItem?->description ?? 'Item' }} | {{ $fmt($ordered) }} | {{ $fmt($delivd) }} | @if(abs($variance) < 0.0001) 0 @else {{ $variance > 0 ? '+' : '' }}{{ $fmt($variance) }} {{ $variance < 0 ? 'short' : 'over' }} @endif |
| Item | Qty | Line Total |
|---|---|---|
| {{ $ii->description }} | {{ rtrim(rtrim(number_format($ii->quantity,2),'0'),'.') }} | {{ number_format($ii->line_total,2) }} |
| Subtotal | {{ number_format($invoice->subtotal,2) }} | |
| Tax | {{ number_format($invoice->tax_total,2) }} | |
| Total ({{ $invoice->currency }}) | {{ number_format($invoice->total,2) }} | |
Comments{{ $rating->comments }}
@endif Rated by {{ $rating->ratedBy?->name }} · {{ $rating->created_at->format('d M Y') }}“{{ $survey->comment }}”
@endif Recorded {{ optional($survey->submitted_at)->format('d M Y') }} ({{ $survey->source }}) @else @php $surveyLink = \Illuminate\Support\Facades\URL::signedRoute('survey.respond', $survey); @endphpAwaiting the supplier's response. Share this link, or record their feedback on their behalf.
@endifNo activity recorded.
@endforelse