mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Update dompdf version
This commit is contained in:
committed by
Mohit Panjwani
parent
f677a54c2a
commit
a14655d73b
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>@lang('pdf_estimate_label') - {{$estimate->estimate_number}}</title>
|
||||
<title>@lang('pdf_estimate_label') - {{ $estimate->estimate_number }}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
@ -46,7 +46,7 @@
|
||||
}
|
||||
|
||||
.header-logo {
|
||||
height: 50px;
|
||||
|
||||
margin-top: 20px;
|
||||
text-transform: capitalize;
|
||||
color: #817AE3;
|
||||
@ -260,6 +260,7 @@
|
||||
|
||||
.total-display-container {
|
||||
padding: 0 25px;
|
||||
|
||||
}
|
||||
|
||||
.total-display-table {
|
||||
@ -268,8 +269,10 @@
|
||||
page-break-inside: avoid;
|
||||
page-break-before: auto;
|
||||
page-break-after: auto;
|
||||
margin-left: 500px;
|
||||
margin-top: 20px;
|
||||
float: right;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
|
||||
.total-table-attribute-label {
|
||||
@ -308,7 +311,7 @@
|
||||
.notes {
|
||||
font-size: 12px;
|
||||
color: #595959;
|
||||
margin-top: 15px;
|
||||
margin-top: 80px;
|
||||
margin-left: 30px;
|
||||
width: 442px;
|
||||
text-align: left;
|
||||
@ -381,6 +384,7 @@
|
||||
.pl-0 {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -389,11 +393,11 @@
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
@if($logo)
|
||||
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
|
||||
@if ($logo)
|
||||
<img class="header-logo" style="height: 50px;" src="{{ $logo }}" alt="Company Logo">
|
||||
@else
|
||||
@if($estimate->customer->company)
|
||||
<h2 class="header-logo"> {{$estimate->customer->company->name}} </h2>
|
||||
@if ($estimate->customer->company)
|
||||
<h2 class="header-logo"> {{ $estimate->customer->company->name }} </h2>
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
@ -412,15 +416,15 @@
|
||||
<table class="estimate-details-table">
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_number')</td>
|
||||
<td class="attribute-value"> {{$estimate->estimate_number}}</td>
|
||||
<td class="attribute-value"> {{ $estimate->estimate_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_date')</td>
|
||||
<td class="attribute-value"> {{$estimate->formattedEstimateDate}}</td>
|
||||
<td class="attribute-value"> {{ $estimate->formattedEstimateDate }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_expire_date')</td>
|
||||
<td class="attribute-value"> {{$estimate->formattedExpiryDate}}</td>
|
||||
<td class="attribute-value"> {{ $estimate->formattedExpiryDate }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@ -428,9 +432,9 @@
|
||||
</div>
|
||||
|
||||
<div class="customer-address-container">
|
||||
@if($billing_address !== '</br>')
|
||||
@if ($billing_address !== '</br>')
|
||||
<div class="billing-address-container billing-address">
|
||||
@if($billing_address)
|
||||
@if ($billing_address)
|
||||
<b>@lang('pdf_bill_to')</b> <br>
|
||||
{!! $billing_address !!}
|
||||
@endif
|
||||
@ -438,10 +442,10 @@
|
||||
@endif
|
||||
|
||||
|
||||
<div @if($billing_address !== '</br>') class="shipping-address-container shipping-address" @else class="shipping-address-container--left shipping-address" style="padding-left:30px;" @endif>
|
||||
<div @if ($billing_address !== '</br>') class="shipping-address-container shipping-address" @else class="shipping-address-container--left shipping-address" style="padding-left:30px;" @endif>
|
||||
|
||||
@if($shipping_address)
|
||||
<b>@lang('pdf_ship_to') </b> <br>
|
||||
@if ($shipping_address)
|
||||
<b>@lang('pdf_ship_to') </b> <br>
|
||||
{!! $shipping_address !!}
|
||||
@endif
|
||||
</div>
|
||||
@ -454,7 +458,7 @@
|
||||
</div>
|
||||
|
||||
<div class="notes">
|
||||
@if($notes)
|
||||
@if ($notes)
|
||||
<div class="notes-label">
|
||||
@lang('pdf_notes')
|
||||
</div>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>@lang('pdf_estimate_label') - {{$estimate->estimate_number}}</title>
|
||||
<title>@lang('pdf_estimate_label') - {{ $estimate->estimate_number }}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style type="text/css">
|
||||
/* -- Base -- */
|
||||
@ -46,7 +46,7 @@
|
||||
|
||||
.header-logo {
|
||||
position: absolute;
|
||||
height: 50px;
|
||||
|
||||
text-transform: capitalize;
|
||||
color: #fff;
|
||||
}
|
||||
@ -278,6 +278,7 @@
|
||||
|
||||
/* -- Total Display Table -- */
|
||||
|
||||
|
||||
.total-display-container {
|
||||
padding: 0 25px;
|
||||
}
|
||||
@ -291,9 +292,9 @@
|
||||
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 {
|
||||
@ -313,12 +314,26 @@
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.total-border-left {
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
border-right: 0px !important;
|
||||
padding-top: 0px;
|
||||
padding: 8px !important;
|
||||
}
|
||||
|
||||
.total-border-right {
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
border-left: 0px !important;
|
||||
padding-top: 0px;
|
||||
padding: 8px !important;
|
||||
}
|
||||
|
||||
/* -- Notes -- */
|
||||
|
||||
.notes {
|
||||
font-size: 12px;
|
||||
color: #595959;
|
||||
margin-top: 15px;
|
||||
margin-top: 80px;
|
||||
margin-left: 30px;
|
||||
width: 442px;
|
||||
text-align: left;
|
||||
@ -391,6 +406,7 @@
|
||||
.pl-0 {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -398,21 +414,21 @@
|
||||
<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>
|
||||
@if ($logo)
|
||||
<td width="60%" class="header-section-left">
|
||||
<img class="header-logo" style="height: 50px;" src="{{ $logo }}" alt="Company Logo">
|
||||
</td>
|
||||
@else
|
||||
<td width="60%" class="header-section-left" style="padding-top: 0px;">
|
||||
@if($estimate->customer->company)
|
||||
<h1 class="header-logo"> {{$estimate->customer->company->name}} </h1>
|
||||
@endif
|
||||
@if ($estimate->customer->company)
|
||||
<h1 class="header-logo"> {{ $estimate->customer->company->name }} </h1>
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
<td width="40%" class="header-section-right estimate-details-container">
|
||||
<h1>@lang('pdf_estimate_label')</h1>
|
||||
<h4>{{$estimate->estimate_number}}</h4>
|
||||
<h4>{{$estimate->formattedEstimateDate}}</h4>
|
||||
<h4>{{ $estimate->estimate_number }}</h4>
|
||||
<h4>{{ $estimate->formattedEstimateDate }}</h4>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -424,17 +440,17 @@
|
||||
{!! $company_address !!}
|
||||
</div>
|
||||
|
||||
@if($shipping_address !== '</br>')
|
||||
<div class="shipping-address-container shipping-address">
|
||||
@if($shipping_address)
|
||||
<b>@lang('pdf_ship_to')</b> <br>
|
||||
{!! $shipping_address !!}
|
||||
@endif
|
||||
</div>
|
||||
@if ($shipping_address !== '</br>')
|
||||
<div class="shipping-address-container shipping-address">
|
||||
@if ($shipping_address)
|
||||
<b>@lang('pdf_ship_to')</b> <br>
|
||||
{!! $shipping_address !!}
|
||||
@endif
|
||||
</div>
|
||||
@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
|
||||
@ -445,7 +461,7 @@
|
||||
@include('app.pdf.estimate.partials.table')
|
||||
|
||||
<div class="notes">
|
||||
@if($notes)
|
||||
@if ($notes)
|
||||
<div class="notes-label">
|
||||
@lang('pdf_notes')
|
||||
</div>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>@lang('pdf_estimate_label') - {{$estimate->estimate_number}}</title>
|
||||
<title>@lang('pdf_estimate_label') - {{ $estimate->estimate_number }}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
.header-logo {
|
||||
height: 50px;
|
||||
|
||||
text-transform: capitalize;
|
||||
color: #817AE3;
|
||||
padding-top: 0px;
|
||||
@ -46,8 +46,9 @@
|
||||
.company-address-container {
|
||||
width: 50%;
|
||||
text-transform: capitalize;
|
||||
padding-left: 80px;
|
||||
padding-right: 60px;
|
||||
margin-bottom: 2px;
|
||||
|
||||
}
|
||||
|
||||
.company-address {
|
||||
@ -81,7 +82,7 @@
|
||||
}
|
||||
|
||||
.shipping-address-container--left {
|
||||
float:left;
|
||||
float: left;
|
||||
display: block;
|
||||
padding-left: 0;
|
||||
}
|
||||
@ -228,8 +229,10 @@
|
||||
page-break-inside: avoid;
|
||||
page-break-before: auto;
|
||||
page-break-after: auto;
|
||||
margin-left: 500px;
|
||||
margin-top: 20px;
|
||||
float: right;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
|
||||
.total-table-attribute-label {
|
||||
@ -268,7 +271,7 @@
|
||||
.notes {
|
||||
font-size: 12px;
|
||||
color: #595959;
|
||||
margin-top: 15px;
|
||||
margin-top: 80px;
|
||||
margin-left: 30px;
|
||||
width: 442px;
|
||||
text-align: left;
|
||||
@ -341,6 +344,7 @@
|
||||
.pl-0 {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -349,10 +353,10 @@
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="50%" class="header-section-left">
|
||||
@if($logo)
|
||||
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
|
||||
@if ($logo)
|
||||
<img class="header-logo" style="height: 50px;" src="{{ $logo }}" alt="Company Logo">
|
||||
@else
|
||||
<h1 class="header-logo"> {{$estimate->customer->company->name}} </h1>
|
||||
<h1 class="header-logo"> {{ $estimate->customer->company->name }} </h1>
|
||||
@endif
|
||||
</td>
|
||||
<td width="50%" class="text-right company-address-container company-address">
|
||||
@ -368,14 +372,14 @@
|
||||
<div class="main-content">
|
||||
<div class="customer-address-container">
|
||||
<div class="billing-address-container billing-address">
|
||||
@if($billing_address)
|
||||
@if ($billing_address)
|
||||
<b>@lang('pdf_bill_to')</b> <br>
|
||||
{!! $billing_address !!}
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div @if($estimate->customer->billingaddress) class="shipping-address-container shipping-address" @else class="shipping-address-container--left shipping-address" @endif>
|
||||
@if($shipping_address)
|
||||
<div @if ($estimate->customer->billingaddress) class="shipping-address-container shipping-address" @else class="shipping-address-container--left shipping-address" @endif>
|
||||
@if ($shipping_address)
|
||||
<b>@lang('pdf_ship_to')</b> <br>
|
||||
{!! $shipping_address !!}
|
||||
@endif
|
||||
@ -388,15 +392,15 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_number')</td>
|
||||
<td class="attribute-value"> {{$estimate->estimate_number}}</td>
|
||||
<td class="attribute-value"> {{ $estimate->estimate_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_date') </td>
|
||||
<td class="attribute-value"> {{$estimate->formattedEstimateDate}}</td>
|
||||
<td class="attribute-value"> {{ $estimate->formattedEstimateDate }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_expire_date')</td>
|
||||
<td class="attribute-value"> {{$estimate->formattedExpiryDate}}</td>
|
||||
<td class="attribute-value"> {{ $estimate->formattedExpiryDate }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@ -405,7 +409,7 @@
|
||||
@include('app.pdf.estimate.partials.table')
|
||||
|
||||
<div class="notes">
|
||||
@if($notes)
|
||||
@if ($notes)
|
||||
<div class="notes-label">
|
||||
@lang('pdf_notes')
|
||||
</div>
|
||||
|
||||
@ -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">
|
||||
@ -15,10 +15,11 @@
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
margin-top: 50px;
|
||||
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
hr {
|
||||
@ -31,10 +32,11 @@
|
||||
|
||||
.header-bottom-divider {
|
||||
color: rgba(0, 0, 0, 0.2);
|
||||
position: absolute;
|
||||
top: 90px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
margin-left: 0%;
|
||||
|
||||
}
|
||||
|
||||
.header-container {
|
||||
@ -46,10 +48,11 @@
|
||||
}
|
||||
|
||||
.header-logo {
|
||||
height: 50px;
|
||||
margin-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
text-transform: capitalize;
|
||||
color: #817AE3;
|
||||
|
||||
}
|
||||
|
||||
.header {
|
||||
@ -81,7 +84,7 @@
|
||||
}
|
||||
|
||||
.company-address {
|
||||
margin-top: 2px;
|
||||
margin-top: 16px;
|
||||
text-align: left;
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
@ -93,6 +96,7 @@
|
||||
.invoice-details-container {
|
||||
float: right;
|
||||
padding: 10px 30px 0 0;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.attribute-label {
|
||||
@ -218,8 +222,9 @@
|
||||
page-break-inside: avoid;
|
||||
page-break-before: auto;
|
||||
page-break-after: auto;
|
||||
margin-left: 500px;
|
||||
margin-top: 20px;
|
||||
float: right;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.total-table-attribute-label {
|
||||
@ -282,9 +287,6 @@
|
||||
color: #5851DB;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center
|
||||
}
|
||||
|
||||
table .text-left {
|
||||
text-align: left;
|
||||
@ -331,6 +333,7 @@
|
||||
.pl-0 {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -339,11 +342,11 @@
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
@if($logo)
|
||||
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
|
||||
@if ($logo)
|
||||
<img class="header-logo" style="height:50px" src="{{ $logo }}" alt="Company Logo">
|
||||
@else
|
||||
@if($invoice->customer->company)
|
||||
<h2 class="header-logo"> {{$invoice->customer->company->name}} </h2>
|
||||
@if ($invoice->customer->company)
|
||||
<h2 class="header-logo"> {{ $invoice->customer->company->name }}</h2>
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
@ -352,6 +355,7 @@
|
||||
<hr class="header-bottom-divider" style="border: 0.620315px solid #E8E8E8;" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<div style="padding-top: 30px">
|
||||
<div class="company-address-container company-address">
|
||||
@ -362,15 +366,15 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_invoice_number')</td>
|
||||
<td class="attribute-value"> {{$invoice->invoice_number}}</td>
|
||||
<td class="attribute-value"> {{ $invoice->invoice_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_invoice_date')</td>
|
||||
<td class="attribute-value"> {{$invoice->formattedInvoiceDate}}</td>
|
||||
<td class="attribute-value"> {{ $invoice->formattedInvoiceDate }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_invoice_due_date')</td>
|
||||
<td class="attribute-value"> {{$invoice->formattedDueDate}}</td>
|
||||
<td class="attribute-value"> {{ $invoice->formattedDueDate }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@ -379,15 +383,15 @@
|
||||
</div>
|
||||
|
||||
<div class="billing-address-container billing-address">
|
||||
@if($billing_address)
|
||||
@if ($billing_address)
|
||||
<b>@lang('pdf_bill_to')</b> <br>
|
||||
|
||||
{!! $billing_address !!}
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="shipping-address-container shipping-address" @if($billing_address !=='</br>' ) style="float:left;" @else style="display:block; float:left: padding-left: 0px;" @endif>
|
||||
@if($shipping_address)
|
||||
<div class="shipping-address-container shipping-address" @if ($billing_address !== '</br>') style="float:left;" @else style="display:block; float:left: padding-left: 0px;" @endif>
|
||||
@if ($shipping_address)
|
||||
<b>@lang('pdf_ship_to')</b> <br>
|
||||
|
||||
{!! $shipping_address !!}
|
||||
@ -399,7 +403,7 @@
|
||||
</div>
|
||||
|
||||
<div class="notes">
|
||||
@if($notes)
|
||||
@if ($notes)
|
||||
<div class="notes-label">
|
||||
@lang('pdf_notes')
|
||||
</div>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
}
|
||||
|
||||
.header-logo {
|
||||
height: 50px;
|
||||
|
||||
text-transform: capitalize;
|
||||
color: #817AE3;
|
||||
padding-top: 0px;
|
||||
@ -44,8 +44,8 @@
|
||||
|
||||
.company-address-container {
|
||||
width: 50%;
|
||||
padding-left: 80px;
|
||||
margin-bottom: 2px;
|
||||
padding-right: 60px;
|
||||
}
|
||||
|
||||
.company-address {
|
||||
@ -187,11 +187,13 @@
|
||||
|
||||
|
||||
.total-display-table {
|
||||
border-top: none;
|
||||
page-break-inside: avoid;
|
||||
page-break-before: auto;
|
||||
page-break-after: auto;
|
||||
margin-left: 500px;
|
||||
margin-top: 20px;
|
||||
float: right;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.total-table-attribute-label {
|
||||
@ -311,7 +313,7 @@
|
||||
<tr>
|
||||
<td width="50%" class="header-section-left">
|
||||
@if($logo)
|
||||
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
|
||||
<img class="header-logo" style="height: 50px;" src="{{ $logo }}" alt="Company Logo">
|
||||
@else
|
||||
<h1 class="header-logo"> {{$invoice->customer->company->name}} </h1>
|
||||
@endif
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>@lang('pdf_payment_label') - {{$payment->payment_number}}</title>
|
||||
<title>@lang('pdf_payment_label') - {{ $payment->payment_number }}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
@ -15,6 +15,7 @@
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
table {
|
||||
@ -24,6 +25,7 @@
|
||||
hr {
|
||||
color: rgba(0, 0, 0, 0.2);
|
||||
border: 0.5px solid #EAF1FB;
|
||||
margin: 50px 0px;
|
||||
}
|
||||
|
||||
/* -- Heeader -- */
|
||||
@ -48,7 +50,6 @@
|
||||
|
||||
.header-logo {
|
||||
/* position: absolute; */
|
||||
height: 50px;
|
||||
text-transform: capitalize;
|
||||
color: #817AE3;
|
||||
padding-top: 0px;
|
||||
@ -62,9 +63,9 @@
|
||||
}
|
||||
|
||||
/* .header-section-right {
|
||||
display:inline-block;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
right:0;
|
||||
right: 0;
|
||||
padding: 15px 30px 15px 0px;
|
||||
float: right;
|
||||
} */
|
||||
@ -92,9 +93,10 @@
|
||||
}
|
||||
|
||||
.company-address {
|
||||
/* margin-top: 12px; */
|
||||
margin-top: 0px;
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
padding-right: 60px;
|
||||
color: #595959;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
@ -181,10 +183,10 @@
|
||||
.payment-details-container {
|
||||
display: inline;
|
||||
position: absolute;
|
||||
float: right;
|
||||
width: 40%;
|
||||
height: 120px;
|
||||
padding: 5px 30px 0 0;
|
||||
left: 440px;
|
||||
padding: 5px 10px 0 0;
|
||||
}
|
||||
|
||||
.attribute-label {
|
||||
@ -205,11 +207,11 @@
|
||||
.notes {
|
||||
font-size: 12px;
|
||||
color: #595959;
|
||||
margin-top: 15px;
|
||||
margin-top: 100px;
|
||||
margin-left: 30px;
|
||||
width: 442px;
|
||||
width: 90%;
|
||||
text-align: left;
|
||||
page-break-inside: avoid;
|
||||
page-break-before: avoid;
|
||||
}
|
||||
|
||||
.notes-label {
|
||||
@ -245,7 +247,7 @@
|
||||
/* -- Total Display Box -- */
|
||||
|
||||
.total-display-box {
|
||||
width: 315px;
|
||||
min-width: 315px;
|
||||
display: block;
|
||||
margin-right: 30px;
|
||||
background: #F9FBFF;
|
||||
@ -270,7 +272,9 @@
|
||||
line-height: 21px;
|
||||
text-align: right;
|
||||
color: #5851D8;
|
||||
margin-left: 150px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -278,15 +282,15 @@
|
||||
<div class="header-container">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
@if($logo)
|
||||
<td width="50%" class="header-section-left">
|
||||
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
|
||||
@if ($logo)
|
||||
<td width="50%" class="header-section-left">
|
||||
<img style="height: 50px;" class="header-logo" src="{{ $logo }}" alt="Company Logo">
|
||||
@else
|
||||
@if($payment->customer)
|
||||
<td class="header-section-left" style="padding-top:0px;">
|
||||
<h1 class="header-logo"> {{$payment->customer->company->name}} </h1>
|
||||
@endif
|
||||
@endif
|
||||
@if ($payment->customer)
|
||||
<td class="header-section-left" style="padding-top:0px;">
|
||||
<h1 class="header-logo"> {{ $payment->customer->company->name }} </h1>
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
<td width="50%" class="header-section-right company-details company-address">
|
||||
{!! $company_address !!}
|
||||
@ -305,9 +309,9 @@
|
||||
<div class="main-content">
|
||||
<div class="customer-address-container">
|
||||
<div class="billing-address-container billing-address">
|
||||
@if($billing_address)
|
||||
@lang('pdf_received_from')
|
||||
{!! $billing_address !!}
|
||||
@if ($billing_address)
|
||||
@lang('pdf_received_from')
|
||||
{!! $billing_address !!}
|
||||
@endif
|
||||
</div>
|
||||
<div class="billing-address-container--right">
|
||||
@ -319,21 +323,22 @@
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_payment_date')</td>
|
||||
<td class="attribute-value"> {{$payment->formattedPaymentDate}}</td>
|
||||
<td class="attribute-value"> {{ $payment->formattedPaymentDate }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_payment_number')</td>
|
||||
<td class="attribute-value"> {{$payment->payment_number}}</td>
|
||||
<td class="attribute-value"> {{ $payment->payment_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_payment_mode')</td>
|
||||
<td class="attribute-value"> {{$payment->paymentMethod ? $payment->paymentMethod->name : '-'}}</td>
|
||||
<td class="attribute-value">
|
||||
{{ $payment->paymentMethod ? $payment->paymentMethod->name : '-' }}</td>
|
||||
</tr>
|
||||
@if ($payment->invoice && $payment->invoice->invoice_number)
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_invoice_label')</td>
|
||||
<td class="attribute-value"> {{$payment->invoice->invoice_number}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_invoice_label')</td>
|
||||
<td class="attribute-value"> {{ $payment->invoice->invoice_number }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
@ -344,6 +349,14 @@
|
||||
<p class="total-display-label">@lang('pdf_payment_amount_received_label')</p>
|
||||
<span class="amount">{!! format_money_pdf($payment->amount, $payment->customer->currency) !!}</span>
|
||||
</div>
|
||||
<div class="notes">
|
||||
@if ($notes)
|
||||
<div class="notes-label">
|
||||
@lang('pdf_notes')
|
||||
</div>
|
||||
{!! $notes !!}
|
||||
@endif
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user