@if(!in_array('client', user_roles())) @if(!is_null($invoice->last_viewed)) @lang('app.viewedOn') {{$invoice->last_viewed->timezone($settings->timezone)->translatedFormat($settings->date_format)}} @lang('app.at') {{$invoice->last_viewed->timezone($settings->timezone)->translatedFormat($settings->time_format)}} @lang('app.usingIpAddress'):{{$invoice->ip_address}} @if (request()->ip() == $invoice->ip_address) (@lang('modules.invoices.sameIp')) @endif @endif @endif {{--
Cover
--}}

@lang('modules.lead.proposal')

@lang('app.to')
@if ($invoice->lead && ($invoice->lead->contact->client_name || $invoice->lead->contact->client_email || $invoice->lead->contact->mobile || $invoice->lead->contact->company_name || $invoice->lead->contact->address) && (invoice_setting()->show_client_name == 'yes' || invoice_setting()->show_client_email == 'yes' || invoice_setting()->show_client_phone == 'yes' || invoice_setting()->show_client_company_name == 'yes' || invoice_setting()->show_client_company_address == 'yes'))
@if ($invoice->deal && !empty($invoice->deal->name)) {{ $invoice->deal->name }}
@endif @if ($invoice->lead->contact && $invoice->lead->contact->client_name && invoice_setting()->show_client_name == 'yes') {{ $invoice->lead->contact->client_name_salutation }}
@endif @if ($invoice->lead->contact && $invoice->lead->contact->client_email && invoice_setting()->show_client_email == 'yes') {{ $invoice->lead->contact->client_email }}
@endif @if ($invoice->lead->contact && $invoice->lead->contact->mobile && invoice_setting()->show_client_phone == 'yes') {{ $invoice->lead->contact->mobile }}
@endif @if ($invoice->lead->contact && $invoice->lead->contact->company_name && invoice_setting()->show_client_company_name == 'yes') {{ $invoice->lead->contact->company_name }}
@endif @if ($invoice->lead->contact && $invoice->lead->contact->address && invoice_setting()->show_client_company_address == 'yes') {!! nl2br($invoice->lead->contact->address) !!} @endif
@endif
@lang('modules.lead.proposal') @lang('app.details')
@lang('app.date') {{ \Carbon\Carbon::now()->translatedFormat(company()->date_format) }}
@lang('modules.estimates.validTill') {{ $invoice->valid_till->translatedFormat(company()->date_format) }}
@lang('app.status') @lang('modules.proposal.'.$invoice->status)
@lang('modules.lead.proposal') # {{ $invoice->proposal_number }}
@if (count($invoice->items) > 0)
{!! $invoice->description !!}
@foreach ($invoice->items->sortBy('field_order') as $item) @if ($item->type == 'item') @endif @endforeach @if ($discount != 0 && $discount != '') @endif @foreach($taxes as $key => $tax) @endforeach
@lang('app.description') @lang('quantity') @lang("modules.invoices.unitPrice") @lang('modules.invoices.discount') @lang('app.amount')
{{ $item->item_name }} @if ($item->item_summary)
{!! nl2br(strip_tags($item->item_summary)) !!} @endif
{{ $item->quantity }} {{ currency_format($item->unit_price, $invoice->currency_id, false) }} 0.000 {{ currency_format($item->amount, $invoice->currency_id, false) }}
@lang('modules.invoices.subTotal') {{ currency_format($invoice->sub_total, $invoice->currency_id, false) }}
@lang('modules.invoices.discount') {{ currency_format($discount, $invoice->currency_id, false) }}
{{ $key }} {{ currency_format($tax, $invoice->currency_id, false) }}
@lang('modules.invoices.total') {{ currency_format($invoice->total, $invoice->currency_id, false) }} {{ $invoice->currency->currency_code }}
COMMERCIAL TERMS, CONDITIONS & BANKING DETAILS;

{!! !empty($invoice->note) ? nl2br($invoice->note) : '--' !!}

@lang('modules.invoiceSettings.invoiceTerms')

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

@endif
@if ($invoice->signature)
@if (!is_null($invoice->signature->signature))
@lang('modules.estimates.signature')
@else
@lang('modules.estimates.signedBy')
@endif

({{ $invoice->signature->full_name }})

@endif @if ($invoice->client_comment)

@lang('app.rejectReason')

{{ $invoice->client_comment }}

@endif {{-- --}}
{{-- Custom fields data --}} @if (isset($fields) && count($fields) > 0)
@lang('modules.projects.otherInfo')
@endif
@push('scripts') @endpush