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

@lang('modules.orders.createOrder')


{{ invoice_setting()->order_prefix }}{{ invoice_setting()->order_number_separator }}{{ $zero }}
@if (isset($client) && !is_null($client))
@else @endif

@if (isset($client)) {!! nl2br($client->clientDetails->address) !!} @else @lang('messages.selectCustomerForBillingAddress') @endif

@if (isset($estimate) && $estimate->client && $estimate->client->clientDetails->shipping_address) {!! nl2br($estimate->client->clientDetails->shipping_address) !!} @elseif(isset($client) && $client->clientDetails && $client->clientDetails->shipping_address) {!! nl2br($client->clientDetails->shipping_address) !!} @else @lang('app.addShippingAddress') @endif

@if (isset($project) && !is_null($project))
@else
@endif

@if(in_array('products', user_modules()) || in_array('purchase', user_modules()))
@if ($addProductPermission == 'all' || $addProductPermission == 'added') @lang('app.add') @endif
@endif
@lang('messages.addItem')

@lang('modules.invoices.subTotal') 0.00
@lang('modules.invoices.discount')
{{ isset($estimate) ? number_format((float) $estimate->discount, 2, '.', '') : '0.00' }}
@lang('modules.invoices.tax')
0.00
@lang('modules.invoices.total') 0.00
@lang('app.submit') @lang('app.cancel')