@extends('layouts.app') @section('title', 'OTC Sales') @section('content') {{-- Page header removed per UI cleanup. History is now a tab inside Dispensing Tab → OTC Sales History. --}} @if(session('otc_success'))

{{ session('otc_success') }}

@endif
@csrf {{-- Date + Patient Safety Check in one wide row --}}
{{-- Left: Date/Time + Sale Info --}}

Sale Date & Time

{{ now()->format('l, d M Y') }} {{ now()->format('g:i A') }}

OTC sale — no prescription required. Drug safety check available with patient link.

{{-- Right: Patient Lookup + Drug Safety --}}

Patient & Drug Safety Check

Optional

No patient linked · walk-in sale · allergy & interaction checks disabled

{{-- Safety warning banner --}} @if(session('safety_warnings'))

Drug Safety Warnings

    @foreach(session('safety_warnings') as $warning)
  • ▸ {{ $warning }}
  • @endforeach
@endif {{-- Products / Services --}}

Products / Services

Product or Service Instructions Stock Qty Unit Price Total
0 0
Grand Total 0
{{-- Payments --}}

Payments

{{-- Column 3: M-Pesa Code cell + delete button side-by-side. The code input is HIDDEN by default and only revealed when M-Pesa is selected as the payment type (see showPaySub() below). For other payment methods the cell holds just the delete button. --}}
Payment Type Amount Paid M-Pesa Code
{{-- pay-sub: channel select appears here when M-Pesa is picked. M-Pesa Code lives in its own column on the right (col 3). --}}
Balance Due 0
Change Due 0
{{-- Actions --}}
Cancel
@endsection @section('scripts') @endsection