@php $addProductPermission = user()->permission('add_product'); @endphp

@lang('purchase::app.menu.purchaseOrder')


@method('PUT')
{{ $purchaseSetting->purchase_order_prefix }}{{ $purchaseSetting->purchase_order_number_separator }}
id == $order->currency_id) readonly @endif> ( {{company()->currency->currency_code}} @lang('app.to') {{$order->currency->currency_code}} )

@if ($addProductPermission == 'all' || $addProductPermission == 'added') @lang('app.add') @endif
@foreach ($order->items as $key => $item)
@if ($invoiceSetting->hsn_sac_code_show) @endif @if ($invoiceSetting->hsn_sac_code_show) @endif
@lang('app.description') @lang("app.hsnSac")@lang('modules.invoices.qty') @lang("modules.invoices.unitPrice") @lang('modules.invoices.tax') @lang('modules.invoices.amount')
@if (!is_null($item->product_id) && $item->product_id != 0) {{ $item->unit->unit_type }} @else @endif
{{ number_format((float) $item->amount, 2, '.', '') }}
purchaseItemImage && $item->purchaseItemImage->external_link) data-show-remove="false" @endif />
@endforeach

@lang('modules.invoices.subTotal') {{ number_format((float) $order->sub_total, 2, '.', '') }}
@lang('modules.invoices.discount')
{{ number_format((float) $order->discount, 2, '.', '') }}
@lang('modules.invoices.tax')
0.00
@lang('modules.invoices.total') {{ number_format((float) $order->total, 2, '.', '') }}

{!! nl2br($purchaseSetting->purchase_terms) !!}

@lang('app.cancel')