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

@lang('app.orderDetails')


@method('PUT')
@if (!in_array('client', user_roles()))
@endif

@if(in_array('products', user_modules()) || in_array('purchase', user_modules()))
@if ($addProductPermission == 'all' || $addProductPermission == 'added') @lang('app.add') @endif
@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('app.sku') @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 isAdmin($user->id) ? '' : 'readonly' }}>
{{ number_format((float) $item->amount, 2, '.', '') }}
@endforeach

{{-- {{in_array('client', user_roles()) ? 'd-none' : ''}} --}}
@lang('modules.invoices.subTotal') {{ number_format((float) $order->sub_total, 2, '.', '') }}
@lang('modules.invoices.discount')
@if (in_array('client', user_roles())) @if ($order->discount_type == 'percent') % @else @lang('modules.invoices.amount') @endif @endif
{{ number_format((float) $order->discount, 2, '.', '') }}
@lang('modules.invoices.tax')
0.00
@lang('modules.invoices.total') {{ number_format((float) $order->total, 2, '.', '') }}
@lang('app.save')
@lang('app.cancel')