@extends('layouts.public') @section('content')
|
|||
{{ _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') }} |
|---|---|---|---|---|---|---|
|
{{ $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) }} |
| {{ _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 |