+
+
@include('app.pdf.estimate.partials.billing-address')
@if($estimate->user->billingaddress) -
+
@else -
+
@endif @include('app.pdf.estimate.partials.shipping-address')
-
+
- + - + - +
Estimate NumberEstimate Number  {{$estimate->estimate_number}}
Estimate Date Estimate Date  {{$estimate->formattedEstimateDate}}
Expiry DateExpiry Date  {{$estimate->formattedExpiryDate}}
@@ -446,4 +440,4 @@
- \ No newline at end of file + diff --git a/resources/views/app/pdf/estimate/partials/table.blade.php b/resources/views/app/pdf/estimate/partials/table.blade.php index cd472b33..5cf55b56 100644 --- a/resources/views/app/pdf/estimate/partials/table.blade.php +++ b/resources/views/app/pdf/estimate/partials/table.blade.php @@ -1,11 +1,11 @@ - +
- - - - + + + + @if($estimate->discount_per_item === 'YES') - + @endif @@ -15,37 +15,33 @@ @foreach ($estimate->items as $item) @if($estimate->discount_per_item === 'YES') -
#ItemsQuantityPrice#ItemsQuantityPriceDiscountDiscountAmount
{{$index}} {{ $item->name }}
{!! nl2br(htmlspecialchars($item->description)) !!}
{{$item->quantity}} {!! format_money_pdf($item->price, $estimate->user->currency) !!} + @if($item->discount_type === 'fixed') {!! format_money_pdf($item->discount_val, $estimate->user->currency) !!} @endif @@ -68,18 +64,17 @@ - - + + @if ($estimate->tax_per_item === 'YES') @for ($i = 0; $i < count($labels); $i++) - - @@ -87,10 +82,10 @@ @else @foreach ($estimate->taxes as $tax) - - @@ -99,7 +94,7 @@ @if ($estimate->discount_per_item === 'NO') - - @endif - - + + - - +
Subtotal{!! format_money_pdf($estimate->sub_total, $estimate->user->currency) !!}Subtotal{!! format_money_pdf($estimate->sub_total, $estimate->user->currency) !!}
+ {{$labels[$i]}} + {!! format_money_pdf($taxes[$i], $estimate->user->currency) !!}
+ {{$tax->name.' ('.$tax->percent.'%)'}} + {!! format_money_pdf($tax->amount, $estimate->user->currency) !!}
+ @if($estimate->discount_type === 'fixed') Discount @endif @@ -107,7 +102,7 @@ Discount ({{$estimate->discount}}%) @endif + @if($estimate->discount_type === 'fixed') {!! format_money_pdf($estimate->discount_val, $estimate->user->currency) !!} @endif @@ -118,19 +113,12 @@
- - + Total {!! format_money_pdf($estimate->total, $estimate->user->currency)!!}