@extends('layouts.app') @section('title', __('purchase.edit_draft_purchase')) @section('content') @php $custom_labels = json_decode(session('business.custom_labels'), true); @endphp

@lang('purchase.edit_draft_purchase')

@include('layouts.partials.error') {!! Form::open(['url' => action([\App\Http\Controllers\PurchaseController::class, 'autoCreatePurchase']), 'method' => 'post', 'id' => 'add_purchase_form', 'files' => true ]) !!} @component('components.widget', ['class' => 'box-primary']) @php $hide_tax = ''; if( session()->get('business.enable_inline_tax') == 0){ $hide_tax = 'hide'; } @endphp
@if($draft) @endif @if(session('business.enable_lot_number')) @endif @if(session('business.enable_product_expiry')) @endif @if(empty($draft)) @endif {!! implode('', $product_rows) !!}
# @lang( 'product.product_name' ) @lang( 'purchase.purchase_quantity' )@lang( 'purchase.invoice_no' ) @lang( 'purchase.supplier' )@lang( 'lang_v1.unit_cost_before_discount' ) @lang( 'lang_v1.discount_percent' ) @lang( 'purchase.unit_cost_before_tax' ) @lang( 'purchase.subtotal_before_tax' ) @lang( 'purchase.product_tax' ) @lang( 'purchase.net_cost' ) @lang( 'purchase.line_total' ) @lang( 'lang_v1.profit_margin' ) @lang( 'purchase.unit_selling_price' ) (@lang('product.inc_of_tax')) @lang('lang_v1.lot_number') @lang('product.mfg_date') / @lang('product.exp_date')

@lang( 'lang_v1.total_items' ): {{ $total_items }}
@lang( 'purchase.total_before_tax' ):
@lang( 'purchase.net_total_amount' ): {{$total_row_subtotal_after_tax}}
{!! Form::hidden('final_total', $total_row_subtotal_after_tax , ['id' => 'grand_total_hidden']); !!} {!! Form::hidden('draft_purchase_id', $draftPurchase->id , ['id' => 'draft_purchase_id_hidden']); !!} {{--@lang('purchase.purchase_total'): 0--}}
@endcomponent
{!! Form::close() !!}
@include('purchase.partials.import_purchase_products_modal') @endsection @section('javascript') @include('purchase.partials.keyboard_shortcuts') @endsection