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


@if (isset($type) && $type == 'proposal') @endif @if (isset($type) && $type == 'estimate') @endif
{{ $invoiceSetting->invoice_prefix }}#{{ $zero }}

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

@if (isset($estimate) && $estimate->client) {!! nl2br($estimate->client->clientDetails->address) !!} @endif @if (isset($estimate) && isset($client)) {!! nl2br($client->clientDetails->address) !!} @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($fields) && count($fields) > 0)
@foreach ($fields as $field)
@if ($field->type == 'text') @elseif($field->type == 'password') @elseif($field->type == 'number') @elseif($field->type == 'textarea') @elseif($field->type == 'radio')
@foreach ($field->values as $key => $value) @endforeach
@elseif($field->type == 'select')
{!! Form::select('custom_fields_data[' . $field->name . '_' . $field->id . ']', $field->values, isset($editUser) ? $editUser->custom_fields_data['field_' . $field->id] : '', ['class' => 'form-control select-picker']) !!}
@elseif($field->type == 'date') @endif
@endforeach
@endif
@if (isset($estimate)) @foreach ($estimate->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')
{{ number_format((float) $item->amount, 2, '.', '') }}
@endforeach @else
@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')
0.00
@endif

@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

{!! nl2br($invoiceSetting->invoice_terms) !!}

@lang('app.saveDraft')
@lang('app.cancel')