@extends('master.app') @section('title', 'Create Retail Invoice') @section('pageCSS') @endsection @section('body') @include('general.valert') @if ($errors->any()) @foreach ($errors->all() as $e) {{ $e }} @endforeach @endif @csrf {{-- ✅ HEADER --}} Create Retail Invoice Single page • Fast • Professional {{ old('invoice_number', $number) }} Items: 0 Balance: 0 Back {{-- ✅ INVOICE INFO --}} Type From Stock Without Stock Choose invoice item mode Invoice Number Date Title Customer Name Customer Phone Currency Choose Currency @foreach ($currencies as $row) id)> {{ $row->title_en }} @endforeach Exchange Rate Details (Optional) {{-- ✅ ITEMS --}} Add Items Prevent empty invoice {{-- From Stock --}} Stock (Search) Search stock... @foreach ($stocks as $s) {{ optional($s->category)->title_en }} / {{ optional($s->sub_category)->title_en }} / {{ optional($s->weight)->title_en }} / {{ optional($s->unit)->title_en }} (Qty: {{ $s->qty ?? 0 }}) @endforeach Sale Price Qty Add {{-- Without Stock --}} Item Name Price Qty Add {{-- Items table --}} # Item Price Qty Total Action No items yet {{-- Hidden inputs injected here --}} {{-- ✅ STATEMENT --}} Invoice Statement Discount & Received auto-calc balance Total Discount Received Balance Cash Target Define Cash Target Target Cash Yes Target Cash No Received By Reset Checkout Submit blocked if no items — prevents empty invoices. @endsection @section('pageJs') @endsection