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

@lang('app.order') @lang('app.details')


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

@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, '.', '') }}
@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')