Update dompdf version

This commit is contained in:
Harsh Jagad
2022-01-12 11:44:45 +00:00
committed by Mohit Panjwani
parent f677a54c2a
commit a14655d73b
9 changed files with 212 additions and 173 deletions

View File

@ -2,7 +2,7 @@
<html>
<head>
<title>@lang('pdf_invoice_label') - {{$invoice->invoice_number}}</title>
<title>@lang('pdf_invoice_label') - {{ $invoice->invoice_number }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
/* -- Base -- */
@ -14,6 +14,7 @@
margin: 0px;
padding: 0px;
margin-top: 50px;
margin-bottom: 25px;
}
table {
@ -38,7 +39,6 @@
}
.header-section-left {
padding-top: 45px;
padding-bottom: 45px;
padding-left: 30px;
display: inline-block;
@ -46,10 +46,11 @@
}
.header-logo {
padding-top: 45px;
position: absolute;
height: 50px;
text-transform: capitalize;
color: #fff;
}
.header-section-right {
@ -256,12 +257,13 @@
}
.total-display-table {
border-top: none;
page-break-inside: avoid;
page-break-before: auto;
page-break-after: auto;
margin-left: 500px;
border: 1px solid #EAF1FB;
border-top: none;
margin-top: 20px;
float: right;
width: auto;
}
.total-table-attribute-label {
@ -373,6 +375,7 @@
.pl-0 {
padding-left: 0;
}
</style>
</head>
@ -380,22 +383,20 @@
<div class="header-container">
<table width="100%">
<tr>
@if($logo)
<td width="60%" class="header-section-left">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
</td>
@else
<td width="60%" class="header-section-left" style="padding-top: 0px;">
@if($invoice->customer->company)
<h1 class="header-logo"> {{$invoice->customer->company->name}} </h1>
@endif
</td>
@endif
<td width="60%" class="header-section-left">
@if ($logo)
<img class="header-logo" src="{{ $logo }}" alt="Company Logo" style="height: 50px;">
@elseif ($invoice->customer->company)
<h1 class="header-logo" style="padding-top: 0px;">
{{ $invoice->customer->company->name }}
</h1>
@endif
</td>
<td width="40%" class="header-section-right invoice-details-container">
<h1>@lang('pdf_invoice_label')</h1>
<h4>{{$invoice->invoice_number}}</h4>
<h4>{{$invoice->formattedInvoiceDate}}</h4>
<h4>{{ $invoice->invoice_number }}</h4>
<h4>{{ $invoice->formattedInvoiceDate }}</h4>
</td>
</tr>
</table>
@ -409,9 +410,9 @@
{!! $company_address !!}
</div>
@if($shipping_address !== '</br>')
@if ($shipping_address !== '</br>')
<div class="shipping-address-container shipping-address">
@if($shipping_address)
@if ($shipping_address)
<b>@lang('pdf_ship_to')</b> <br>
{!! $shipping_address !!}
@endif
@ -419,8 +420,8 @@
@endif
<div class="billing-address-container billing-address" @if($shipping_address === '</br>') style="float:right; margin-right:30px;" @endif>
@if($billing_address)
<div class="billing-address-container billing-address" @if ($shipping_address === '</br>') style="float:right; margin-right:30px;" @endif>
@if ($billing_address)
<b>@lang('pdf_bill_to')</b> <br>
{!! $billing_address !!}
@endif
@ -432,7 +433,7 @@
@include('app.pdf.invoice.partials.table')
<div class="notes">
@if($notes)
@if ($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>