{{-- resources/views/purchase/bills/create-onepage.blade.php --}} @extends('master.app') @section('title', 'Create Supplier Invoice') @section('pageCSS') @endsection @section('body') {{-- Header --}} Create Purchase Invoice One-page invoice (Add to List + Process) Back to Suppliers @if (isset($supplier) && $supplier) Supplier Bills @endif @include('general.valert') {{-- Main Form --}} @csrf {{-- ========================= Step 1: Invoice Info ========================== --}} Invoice Info Step 1 Invoice Type Choose Invoice Type @if (isset($btype) && $btype == 2) Raw Materials @endif Finished Goods Supplier Choose Supplier @foreach ($suppliers as $row) id ? 'selected' : (isset($supplier) && $supplier && $supplier->id == $row->id ? 'selected' : '') }}> {{ $row->name }} @endforeach Invoice Number Title Date @if (isset($bdate) && $bdate == 1) @else @endif Currency Choose Currency @foreach ($currencies as $row) id ? 'selected' : '' }}> {{ $row->title_ps ?? $row->title_en }} @endforeach Exchange Rate Invoice File {{-- ========================= Step 2: Add Items (NEW DESIGN) ========================== --}} Add Items Choose type, fill fields, then press “Add to List” Raw Finished Step 2 Tip: لومړی Invoice Type انتخاب کړه، بیا د هماغه Type مطابق آیتم اضافه کړه. که Type Raw وي، “Raw” ټب وکاروه. که Finished وي، “Finished” ټب. {{-- RAW BOX --}} Raw Materials Item Clear Category Choose Category @foreach ($pCategories ?? [] as $c) {{ $c->title_en }} @endforeach Sub Category SCAT Unit Choose Unit @foreach ($pUnits ?? [] as $u) {{ $u->title_ps ?? $u->title_en }} @endforeach CPI SPI Qty Add to List {{-- FIN BOX --}} Finished Goods Item Clear Category Choose Category @foreach ($sCategories ?? [] as $c) {{ $c->title_en }} @endforeach Sub Category Choose Sub Category @foreach ($sSubcategories ?? [] as $sc) {{ $sc->title_en }} @endforeach Unit Choose Unit @foreach ($sUnits ?? [] as $u) {{ $u->title_ps ?? $u->title_en }} @endforeach Weight Choose Weight @foreach ($sWeights ?? [] as $w) {{ $w->title_ps ?? $w->title_en }} @endforeach Location Choose Location @foreach ($locations ?? [] as $l) {{ $l->title ?? ($l->name ?? 'Location #'.$l->id) }} @endforeach Price Qty SPI Add to List {{-- ========================= Step 3: Items List ========================== --}} Items List 0 items Step 3 # Item Unit Qty Price Total Action No items added yet. {{-- Hidden inputs --}} {{-- ========================= Step 4: Checkout ========================== --}} Checkout Step 4 Grand Total Payment Balance Transaction Type Define Transaction Type By Cash By Bank By Sarafi Target Cash Define Target Type Target Cash Yes Target Cash No Payment By Back to List Process Invoice @endsection @section('pageJs') @endsection