@extends('layouts.app') @section('title', 'New Procurement Request') @section('content')
@php $drugsForJs = $drugs->map(fn($d) => [ 'id' => $d->id, 'name' => $d->name, 'reorder' => (int)$d->reorder_level, 'stock' => (int)$d->current_stock, ])->values()->toArray(); @endphp {{-- IMPORTANT: close content before opening scripts. Without this @endsection the 'content' section silently swallowed everything including the @section('scripts') block, which broke the page layout — sidebar rendered at the bottom because the main flex container got pushed below the content somehow. --}} @endsection @section('scripts') @endsection