Use Laravel-Dompdf and create pdf invoices.
This commit is contained in:
35
resources/views/pdfs/address.blade.php
Normal file
35
resources/views/pdfs/address.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="left" style="margin-left: 10mm; height: 45mm; width: 100mm;">
|
||||
<div style="font-size: 10px;">{{ $options->company_name }}, {{ $options->address }}
|
||||
, {{ $options->zip }} {{ $options->city }}</div>
|
||||
<div style="margin-top: 5mm;">
|
||||
<div>{{ $invoice->address->name }}</div>
|
||||
<div>{{ $invoice->address->address }}</div>
|
||||
<div> </div>
|
||||
<div>{{ $invoice->address->zip }} {{ $invoice->address->city }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="right" style="height: 45mm; width: 60mm; font-size: 13px; ">
|
||||
<div class="left">{{ __('common.Phone_short') }}:</div>
|
||||
<div class="right text-right">{{ $options->phone }}</div>
|
||||
<br/>
|
||||
<div class="left">{{ __('common.Email_short') }}:</div>
|
||||
<div class="right text-right" style="color: {{ $options->color_1 }};">{{ $options->email }}</div>
|
||||
<br/>
|
||||
<div class="left">{{ __('common.Web_short') }}:</div>
|
||||
<div class="right text-right" style="color: {{ $options->color_1 }};">{{ $options->website }}</div>
|
||||
<br/>
|
||||
<div class="text-right" style="margin-top: 5mm; color: {{ $options->color_2 }};">{!! nl2br($options->activity) !!}</div>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="left" style="width: 110mm; height:15mm;">
|
||||
{{ __('invoice.Invoice Number short') }}: {{ $invoice->number }}
|
||||
</div>
|
||||
<div class="right" style=" width: 60mm; height:15mm;">
|
||||
<div class="left">{{ __('common.Date') }}:</div>
|
||||
<div class="right text-right">{{ $invoice->created }}</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
Reference in New Issue
Block a user