@extends('layouts.app') @section('title', 'Counter 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

S11 vouchers moving goods from stores to points of use

Counter Requisition

@include('partials.flashes')
CSV
@forelse ($rows as $s) @if ($s->status === 'Draft') @endif @if ($s->status === 'Submitted') @endif @if ($s->status === 'Approved') @endif @empty @endforelse
S11 No. Date From → To Purpose Lines Required Issued Value Status Actions
{{ $s->s11_no }} {{ $s->requester }} {{ $day($s->raised_on) }} {{ $s->store?->name ?? '—' }} → {{ $s->point_of_use }} {{ $s->purpose ?: '—' }} {{ $s->lineCount() }} {{ $num($s->requiredQty()) }} {{ $num($s->issuedQty()) }} {{ $money($s->value()) }} @include('kitchen.partials.badge', ['status' => $s->status])
Print @if ($s->status === 'Draft')
@csrf
@elseif ($s->status === 'Submitted')
@csrf
@elseif ($s->status === 'Approved') @endif @if (in_array($s->status, ['Draft', 'Submitted'], true))
@csrf
@endif
Edit draft {{ $s->s11_no }} @include('kitchen.partials.s11-form', ['s11' => $s, 'stores' => $stores, 'items' => $items, 'sel' => $sel])
Reject {{ $s->s11_no }}
@csrf
The requisition is closed off with your reason recorded for audit.
Issue {{ $s->s11_no }}
@csrf @foreach ($s->lines as $l) @endforeach
Item Required On hand Issue now
{{ $l->item?->name ?? '—' }} {{ $num($l->qty_required) }} {{ $num($l->item?->on_hand ?? 0) }}
Quantity is capped at the requested amount; stock is moved to {{ $s->point_of_use }}.
No requisitions match these filters.

New counter requisition

@include('kitchen.partials.s11-form', ['s11' => null, 'stores' => $stores, 'items' => $items, 'sel' => $sel])
@endsection