@php $base_currency = get_company_field( $quotation->company_id, 'base_currency', 'USD' ); @endphp
@php $date_format = get_company_field($quotation->company_id, 'date_format','Y-m-d'); @endphp
@php $currency = currency($base_currency); @endphp
|
{{ get_company_field($quotation->company_id,'company_name') }}
{{ get_company_field($quotation->company_id,'address') }}
{{ get_company_field($quotation->company_id,'email') }}
{!! get_company_field($quotation->company_id,'vat_id') != '' ? _lang('VAT ID').': '.clean(get_company_field($quotation->company_id,'vat_id')).' ' : '' !!}
{!! get_company_field($quotation->company_id,'reg_no')!= '' ? _lang('REG NO').': '.clean(get_company_field($quotation->company_id,'reg_no')).' ' : '' !!}
|
|
|
{{ _lang('Quotation To') }}
@if($quotation->related_to == 'contacts' && isset($quotation->client))
{{ $quotation->client->contact_name }}
{{ $quotation->client->contact_email }}
{!! $quotation->client->company_name != '' ? clean($quotation->client->company_name).' ' : '' !!}
{!! $quotation->client->address != '' ? clean($quotation->client->address).' ' : '' !!}
{!! $quotation->client->vat_id != '' ? _lang('VAT ID').': '.clean($quotation->client->vat_id).' ' : '' !!}
{!! $quotation->client->reg_no != '' ? _lang('REG NO').': '.clean($quotation->client->reg_no).' ' : '' !!}
@elseif($quotation->related_to == 'leads' && isset($quotation->lead))
{{ $quotation->lead->name }}
{{ $quotation->lead->email }}
{!! $quotation->lead->company_name != '' ? clean($quotation->lead->company_name).' ' : '' !!}
{!! $quotation->lead->address != '' ? clean($quotation->lead->address).' ' : '' !!}
{!! $quotation->lead->vat_id != '' ? _lang('VAT ID').': '.clean($quotation->lead->vat_id).' ' : '' !!}
{!! $quotation->lead->reg_no != '' ? _lang('REG NO').': '.clean($quotation->lead->reg_no).' ' : '' !!}
@endif
{{ _lang('Quotation Details') }}
{{ _lang('Quotation') }} #: {{ $quotation->quotation_number }}
{{ _lang('Quotation Date') }}: {{ date($date_format, strtotime( $quotation->quotation_date)) }}
|
| {{ _lang('Name') }} |
{{ _lang('Quantity') }} |
{{ _lang('Unit Cost') }} |
{{ _lang('Discount') }} |
{{ _lang('Tax method') }} |
{{ _lang('Tax') }} |
{{ _lang('Sub Total') }} |
@foreach($quotation->quotation_items as $item)
{{ $item->item->item_name }} {{ $item->description }}
|
{{ $item->quantity }} |
{{ decimalPlace($item->unit_cost, $currency) }} |
{{ decimalPlace($item->discount, $currency) }} |
{{ strtoupper($item->tax_method) }} |
{{ decimalPlace($item->tax_amount, $currency) }} |
{{ decimalPlace($item->sub_total, $currency) }} |
@endforeach
| {{ _lang('Tax') }} |
{{ decimalPlace($quotation->tax_total, $currency) }}
@if($quotation->related_to == 'contacts' && isset($quotation->client))
@if($quotation->client->currency != $base_currency)
{{ decimalPlace(convert_currency($base_currency, $quotation->client->currency, $quotation->tax_total), currency($quotation->client->currency)) }}
@endif
@elseif($quotation->related_to == 'leads' && isset($quotation->lead))
@if($quotation->lead->currency != $base_currency)
{{ decimalPlace(convert_currency($base_currency, $quotation->lead->currency, $quotation->tax_total), currency($quotation->lead->currency)) }}
@endif
@endif
|
| {{ _lang('Grand Total') }} |
{{ decimalPlace($quotation->grand_total, $currency) }}
@if($quotation->related_to == 'contacts' && isset($quotation->client))
@if($quotation->client->currency != $base_currency)
{{ decimalPlace($quotation->converted_total, currency($quotation->client->currency)) }}
@endif
@elseif($quotation->related_to == 'leads' && isset($quotation->lead))
@if($quotation->lead->currency != $base_currency)
{{ decimalPlace($quotation->converted_total, currency($quotation->lead->currency)) }}
@endif
@endif
|
@if($quotation->note != '')
@endif
@if(get_company_field($quotation->company_id,'quotation_footer') != '')
{!! xss_clean(get_company_field($quotation->company_id,'quotation_footer')) !!}
@endif