Skip to content

Commit 9afb011

Browse files
committed
Updated invoice pdf
1 parent 756f509 commit 9afb011

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

resources/views/invoices/pdf.blade.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</td>
1919
<td width="50%" style="text-align: right">
2020
@if($logo)
21-
<img src="{{ asset('storage/'.$logo) }}" height="140" />
21+
<img src="{{ asset('storage/'.$logo) }}" height="140" style="margin-top: 10px" />
2222
@endif
2323
</td>
2424
</tr>
@@ -87,18 +87,23 @@
8787
<th scope="col">{{ ucfirst(__('laravel-crm::lang.quantity')) }}</th>
8888
<th scope="col">{{ $taxName }}</th>
8989
<th scope="col">{{ ucfirst(__('laravel-crm::lang.amount')) }}</th>
90-
<th scope="col">{{ ucfirst(__('laravel-crm::lang.comments')) }}</th>
9190
</tr>
9291
</thead>
9392
<tbody>
9493
@foreach($invoice->invoiceLInes()->whereNotNull('product_id')->get() as $invoiceLine)
9594
<tr>
96-
<td>{{ $invoiceLine->product->name ?? null}}</td>
95+
<td>
96+
{{ $invoiceLine->product->name ?? null }}
97+
@if($invoiceLine->comments)
98+
<br /><br />
99+
<strong>{{ ucfirst(__('laravel-crm::lang.comments')) }}: </strong> <br />
100+
{{ $invoiceLine->comments }}
101+
@endif
102+
</td>
97103
<td>{{ money($invoiceLine->price ?? null, $invoiceLine->currency) }}</td>
98104
<td>{{ $invoiceLine->quantity }}</td>
99105
<td>{{ money($invoiceLine->tax_amount ?? null, $invoiceLine->currency) }}</td>
100106
<td>{{ money($invoiceLine->amount ?? null, $invoiceLine->currency) }}</td>
101-
<td>{{ $invoiceLine->comments }}</td>
102107
</tr>
103108
@endforeach
104109
</tbody>
@@ -109,7 +114,6 @@
109114
<td></td>
110115
<td><strong>{{ ucfirst(__('laravel-crm::lang.sub_total')) }}</strong></td>
111116
<td>{{ money($invoice->subtotal, $invoice->currency) }}</td>
112-
<td></td>
113117
</tr>
114118
@if($invoice->discount > 0)
115119
<tr>
@@ -118,7 +122,6 @@
118122
<td></td>
119123
<td><strong>{{ ucfirst(__('laravel-crm::lang.discount')) }}</strong></td>
120124
<td>{{ money($invoice->discount, $invoice->currency) }}</td>
121-
<td></td>
122125
</tr>
123126
@endif
124127
<tr>
@@ -127,23 +130,21 @@
127130
<td></td>
128131
<td><strong>{{ $taxName }}</strong></td>
129132
<td>{{ money($invoice->tax, $invoice->currency) }}</td>
130-
<td></td>
131133
</tr>
132134
{{--<tr>
133135
<td></td>
134136
<td></td>
135137
<td></td>
136138
<td><strong>{{ ucfirst(__('laravel-crm::lang.adjustment')) }}</strong></td>
137139
<td>{{ money($invoice->adjustments, $invoice->currency) }}</td>
138-
<td></td>
140+
139141
</tr>--}}
140142
<tr>
141143
<td></td>
142144
<td></td>
143145
<td></td>
144146
<td><strong>{{ ucfirst(__('laravel-crm::lang.total')) }}</strong></td>
145147
<td>{{ money($invoice->total, $invoice->currency) }}</td>
146-
<td></td>
147148
</tr>
148149
</tfoot>
149150
</table>

0 commit comments

Comments
 (0)