@extends('layouts.app') @section('title', 'Pharmacy | Stock Take') @section('styles') @endsection @section('content') @php $authUser = Auth::user(); $isFullAccess = $authUser->hasAnyRole('Super Admin','Hospital Admin','Pharmacy User'); @endphp {{-- Drug Inventory tab bar — Stock Take is part of the Drug Inventory group --}}
@php $history = \App\Models\StockMovement::with(['drugItem', 'creator']) ->where('type', 'adjustment') ->orderByDesc('created_at') ->limit(200) ->get(); $historyGroups = $history->groupBy('reference'); @endphpEnter physical counts to reconcile system quantities. Leave blank to skip a drug.
| Drug | Change | Balance After | Notes |
|---|---|---|---|
| {{ $m->drugItem->name ?? '—' }} | @if($m->quantity > 0) +{{ $m->quantity }} @elseif($m->quantity < 0) {{ $m->quantity }} @else 0 @endif | {{ $m->balance_after }} | {{ $m->notes }} |