Refactor Invoice and Payment templates

This commit is contained in:
radhu587
2020-05-07 16:42:04 +05:30
parent 30f76e2088
commit 6046113cb1
16 changed files with 758 additions and 949 deletions

View File

@ -6,6 +6,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
/* -- Base -- */
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
@ -26,16 +27,7 @@
border: 0.5px solid #EAF1FB; border: 0.5px solid #EAF1FB;
} }
/* -------------------------- */ /* -- Header -- */
/* header style */
.header-bottom-divider {
color: rgba(0, 0, 0, 0.2);
position: absolute;
top: 90px;
left: 0px;
width: 100%;
}
.header-container { .header-container {
position: absolute; position: absolute;
@ -45,6 +37,14 @@
top: -50px; top: -50px;
} }
.header-bottom-divider {
color: rgba(0, 0, 0, 0.2);
position: absolute;
top: 90px;
left: 0px;
width: 100%;
}
.header-logo { .header-logo {
height: 50px; height: 50px;
margin-top: 20px; margin-top: 20px;
@ -64,8 +64,7 @@
padding-bottom: 20px; padding-bottom: 20px;
} }
/* -------------------------- */ /* -- Company Details -- */
/* company details style */
.company-details-container { .company-details-container {
padding-top: 30px; padding-top: 30px;
@ -79,7 +78,18 @@
margin-bottom: 2px; margin-bottom: 2px;
} }
.company-address-heading { .company-address-container {
padding-left: 30px;
float: left;
width: 30%;
text-transform: capitalize;
margin-bottom: 2px;
}
.company-address-container h1 {
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
@ -87,9 +97,11 @@
margin-top: 10px; margin-top: 10px;
} }
.company-address-text { .company-address {
margin-top: 2px; margin-top: 2px;
text-align: left; text-align: left;
font-size: 12px; font-size: 12px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -114,16 +126,14 @@
text-align: right; text-align: right;
} }
/* -------------------------- */ /* -- Customer Address -- */
/* customer address style */
.customer-address-container { .customer-address-container {
width: 45%; width: 45%;
padding: 0px 0 0 0px; padding: 0px 0 0 0px;
} }
/* -------------------------- */ /* -- Shipping -- */
/* shipping style */
.shipping-address-container { .shipping-address-container {
float: right; float: right;
@ -151,7 +161,7 @@
margin: 0px; margin: 0px;
} }
.shipping-address-text { .shipping-address {
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -160,8 +170,7 @@
width: 160px; width: 160px;
} }
/* -------------------------- */ /* -- Billing -- */
/* billing style */
.billing-address-container { .billing-address-container {
float: left; float: left;
@ -184,7 +193,7 @@
margin: 0px; margin: 0px;
} }
.billing-address-text { .billing-address {
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -193,8 +202,7 @@
width: 160px; width: 160px;
} }
/* -------------------------- */ /* -- Items Table -- */
/* items style */
.items-table { .items-table {
margin-top: 35px; margin-top: 35px;
@ -246,8 +254,7 @@
line-height: 12px; line-height: 12px;
} }
/* -------------------------- */ /* -- Total Display Table -- */
/* total display table style */
.total-display-table { .total-display-table {
border-top: none; border-top: none;
@ -291,8 +298,7 @@
padding: 8px !important; padding: 8px !important;
} }
/* -------------------------- */ /* -- Notes -- */
/* notes style */
.notes { .notes {
font-size: 12px; font-size: 12px;
@ -314,8 +320,7 @@
padding-bottom: 10px; padding-bottom: 10px;
} }
/* -------------------------- */ /* -- Helpers -- */
/* helpers style */
.text-primary { .text-primary {
color: #5851DB; color: #5851DB;

View File

@ -5,6 +5,7 @@
<title>Estimate</title> <title>Estimate</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
/* -- Base -- */
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
@ -25,8 +26,7 @@
border: 0.5px solid #EAF1FB; border: 0.5px solid #EAF1FB;
} }
/* -------------------------- */ /* -- Header -- */
/* header style */
.header-container { .header-container {
background: #817AE3; background: #817AE3;
@ -66,8 +66,7 @@
color: rgba(0, 0, 0, 0.7); color: rgba(0, 0, 0, 0.7);
} }
/* -------------------------- */ /* -- Estimate Details -- */
/* estimate details container */
.estimate-details-container { .estimate-details-container {
text-align: center; text-align: center;
@ -94,8 +93,7 @@
margin-top: 0; margin-top: 0;
} }
/* -------------------------- */ /* -- Address -- */
/* address-container */
.wrapper { .wrapper {
display: block; display: block;
@ -108,6 +106,8 @@
padding-top: 20px; padding-top: 20px;
} }
/* -- Company Address -- */
.company-address-container { .company-address-container {
padding: 0 0 0 30px; padding: 0 0 0 30px;
display: inline; display: inline;
@ -115,24 +115,36 @@
width: 30%; width: 30%;
} }
.company-address-heading { .company-address-container {
font-weight: bold; padding-left: 30px;
float: left;
width: 30%;
text-transform: capitalize;
margin-bottom: 2px;
}
.company-address-container h1 {
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
margin-bottom: 0; margin-bottom: 0px;
margin-top: 12px; margin-top: 10px;
} }
.company-address-text { .company-address {
font-size: 10px; margin-top: 2px;
text-align: left;
font-size: 12px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
margin-top: 0px;
} }
/* -------------------------- */ /* -- Billing -- */
/* billing style */
.billing-address-container { .billing-address-container {
display: block; display: block;
@ -157,7 +169,7 @@
margin-bottom: 0px; margin-bottom: 0px;
} }
.billing-address-text { .billing-address {
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -166,8 +178,7 @@
width: 170px; width: 170px;
} }
/* -------------------------- */ /* -- Shipping -- */
/* shipping style */
.shipping-address-container { .shipping-address-container {
display: block; display: block;
@ -191,7 +202,7 @@
margin-bottom: 0px; margin-bottom: 0px;
} }
.shipping-address-text { .shipping-address {
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -213,8 +224,7 @@
color: rgba(0, 0, 0, 0.7); color: rgba(0, 0, 0, 0.7);
} }
/* -------------------------- */ /* -- Items Table -- */
/* items style */
.items-table { .items-table {
margin-top: 30px; margin-top: 30px;
@ -256,7 +266,7 @@
.item-cell { .item-cell {
font-size: 13; font-size: 13;
color: rgba(0, 0, 0, 0.6); color: #040405;
text-align: center; text-align: center;
padding: 5px; padding: 5px;
padding-top: 10px; padding-top: 10px;
@ -269,8 +279,7 @@
line-height: 12px; line-height: 12px;
} }
/* -------------------------- */ /* -- Total Display Table -- */
/* total display table style */
.total-display-table { .total-display-table {
border-top: none; border-top: none;
@ -315,8 +324,7 @@
padding: 8px !important; padding: 8px !important;
} }
/* -------------------------- */ /* -- Notes -- */
/* notes style */
.notes { .notes {
font-weight: 300; font-weight: 300;
@ -339,8 +347,7 @@
padding-bottom: 10px; padding-bottom: 10px;
} }
/* -------------------------- */ /* -- Helpers -- */
/* helpers style */
.text-primary { .text-primary {
color: #5851DB; color: #5851DB;

View File

@ -6,6 +6,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
/* -- Base -- */
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
@ -26,8 +27,7 @@
margin: 0 30px 0 30px; margin: 0 30px 0 30px;
} }
/* -------------------------- */ /* -- Header -- */
/* header style */
.header-container { .header-container {
position: absolute; position: absolute;
@ -73,16 +73,17 @@
color: rgba(0, 0, 0, 0.7); color: rgba(0, 0, 0, 0.7);
} }
/* -------------------------- */ /* -- Company Address -- */
/* company address container */
.company-address-container { .company-address-container {
width: 30%; width: auto;
text-transform: capitalize; text-transform: capitalize;
margin-bottom: 2px; margin-bottom: 2px;
} }
.company-address-heading { .company-address-container h1 {
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
@ -90,16 +91,17 @@
margin-top: 10px; margin-top: 10px;
} }
.company-address-text { .company-address {
margin-top: 2px; margin-top: 2px;
text-align: left; text-align: left;
font-size: 12px; font-size: 12px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
} }
/* -------------------------- */ /* -- Content Wrapper -- */
/* main content style */
.wrapper { .wrapper {
display: block; display: block;
@ -119,8 +121,7 @@
padding: 0 0 0 30px; padding: 0 0 0 30px;
} }
/* -------------------------- */ /* -- Shipping -- */
/* shipping style */
.shipping-address-container { .shipping-address-container {
float: right; float: right;
@ -144,7 +145,7 @@
margin: 0px; margin: 0px;
} }
.shipping-address-text { .shipping-address {
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -152,8 +153,7 @@
width: 160px; width: 160px;
} }
/* -------------------------- */ /* -- Billing -- */
/* billing style */
.billing-address-container { .billing-address-container {
float: left; float: left;
@ -173,7 +173,7 @@
margin: 0px; margin: 0px;
} }
.billing-address-text { .billing-address {
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -181,8 +181,7 @@
width: 160px; width: 160px;
} }
/* -------------------------- */ /* -- Estimate Details -- */
/* estimate details container */
.estimate-details-container { .estimate-details-container {
display: block; display: block;
@ -203,9 +202,7 @@
text-align: right; text-align: right;
} }
/* -------------------------- */ /* -- Items Table -- */
/* items style */
.items-table { .items-table {
padding: 0px 30px 10px 30px; padding: 0px 30px 10px 30px;
page-break-before: avoid; page-break-before: avoid;
@ -226,7 +223,7 @@
.item-cell { .item-cell {
font-size: 13; font-size: 13;
color: rgba(0, 0, 0, 0.6); color: #040405;
text-align: center; text-align: center;
padding: 5px; padding: 5px;
} }
@ -251,8 +248,7 @@
line-height: 18px; line-height: 18px;
} }
/* -------------------------- */ /* -- Total Display Table -- */
/* total display table style */
.total-display-table { .total-display-table {
border: 1px solid #EAF1FB; border: 1px solid #EAF1FB;
@ -296,8 +292,7 @@
padding: 8px !important; padding: 8px !important;
} }
/* -------------------------- */ /* -- Notes -- */
/* notes style */
.notes { .notes {
font-size: 12px; font-size: 12px;
@ -319,8 +314,7 @@
padding-bottom: 10px; padding-bottom: 10px;
} }
/* -------------------------- */ /* -- Helpers -- */
/* helpers style */
.text-primary { .text-primary {
color: #5851DB; color: #5851DB;

View File

@ -5,7 +5,7 @@
{{$estimate->user->billingaddress->name}} {{$estimate->user->billingaddress->name}}
</p> </p>
@endif @endif
<p class="billing-address-text"> <p class="billing-address">
@if($estimate->user->billingaddress->address_street_1) @if($estimate->user->billingaddress->address_street_1)
{!! nl2br(htmlspecialchars($estimate->user->billingaddress->address_street_1)) !!}<br> {!! nl2br(htmlspecialchars($estimate->user->billingaddress->address_street_1)) !!}<br>
@endif @endif
@ -31,7 +31,7 @@
@endif @endif
@if($estimate->user->billingaddress->phone) @if($estimate->user->billingaddress->phone)
<p class="billing-address-text"> <p class="billing-address">
Phone :{{$estimate->user->billingaddress->phone}} Phone :{{$estimate->user->billingaddress->phone}}
</p> </p>
@endif @endif

View File

@ -1,9 +1,9 @@
@if($estimate->user->company) @if($estimate->user->company)
<p class="company-address-heading"> {{$estimate->user->company->name}} </p> <h1> {{$estimate->user->company->name}} </h1>
@endif @endif
@if($company_address) @if($company_address)
<p class="company-address-text"> <p class="company-address">
@if($company_address->addresses[0]['address_street_1']) @if($company_address->addresses[0]['address_street_1'])
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br> {!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br>
@endif @endif

View File

@ -5,7 +5,7 @@
{{$estimate->user->shippingaddress->name}} {{$estimate->user->shippingaddress->name}}
</p> </p>
@endif @endif
<p class="shipping-address-text"> <p class="shipping-address">
@if($estimate->user->shippingaddress->address_street_1) @if($estimate->user->shippingaddress->address_street_1)
{!! nl2br(htmlspecialchars($estimate->user->shippingaddress->address_street_1)) !!}<br> {!! nl2br(htmlspecialchars($estimate->user->shippingaddress->address_street_1)) !!}<br>
@endif @endif
@ -31,7 +31,7 @@
@endif @endif
@if($estimate->user->phone) @if($estimate->user->phone)
<p class="shipping-address-text"> <p class="shipping-address">
Phone :{{$estimate->user->shippingaddress->phone}} Phone :{{$estimate->user->shippingaddress->phone}}
</p> </p>
@endif @endif

View File

@ -66,7 +66,6 @@
.company-address-container { .company-address-container {
padding-left: 30px; padding-left: 30px;
font-weight: normal;
float: left; float: left;
width: 30%; width: 30%;
text-transform: capitalize; text-transform: capitalize;
@ -74,8 +73,6 @@
} }
.company-address-container h1 { .company-address-container h1 {
font-style: normal;
font-weight: normal;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
@ -86,28 +83,25 @@
.company-address { .company-address {
margin-top: 2px; margin-top: 2px;
text-align: left; text-align: left;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
} }
.amount-due { .invoice-details-container {
background-color: #f2f2f2; float: right;
padding: 10px 30px 0 0;
} }
.attribute-label { .attribute-label {
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
padding-right: 40px; padding-right: 40px;
text-align: left;
color: #55547A;
} }
.attribute-value { .attribute-value {
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
text-align: right; text-align: right;
@ -115,12 +109,12 @@
/* -- Shipping -- */ /* -- Shipping -- */
.ship-address-container { .shipping-address-container {
float: right; float: right;
padding-left: 30px; padding-left: 30px;
} }
.ship-to { .shipping-address-label {
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
padding: 0px; padding: 0px;
@ -128,7 +122,7 @@
margin-bottom: 0px; margin-bottom: 0px;
} }
.ship-user-name { .shipping-address-name {
max-width: 250px; max-width: 250px;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
@ -136,9 +130,7 @@
margin: 0px; margin: 0px;
} }
.ship-user-address { .shipping-address {
font-style: normal;
font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -147,23 +139,14 @@
width: 160px; width: 160px;
} }
.ship-user-phone { /* -- Billing -- */
font-size: 10px;
line-height: 15px;
color: #595959;
padding: 0px;
margin: 0px;
}
/* -------------------------- */ .billing-address-container {
/* billing style */
.bill-address-container {
float: left; float: left;
padding-left: 30px; padding-left: 30px;
} }
.bill-to { .billing-address-label {
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
padding: 0px; padding: 0px;
@ -171,7 +154,7 @@
margin-bottom: 0px; margin-bottom: 0px;
} }
.bill-user-name { .billing-address-name {
max-width: 250px; max-width: 250px;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
@ -179,7 +162,7 @@
margin: 0px; margin: 0px;
} }
.bill-user-address { .billing-address {
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -188,23 +171,16 @@
width: 160px; width: 160px;
} }
.bill-user-phone { /* -- Items Table -- */
font-size: 10px;
line-height: 15px;
color: #595959;
padding: 0px;
margin: 0px;
}
.table2 { .items-table {
margin-top: 35px; margin-top: 35px;
padding: 0px 30px 10px 30px; padding: 0px 30px 10px 30px;
page-break-before: avoid; page-break-before: avoid;
page-break-after: auto; page-break-after: auto;
} }
.items-table hr {
.table2 hr {
height: 0.1px; height: 0.1px;
} }
@ -213,52 +189,63 @@
text-align: center; text-align: center;
color: rgba(0, 0, 0, 0.85); color: rgba(0, 0, 0, 0.85);
padding: 5px; padding: 5px;
color: #55547A;
} }
tr.item-table-heading-row th { tr.item-table-heading-row th {
border-bottom: 0.620315px solid #E8E8E8; border-bottom: 0.620315px solid #E8E8E8;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
} }
tr.item-row td { tr.item-row td {
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
} }
.item-cell { .item-cell {
font-size: 13; font-size: 13;
color: rgba(0, 0, 0, 0.6);
text-align: center; text-align: center;
padding: 5px; padding: 5px;
padding-top: 10px; padding-top: 10px;
color: #040405;
} }
.padd8 { .item-description {
padding-top: 8px; color: #595959;
padding-bottom: 8px; font-size: 9px;
font-weight:300;
line-height: 12px;
} }
.padd2 { /* -- Total Display Table -- */
padding-top: 2px;
padding-bottom: 2px;
}
.table3 { .total-display-table {
/* border: 1px solid #EAF1FB; */
border-top: none; border-top: none;
/* padding-right: 30px; */
box-sizing: border-box; box-sizing: border-box;
width: 630px; width: 630px;
/* position: absolute;
right: -25; */
page-break-inside: avoid; page-break-inside: avoid;
page-break-before: auto; page-break-before: auto;
page-break-after: auto; page-break-after: auto;
margin-left: 420px;
margin-top: 10px;
}
.total-table-attribute-label {
font-size: 13px;
color: #55547A;
text-align: left;
padding-left: 10px;
}
.total-table-attribute-value {
font-weight: 500;
text-align: right;
font-size: 13px;
color: #040405;
padding-right: 10px;
padding-top: 2px;
padding-bottom: 2px;
} }
.total-border-left { .total-border-left {
@ -273,16 +260,9 @@
border-left: 0px !important; border-left: 0px !important;
padding-top: 0px; padding-top: 0px;
padding: 8px !important; padding: 8px !important;
} }
.inv-item { /* -- Notes -- */
border-color: #d9d9d9;
}
.no-border {
border: none;
}
.notes { .notes {
font-size: 12px; font-size: 12px;
@ -303,6 +283,62 @@
height: 19.87px; height: 19.87px;
padding-bottom: 10px; padding-bottom: 10px;
} }
/* -- Helpers -- */
.text-primary {
color: #5851DB;
}
.text-center {
text-align: center
}
table .text-left {
text-align: left;
}
table .text-right {
text-align: right;
}
.border-0 {
border: none;
}
.py-2 {
padding-top: 2px;
padding-bottom: 2px;
}
.py-8 {
padding-top: 8px;
padding-bottom: 8px;
}
.py-3 {
padding: 3px 0;
}
.pr-20 {
padding-right: 20px;
}
.pr-10 {
padding-right: 10px;
}
.pl-20 {
padding-left: 20px;
}
.pl-10 {
padding-left: 10px;
}
.pl-0 {
padding-left: 0;
}
</style> </style>
</head> </head>
@ -328,18 +364,18 @@
<div class="company-address-container"> <div class="company-address-container">
@include('app.pdf.invoice.partials.company-address') @include('app.pdf.invoice.partials.company-address')
</div> </div>
<div style="float: right; padding: 10px 30px 0 0;"> <div class="invoice-details-container">
<table> <table>
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Invoice Number</td> <td class="attribute-label">Invoice Number</td>
<td class="attribute-value"> &nbsp;{{$invoice->invoice_number}}</td> <td class="attribute-value"> &nbsp;{{$invoice->invoice_number}}</td>
</tr> </tr>
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Invoice Date </td> <td class="attribute-label">Invoice Date </td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedInvoiceDate}}</td> <td class="attribute-value"> &nbsp;{{$invoice->formattedInvoiceDate}}</td>
</tr> </tr>
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Due date</td> <td class="attribute-label">Due date</td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedDueDate}}</td> <td class="attribute-value"> &nbsp;{{$invoice->formattedDueDate}}</td>
</tr> </tr>
</table> </table>
@ -347,11 +383,11 @@
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>
<div class="bill-address-container"> <div class="billing-address-container">
@include('app.pdf.invoice.partials.billing-address') @include('app.pdf.invoice.partials.billing-address')
</div> </div>
<div class="ship-address-container" @if($invoice->user->billingaddress) style="float:left;" @endif> <div class="shipping-address-container" @if($invoice->user->billingaddress) style="float:left;" @endif>
@include('app.pdf.invoice.partials.shipping-address') @include('app.pdf.invoice.partials.shipping-address')
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>

View File

@ -5,6 +5,7 @@
<title>Invoice</title> <title>Invoice</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
/* -- Base -- */
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
@ -12,25 +13,22 @@
html { html {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
margin-top: 50px;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
.header-left { hr {
padding-top: 45px; margin: 0 30px 0 30px;
padding-bottom: 45px; color: rgba(0, 0, 0, 0.2);
padding-left: 30px; border: 0.5px solid #EAF1FB;
display: inline-block;
width: 30%;
} }
@page { /* -- Header -- */
margin-top: 60px !important;
}
.header-table { .header-container {
background: #817AE3; background: #817AE3;
position: absolute; position: absolute;
width: 100%; width: 100%;
@ -39,6 +37,14 @@
top: -60px; top: -60px;
} }
.header-section-left {
padding-top: 45px;
padding-bottom: 45px;
padding-left: 30px;
display: inline-block;
width: 30%;
}
.header-logo { .header-logo {
position: absolute; position: absolute;
height: 50px; height: 50px;
@ -46,14 +52,13 @@
color: #fff; color: #fff;
} }
.header-right { .header-section-right {
display: inline-block; display: inline-block;
width: 35%; width: 35%;
float: right; float: right;
padding: 20px 30px 20px 0px; padding: 20px 30px 20px 0px;
text-align: right; text-align: right;
color: white; color: white;
} }
.header { .header {
@ -61,26 +66,56 @@
color: rgba(0, 0, 0, 0.7); color: rgba(0, 0, 0, 0.7);
} }
.wrapper { /* -- Estimate Details -- */
.invoice-details-container {
text-align: center;
width: 40%;
}
.invoice-details-container h1 {
margin: 0;
font-weight: 500;
font-size: 24px;
line-height: 36px;
text-align: right;
}
.invoice-details-container h4 {
margin: 0;
font-size: 10px;
line-height: 15px;
text-align: right;
}
.invoice-details-container h3 {
margin-bottom: 1px;
margin-top: 0;
}
/* -- Content Wrapper -- */
.content-wrapper {
display: block; display: block;
margin-top: 60px; margin-top: 60px;
padding-bottom: 20px; padding-bottom: 20px;
} }
.address { .address-container {
display: block; display: block;
padding-top: 20px; padding-top: 20px;
} }
.company { /* -- Company -- */
.company-address-container {
padding: 0 0 0 30px; padding: 0 0 0 30px;
display: inline; display: inline;
float: left; float: left;
width: 30%; width: 30%;
} }
.company h1 { .company-address-container h1 {
font-style: normal;
font-weight: bold; font-weight: bold;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
@ -89,35 +124,30 @@
} }
.company-address{ .company-address{
font-style: normal;
font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
margin-top: 0px; margin-top: 0px;
} }
/* -------------------------- */ /* -- Billing -- */
/* billing style */
.bill-address-container { .billing-address-container {
display: block; display: block;
/* position: absolute; */ /* position: absolute; */
float: right; float: right;
padding: 0 40px 0 0; padding: 0 40px 0 0;
} }
.bill-to { .billing-address-label {
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
padding: 0px; padding: 0px;
margin-bottom: 0px; margin-bottom: 0px;
} }
.bill-user-name { .billing-address-name {
max-width: 250px font-style: normal; max-width: 250px;
font-weight: normal;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
padding: 0px; padding: 0px;
@ -125,9 +155,7 @@
margin-bottom: 0px; margin-bottom: 0px;
} }
.bill-user-address { .billing-address{
font-style: normal;
font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -136,36 +164,23 @@
width: 170px; width: 170px;
} }
.bill-user-phone { /* -- Shipping -- */
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 15px;
color: #595959;
padding: 0px;
margin: 0px;
}
/* -------------------------- */ .shipping-address-container {
/* shipping style */
.ship-address-container {
display: block; display: block;
float: right; float: right;
padding: 0 30px 0 0; padding: 0 30px 0 0;
} }
.ship-to { .shipping-address-label {
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
padding: 0px; padding: 0px;
margin-bottom: 0px; margin-bottom: 0px;
} }
.ship-user-name { .shipping-address-name {
max-width: 250px font-style: normal; max-width: 250px;
font-weight: normal;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
padding: 0px; padding: 0px;
@ -173,9 +188,7 @@
margin-bottom: 0px; margin-bottom: 0px;
} }
.ship-user-address { .shipping-address {
font-style: normal;
font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -184,37 +197,17 @@
width: 170px; width: 170px;
} }
.ship-user-phone { /* -- Items Table -- */
font-style: normal;
font-weight: normal; .items-table {
font-size: 10px; margin-top: 30px;
line-height: 15px; padding: 0px 30px 10px 30px;
color: #595959; page-break-before: avoid;
padding: 0px; page-break-after: auto;
margin: 0px;
} }
.job-add { .items-table hr {
display: inline; height: 0.1px;
float: right;
width: 40%;
}
.amount-due {
background-color: #f2f2f2;
}
.attribute-label {
font-size: 12;
font-weight: bold;
line-height: 22px;
color: rgba(0, 0, 0, 0.8);
}
.attribute-value {
font-size: 12;
line-height: 22px;
color: rgba(0, 0, 0, 0.7);
} }
.item-table-heading-row td { .item-table-heading-row td {
@ -226,23 +219,6 @@
border-bottom: 1px solid red; border-bottom: 1px solid red;
} }
.table2 {
margin-top: 30px;
padding: 0px 30px 10px 30px;
page-break-before: avoid;
page-break-after: auto;
}
hr {
margin: 0 30px 0 30px;
color: rgba(0, 0, 0, 0.2);
border: 0.5px solid #EAF1FB;
}
.table2 hr {
height: 0.1px;
}
.item-table-heading { .item-table-heading {
font-size: 13.5; font-size: 13.5;
text-align: center; text-align: center;
@ -252,48 +228,26 @@
tr.item-table-heading-row th { tr.item-table-heading-row th {
border-bottom: 0.620315px solid #E8E8E8; border-bottom: 0.620315px solid #E8E8E8;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
} }
tr.item-row td { tr.item-row td {
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
} }
.item-cell { .item-cell {
font-size: 13; font-size: 13;
color: rgba(0, 0, 0, 0.6); color: #040405;
text-align: center; text-align: center;
padding: 5px; padding: 5px;
padding-top: 10px; padding-top: 10px;
} }
.note-header { /* -- Total Display Table -- */
font-size: 13;
color: rgba(0, 0, 0, 0.6);
}
.note-text { .total-display-table {
font-size: 10;
color: rgba(0, 0, 0, 0.6);
}
.padd8 {
padding-top: 8px;
padding-bottom: 8px;
}
.padd2 {
padding-top: 2px;
padding-bottom: 2px;
}
.table3 {
border: 1px solid #EAF1FB; border: 1px solid #EAF1FB;
border-top: none; border-top: none;
box-sizing: border-box; box-sizing: border-box;
@ -301,58 +255,44 @@
page-break-inside: avoid; page-break-inside: avoid;
page-break-before: auto; page-break-before: auto;
page-break-after: auto; page-break-after: auto;
margin-left:420px;
margin-top: 10px
} }
.text-per-item-table3 { .total-table-attribute-label {
border: 1px solid #EAF1FB; font-size: 12px;
border-top: none; color: #55547A;
padding-right: 30px; text-align: left;
box-sizing: border-box; padding-left: 10px;
width: 260px;
/* height: 100px; */
position: absolute;
right: -25;
} }
.inv-item { .total-table-attribute-value {
border-color: #d9d9d9;
}
.no-border {
border: none;
}
.company-details {
text-align: center;
width: 40%;
}
.company-details h1 {
margin: 0;
font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 24px;
line-height: 36px;
text-align: right; text-align: right;
font-size: 12px;
color: #040405;
padding-right: 10px;
padding-top: 2px;
padding-bottom: 2px;
} }
.company-details h4 { .total-border-left {
margin: 0; border: 1px solid #E8E8E8 !important;
font-style: normal; border-right: 0px !important;
font-weight: normal; padding-top: 0px;
font-size: 10px; padding: 8px !important;
line-height: 15px;
text-align: right;
} }
.company-details h3 { .total-border-right {
margin-bottom: 1px; border: 1px solid #E8E8E8 !important;
margin-top: 0; border-left: 0px !important;
padding-top: 0px;
padding: 8px !important;
} }
/* -- Notes -- */
.notes { .notes {
font-style: normal;
font-weight: 300;
font-size: 12px; font-size: 12px;
color: #595959; color: #595959;
margin-top: 15px; margin-top: 15px;
@ -363,8 +303,6 @@
} }
.notes-label { .notes-label {
font-style: normal;
font-weight: normal;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
@ -373,24 +311,80 @@
height: 19.87px; height: 19.87px;
padding-bottom: 10px; padding-bottom: 10px;
} }
/* -- Helpers -- */
.text-primary {
color: #5851DB;
}
.text-center {
text-align: center
}
table .text-left {
text-align: left;
}
table .text-right {
text-align: right;
}
.border-0 {
border: none;
}
.py-2 {
padding-top: 2px;
padding-bottom: 2px;
}
.py-8 {
padding-top: 8px;
padding-bottom: 8px;
}
.py-3 {
padding: 3px 0;
}
.pr-20 {
padding-right: 20px;
}
.pr-10 {
padding-right: 10px;
}
.pl-20 {
padding-left: 20px;
}
.pl-10 {
padding-left: 10px;
}
.pl-0 {
padding-left: 0;
}
</style> </style>
</head> </head>
<body> <body>
<div class="header-table"> <div class="header-container">
<table width="100%"> <table width="100%">
<tr> <tr>
@if($logo) @if($logo)
<td width="60%" class="header-left"> <td width="60%" class="header-section-left">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo"> <img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else @else
<td width="60%" class="header-left" style="padding-top: 0px;"> <td width="60%" class="header-section-left" style="padding-top: 0px;">
@if($invoice->user->company) @if($invoice->user->company)
<h1 class="header-logo"> {{$invoice->user->company->name}} </h1> <h1 class="header-logo"> {{$invoice->user->company->name}} </h1>
@endif @endif
@endif @endif
</td> </td>
<td width="40%" class="header-right company-details"> <td width="40%" class="header-section-right invoice-details-container">
<h1>Invoice</h1> <h1>Invoice</h1>
<h4>{{$invoice->invoice_number}}</h4> <h4>{{$invoice->invoice_number}}</h4>
<h4>{{$invoice->formattedInvoiceDate}}</h4> <h4>{{$invoice->formattedInvoiceDate}}</h4>
@ -399,18 +393,18 @@
</table> </table>
</div> </div>
<hr> <hr>
<div class="wrapper"> <div class="content-wrapper">
<div class="address"> <div class="address-container">
<div class="company"> <div class="company-address-container">
@include('app.pdf.invoice.partials.company-address') @include('app.pdf.invoice.partials.company-address')
</div> </div>
<div class="ship-address-container"> <div class="shipping-address-container">
@include('app.pdf.invoice.partials.shipping-address') @include('app.pdf.invoice.partials.shipping-address')
</div> </div>
@if($invoice->user->shippingaddress) @if($invoice->user->shippingaddress)
<div class="bill-address-container"> <div class="billing-address-container">
@else @else
<div class="bill-address-container" style="float:right;padding-right:0px;"> <div class="billing-address-container" style="float:right;padding-right:0px;">
@endif @endif
@include('app.pdf.invoice.partials.billing-address') @include('app.pdf.invoice.partials.billing-address')
</div> </div>

View File

@ -6,6 +6,8 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> <style type="text/css">
/* -- Base -- */
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
@ -13,32 +15,29 @@
html { html {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
margin-top: 50px;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
.header-line {
color: rgba(0, 0, 0, 0.2);
position: absolute;
top: 80px;
left: 0px;
right: -70px;
width: 100%;
}
hr { hr {
color: rgba(0, 0, 0, 0.2); color: rgba(0, 0, 0, 0.2);
border: 0.5px solid #EAF1FB; border: 0.5px solid #EAF1FB;
} }
.items-table-hr { /* -- Header -- */
margin: 0 30px 0 30px;
.header-bottom-divider {
color: rgba(0, 0, 0, 0.2);
position: absolute;
top: 100px;
left: 0px;
width: 100%;
} }
.header-section-left {
.header-left {
padding-top: 45px; padding-top: 45px;
padding-bottom: 45px; padding-bottom: 45px;
padding-left: 30px; padding-left: 30px;
@ -46,7 +45,7 @@
width: 30%; width: 30%;
} }
.header-table { .header-container {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 150px; height: 150px;
@ -61,7 +60,7 @@
color: #817AE3; color: #817AE3;
} }
.header-right { .header-section-right {
display: inline-block; display: inline-block;
position: absolute; position: absolute;
right: 0; right: 0;
@ -74,76 +73,73 @@
color: rgba(0, 0, 0, 0.7); color: rgba(0, 0, 0, 0.7);
} }
@page { /* -- Company Address */
margin-top: 60px !important;
.company-address-container {
width: auto;
text-transform: capitalize;
margin-bottom: 2px;
} }
.wrapper { .company-address-container h1 {
font-size: 15px;
line-height: 22px;
letter-spacing: 0.05em;
margin-bottom: 0px;
margin-top: 10px;
}
.company-address {
margin-top: 2px;
font-size: 12px;
line-height: 15px;
color: #595959;
}
/* -- Content Wrapper */
.content-wrapper {
display: block; display: block;
padding-top: 50px; padding-top: 50px;
padding-bottom: 20px; padding-bottom: 20px;
} }
.address { .main-content {
display: inline-block; display: inline-block;
padding-top: 100px; padding-top: 100px;
} }
.bill-add { .customer-address-container {
display: block; display: block;
float: left; float: left;
width: 40%; width: 40%;
padding: 0 0 0 30px; padding: 0 0 0 30px;
} }
.company { /* -- Shipping -- */
padding-left: 30px; .shipping-address-container {
display: inline; float:right;
}
.shipping-address-container--left {
float:left; float:left;
width: 30%;
} }
.company h1 { .shipping-address-label {
font-style: normal;
font-weight: bold;
font-size: 18px;
line-height: 22px;
letter-spacing: 0.05em;
}
.company-address{
text-align: left;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 15px;
color: #595959;
margin: 0px;
}
/* -------------------------- */
/* shipping style */
.ship-to {
padding-top: 5px; padding-top: 5px;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
margin-bottom: 0px; margin-bottom: 0px;
} }
.ship-user-name { .shipping-address-name {
padding: 0px; padding: 0px;
font-style: normal;
font-weight: normal;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
margin: 0px; margin: 0px;
} }
.ship-user-address { .shipping-address {
font-style: normal;
font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -151,38 +147,29 @@
width: 160px; width: 160px;
} }
.ship-user-phone { /* -- Billing -- */
font-style: normal;
font-weight: normal; .billing-address-container {
font-size: 10px; float: left;
line-height: 15px;
color: #595959;
margin: 0px;
} }
/* -------------------------- */ .billing-address-label {
/* billing style */
.bill-to {
padding-top: 5px; padding-top: 5px;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
margin-bottom: 0px; margin-bottom: 0px;
} }
.bill-user-name { .billing-address-name {
padding: 0px; padding: 0px;
font-style: normal;
font-weight: normal;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
margin: 0px; margin: 0px;
} }
.bill-user-address { .billing-address {
font-style: normal;
font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 15px; line-height: 15px;
color: #595959; color: #595959;
@ -190,41 +177,40 @@
width: 160px; width: 160px;
} }
.bill-user-phone { /* -- Estimate Details -- */
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 15px;
color: #595959;
margin: 0px;
}
.invoice-details-container {
.invoice-attributes {
display: block; display: block;
float: right; float: right;
padding: 20px 30px 0 0; padding: 20px 30px 0 0;
} }
.amount-due {
background-color: #f2f2f2;
}
.attribute-label { .attribute-label {
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
text-align: left;
color: #55547A
} }
.attribute-value { .attribute-value {
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
text-align: right; text-align: right;
} }
/* -- Items Table -- */
.items-table {
padding: 0px 30px 10px 30px;
page-break-before: avoid;
page-break-after: auto;
}
.items-table hr {
height: 0.1px;
margin: 0 30px 0 30px;
}
.item-table-heading-row td { .item-table-heading-row td {
padding: 10px; padding: 10px;
} }
@ -234,29 +220,16 @@
} }
tr.item-table-heading-row th { tr.item-table-heading-row th {
font-style: normal;
font-weight: 600; font-weight: 600;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
} }
tr.item-row td { tr.item-row td {
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
} }
.table2 {
padding: 0px 30px 10px 30px;
page-break-before: avoid;
page-break-after: auto;
}
.table2 hr {
height: 0.1px;
}
.item-table-heading { .item-table-heading {
font-size: 13.5; font-size: 13.5;
text-align: center; text-align: center;
@ -266,32 +239,14 @@
.item-cell { .item-cell {
font-size: 13; font-size: 13;
color: rgba(0, 0, 0, 0.6); color: #040405;
text-align: center; text-align: center;
padding: 5px; padding: 5px;
} }
.note-header { /* -- Total Display Table -- */
font-size: 13;
color: rgba(0, 0, 0, 0.6);
}
.note-text { .total-display-table {
font-size: 10;
color: rgba(0, 0, 0, 0.6);
}
.padd8 {
padding-top: 8px;
padding-bottom: 8px;
}
.padd2 {
padding-top: 2px;
padding-bottom: 2px;
}
.table3 {
border: 1px solid #EAF1FB; border: 1px solid #EAF1FB;
border-top: none; border-top: none;
box-sizing: border-box; box-sizing: border-box;
@ -299,83 +254,29 @@
page-break-inside: avoid; page-break-inside: avoid;
page-break-before: auto; page-break-before: auto;
page-break-after: auto; page-break-after: auto;
margin-left:420px;
margin-top: 10px
} }
.text-per-item-table3 { .total-table-attribute-label {
border: 1px solid #EAF1FB;
border-top: none;
padding-right: 30px;
box-sizing: border-box;
width: 260px;
/* height: 100px; */
position: absolute;
right: -25;
}
td.invoice-total1 {
text-align: left;
padding: 15px 0 15px 10px;
font-size: 12px; font-size: 12px;
line-height: 18px;
color: #55547A; color: #55547A;
border-bottom: 1px solid #E8E8E8; text-align: left;
border-top: 1px solid #E8E8E8; padding-left: 10px;
border-left: 1px solid #E8E8E8;
} }
td.invoice-total2 { .total-table-attribute-value {
font-weight: 500; font-weight: 500;
text-align: right; text-align: right;
font-size: 12px; font-size: 12px;
line-height: 18px; color: #040405;
padding: 15px 10px 15px 0; padding-right: 10px;
color: #5851DB; padding-top: 2px;
border-bottom: 1px solid #E8E8E8; padding-bottom: 2px;
border-top: 1px solid #E8E8E8;
border-right: 1px solid #E8E8E8;
}
.inv-item {
border-color: #d9d9d9;
}
.no-border {
border: none;
}
.company-details h1 {
margin: 0;
font-style: normal;
font-weight: bold;
font-size: 15px;
line-height: 22px;
letter-spacing: 0.05em;
text-align: left;
max-width: 220px;
}
.company-details h4 {
margin: 0;
font-style: normal;
font-weight: 100;
font-size: 18px;
line-height: 25px;
text-align: right;
}
.company-details h3 {
margin-bottom: 1px;
margin-top: 0;
}
tr.total td {
border-bottom: 1px solid #E8E8E8;
border-top: 1px solid #E8E8E8;
} }
/* -- Notes -- */
.notes { .notes {
font-style: normal;
font-weight: 300;
font-size: 12px; font-size: 12px;
color: #595959; color: #595959;
margin-top: 15px; margin-top: 15px;
@ -386,8 +287,6 @@
} }
.notes-label { .notes-label {
font-style: normal;
font-weight: normal;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
@ -396,57 +295,113 @@
height: 19.87px; height: 19.87px;
padding-bottom: 10px; padding-bottom: 10px;
} }
/* -- Helpers -- */
.text-primary {
color: #5851DB;
}
.text-center {
text-align: center
}
table .text-left {
text-align: left;
}
table .text-right {
text-align: right;
}
.border-0 {
border: none;
}
.py-2 {
padding-top: 2px;
padding-bottom: 2px;
}
.py-8 {
padding-top: 8px;
padding-bottom: 8px;
}
.py-3 {
padding: 3px 0;
}
.pr-20 {
padding-right: 20px;
}
.pr-10 {
padding-right: 10px;
}
.pl-20 {
padding-left: 20px;
}
.pl-10 {
padding-left: 10px;
}
.pl-0 {
padding-left: 0;
}
</style> </style>
</head> </head>
<body> <body>
<div class="header-table"> <div class="header-container">
<table width="100%"> <table width="100%">
<tr> <tr>
<td class="header-left"> <td class="header-section-left">
@if($logo) @if($logo)
<img class="header-logo" src="{{ $logo }}" alt="Company Logo"> <img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else @else
<h1 class="header-logo"> {{$invoice->user->company->name}} </h1> <h1 class="header-logo"> {{$invoice->user->company->name}} </h1>
@endif @endif
</td> </td>
<td class="header-right company-details"> <td class="header-section-right company-address-container">
@include('app.pdf.invoice.partials.company-address') @include('app.pdf.invoice.partials.company-address')
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<hr class="header-line"> <hr class="header-bottom-divider">
<div class="wrapper"> <div class="content-wrapper">
<div class="address"> <div class="main-content">
<div class="bill-add"> <div class="customer-address-container">
<div style="float:left;"> <div class="billing-address-container">
@include('app.pdf.invoice.partials.billing-address') @include('app.pdf.invoice.partials.billing-address')
</div> </div>
@if($invoice->user->billingaddress) @if($invoice->user->billingaddress)
<div style="float:right;"> <div class="shipping-address-container">
@else @else
<div style="float:left;"> <div class="shipping-address-container--left">
@endif @endif
@include('app.pdf.invoice.partials.shipping-address') @include('app.pdf.invoice.partials.shipping-address')
</div> </div>
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>
<div style="display: block;float: right;padding: 20px 30px 0 0;"> <div class="invoice-details-container">
<table> <table>
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Invoice Number</td> <td class="attribute-label">Invoice Number</td>
<td class="attribute-value"> &nbsp;{{$invoice->invoice_number}}</td> <td class="attribute-value"> &nbsp;{{$invoice->invoice_number}}</td>
</tr> </tr>
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Invoice Date </td> <td class="attribute-label">Invoice Date </td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedInvoiceDate}}</td> <td class="attribute-value"> &nbsp;{{$invoice->formattedInvoiceDate}}</td>
</tr> </tr>
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Due date</td> <td class="attribute-label">Due date</td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedDueDate}}</td> <td class="attribute-value"> &nbsp;{{$invoice->formattedDueDate}}</td>
</tr> </tr>
</table> </table>

View File

@ -1,11 +1,11 @@
@if($invoice->user->billingaddress) @if($invoice->user->billingaddress)
<p class="bill-to">Bill To,</p> <p class="billing-address-label">Bill To,</p>
@if($invoice->user->billingaddress->name) @if($invoice->user->billingaddress->name)
<p class="bill-user-name"> <p class="billing-address-name">
{{$invoice->user->billingaddress->name}} {{$invoice->user->billingaddress->name}}
</p> </p>
@endif @endif
<p class="bill-user-address"> <p class="billing-address">
@if($invoice->user->billingaddress->address_street_1) @if($invoice->user->billingaddress->address_street_1)
{!! nl2br(htmlspecialchars($invoice->user->billingaddress->address_street_1)) !!}<br> {!! nl2br(htmlspecialchars($invoice->user->billingaddress->address_street_1)) !!}<br>
@endif @endif
@ -25,7 +25,7 @@
{{$invoice->user->billingaddress->country->name}}<br> {{$invoice->user->billingaddress->country->name}}<br>
@endif @endif
@if($invoice->user->billingaddress->phone) @if($invoice->user->billingaddress->phone)
<p class="bill-user-phone"> <p class="billing-address">
Phone :{{$invoice->user->billingaddress->phone}} Phone :{{$invoice->user->billingaddress->phone}}
</p> </p>
@endif @endif

View File

@ -1,11 +1,11 @@
@if($invoice->user->shippingaddress) @if($invoice->user->shippingaddress)
<p class="ship-to">Ship To,</p> <p class="shipping-address-label">Ship To,</p>
@if($invoice->user->shippingaddress->name) @if($invoice->user->shippingaddress->name)
<p class="ship-user-name"> <p class="shipping-address-name">
{{$invoice->user->shippingaddress->name}} {{$invoice->user->shippingaddress->name}}
</p> </p>
@endif @endif
<p class="ship-user-address"> <p class="shipping-address">
@if($invoice->user->shippingaddress->address_street_1) @if($invoice->user->shippingaddress->address_street_1)
{!! nl2br(htmlspecialchars($invoice->user->shippingaddress->address_street_1)) !!}<br> {!! nl2br(htmlspecialchars($invoice->user->shippingaddress->address_street_1)) !!}<br>
@endif @endif
@ -31,7 +31,7 @@
@endif @endif
@if($invoice->user->shippingaddress->phone) @if($invoice->user->shippingaddress->phone)
<p class="ship-user-phone"> <p class="shipping-address">
Phone :{{$invoice->user->shippingaddress->phone}} Phone :{{$invoice->user->shippingaddress->phone}}
</p> </p>
@endif @endif

View File

@ -1,13 +1,13 @@
<table width="100%" class="table2" cellspacing="0" border="0"> <table width="100%" class="items-table" cellspacing="0" border="0">
<tr class="item-table-heading-row"> <tr class="item-table-heading-row">
<th width="2%" class="item-table-heading" style="text-align: right; color: #55547A; padding-right: 20px">#</th> <th width="2%" class="item-table-heading text-right pr-20">#</th>
<th width="40%" class="item-table-heading" style="text-align: left; color: #55547A; padding-left: 0px">Items</th> <th width="40%" class="item-table-heading text-left pl-0">Items</th>
<th class="item-table-heading" style="text-align: right; color: #55547A; padding-right: 20px">Quantity</th> <th class="item-table-heading text-right pr-20">Quantity</th>
<th class="item-table-heading" style="text-align: right; color: #55547A; padding-right: 20px">Price</th> <th class="item-table-heading pr-20 text-right">Price</th>
@if($invoice->discount_per_item === 'YES') @if($invoice->discount_per_item === 'YES')
<th class="item-table-heading" style="text-align: right; color: #55547A; padding-left: 10px">Discount</th> <th class="item-table-heading pl-10">Discount</th>
@endif @endif
<th class="item-table-heading" style="text-align: right; color: #55547A;">Amount</th> <th class="item-table-heading text-right">Amount</th>
</tr> </tr>
@php @php
$index = 1 $index = 1
@ -15,32 +15,29 @@
@foreach ($invoice->items as $item) @foreach ($invoice->items as $item)
<tr class="item-row"> <tr class="item-row">
<td <td
class="inv-item item-cell" class="item-cell text-right pr-20"
style="text-align: right; color: #040405; padding-right: 20px; vertical-align: top;" style="vertical-align: top;"
> >
{{$index}} {{$index}}
</td> </td>
<td <td
class="inv-item item-cell" class="item-cell text-left pl-0"
style="text-align: left; color: #040405;padding-left: 0px"
> >
<span>{{ $item->name }}</span><br> <span>{{ $item->name }}</span><br>
<span style="text-align: left; color: #595959; font-size: 9px; font-weight:300; line-height: 12px;">{!! nl2br(htmlspecialchars($item->description)) !!}</span> <span class="item-description">{!! nl2br(htmlspecialchars($item->description)) !!}</span>
</td> </td>
<td <td
class="inv-item item-cell" class="item-cell pr-20 text-right"
style="text-align: right; color: #040405; padding-right: 20px"
> >
{{$item->quantity}} {{$item->quantity}}
</td> </td>
<td <td
class="inv-item item-cell" class="item-cell text-right pr-20"
style="text-align: right; color: #040405; padding-right: 20px"
> >
{!! format_money_pdf($item->price, $invoice->user->currency) !!} {!! format_money_pdf($item->price, $invoice->user->currency) !!}
</td> </td>
@if($invoice->discount_per_item === 'YES') @if($invoice->discount_per_item === 'YES')
<td class="inv-item item-cell" style="text-align: right; color: #040405; padding-left: 10px"> <td class="item-cell text-right pl-10">
@if($item->discount_type === 'fixed') @if($item->discount_type === 'fixed')
{!! format_money_pdf($item->discount_val, $invoice->user->currency) !!} {!! format_money_pdf($item->discount_val, $invoice->user->currency) !!}
@endif @endif
@ -50,8 +47,7 @@
</td> </td>
@endif @endif
<td <td
class="inv-item item-cell" class="item-cell text-right"
style="text-align: right; color: #040405;"
> >
{!! format_money_pdf($item->total, $invoice->user->currency) !!} {!! format_money_pdf($item->total, $invoice->user->currency) !!}
</td> </td>
@ -64,20 +60,21 @@
<hr class="item-cell-table-hr"> <hr class="item-cell-table-hr">
<table width="100%" cellspacing="0px" style="margin-left:420px; margin-top: 10px" border="0" class="table3 @if(count($invoice->items) > 12) page-break @endif"> <table width="100%" cellspacing="0px" border="0" class="total-display-table @if(count($invoice->items) > 12) page-break @endif">
<tr> <tr>
<td class="no-border" style="color: #55547A; padding-left:10px; font-size:12px;">Subtotal</td> <td class="border-0 total-table-attribute-label">Subtotal</td>
<td class="no-border item-cell padd2" <td class="border-0 item-cell py-2 total-table-attribute-value">
style="padding-right:10px; text-align: right; font-size:12px; color: #040405; font-weight: 500;">{!! format_money_pdf($invoice->sub_total, $invoice->user->currency) !!}</td> {!! format_money_pdf($invoice->sub_total, $invoice->user->currency) !!}
</td>
</tr> </tr>
@if ($invoice->tax_per_item === 'YES') @if ($invoice->tax_per_item === 'YES')
@for ($i = 0; $i < count($labels); $i++) @for ($i = 0; $i < count($labels); $i++)
<tr> <tr>
<td class="no-border" style="padding-left:10px; text-align:left; font-size:12px; color: #55547A;"> <td class="border-0 total-table-attribute-label">
{{$labels[$i]}} {{$labels[$i]}}
</td> </td>
<td class="no-border item-cell padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; color: #040405"> <td class="border-0 item-cell py-2 total-table-attribute-value">
{!! format_money_pdf($taxes[$i], $invoice->user->currency) !!} {!! format_money_pdf($taxes[$i], $invoice->user->currency) !!}
</td> </td>
</tr> </tr>
@ -85,10 +82,10 @@
@else @else
@foreach ($invoice->taxes as $tax) @foreach ($invoice->taxes as $tax)
<tr> <tr>
<td class="no-border" style="padding-left:10px; text-align:left; font-size:12px; color: #55547A;"> <td class="border-0 total-table-attribute-label">
{{$tax->name.' ('.$tax->percent.'%)'}} {{$tax->name.' ('.$tax->percent.'%)'}}
</td> </td>
<td class="no-border item-cell padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; color: #040405"> <td class="border-0 item-cell py-2 total-table-attribute-value">
{!! format_money_pdf($tax->amount, $invoice->user->currency) !!} {!! format_money_pdf($tax->amount, $invoice->user->currency) !!}
</td> </td>
</tr> </tr>
@ -97,7 +94,7 @@
@if ($invoice->discount_per_item === 'NO') @if ($invoice->discount_per_item === 'NO')
<tr> <tr>
<td class="no-border" style="padding-left:10px; text-align:left; font-size:12px; color: #55547A;"> <td class="border-0 total-table-attribute-label">
@if($invoice->discount_type === 'fixed') @if($invoice->discount_type === 'fixed')
Discount Discount
@endif @endif
@ -105,7 +102,7 @@
Discount ({{$invoice->discount}}%) Discount ({{$invoice->discount}}%)
@endif @endif
</td> </td>
<td class="no-border item-cell padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; color: #040405"> <td class="border-0 item-cell py-2 total-table-attribute-value" >
@if($invoice->discount_type === 'fixed') @if($invoice->discount_type === 'fixed')
{!! format_money_pdf($invoice->discount_val, $invoice->user->currency) !!} {!! format_money_pdf($invoice->discount_val, $invoice->user->currency) !!}
@endif @endif
@ -116,18 +113,15 @@
</tr> </tr>
@endif @endif
<tr> <tr>
<td style="padding:3px 0px"></td> <td class="py-3"></td>
<td style="padding:3px 0px"></td> <td class="py-3"></td>
</tr> </tr>
<tr> <tr>
<td class="no-border total-border-left" <td class="border-0 total-border-left total-table-attribute-label">
style="padding-left:10px; padding-bottom:10px; text-align:left; padding-top:20px; font-size:12px; color: #55547A;" Total
>
<label class="total-bottom"> Total </label>
</td> </td>
<td <td
class="no-border total-border-right item-cell padd8" class="border-0 total-border-right item-cell py-8 total-table-attribute-value text-primary"
style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; padding-top:20px; color: #5851DB"
> >
{!! format_money_pdf($invoice->total, $invoice->user->currency)!!} {!! format_money_pdf($invoice->total, $invoice->user->currency)!!}
</td> </td>

View File

@ -1,11 +1,11 @@
@if($payment->user->billingaddress) @if($payment->user->billingaddress)
<p class="bill-to">Received From:</p> <p class="billing-address-label">Received From:</p>
@if($payment->user->billingaddress->name) @if($payment->user->billingaddress->name)
<p class="bill-user-name"> <p class="billing-address-name">
{{$payment->user->billingaddress->name}} {{$payment->user->billingaddress->name}}
</p> </p>
@endif @endif
<p class="bill-user-address"> <p class="billing-address">
@if($payment->user->billingaddress->address_street_1) @if($payment->user->billingaddress->address_street_1)
{!! nl2br(htmlspecialchars($payment->user->billingaddress->address_street_1)) !!}<br> {!! nl2br(htmlspecialchars($payment->user->billingaddress->address_street_1)) !!}<br>
@endif @endif
@ -25,7 +25,7 @@
{{$payment->user->billingaddress->country->name}}<br> {{$payment->user->billingaddress->country->name}}<br>
@endif @endif
@if($payment->user->billingaddress->phone) @if($payment->user->billingaddress->phone)
<p class="bill-user-phone"> <p class="billing-address">
Phone :{{$payment->user->billingaddress->phone}} Phone :{{$payment->user->billingaddress->phone}}
</p> </p>
@endif @endif

View File

@ -3,7 +3,7 @@
@endif @endif
@if($company_address) @if($company_address)
<p class="company-add"> <p class="company-address">
@if($company_address->addresses[0]['address_street_1']) @if($company_address->addresses[0]['address_street_1'])
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br> {!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br>
@endif @endif

View File

@ -1,11 +1,11 @@
@if($payment->user->shippingaddress) @if($payment->user->shippingaddress)
<p class="ship-to">Ship To,</p> <p class="shipping-address-label">Ship To,</p>
@if($payment->user->shippingaddress->name) @if($payment->user->shippingaddress->name)
<p class="ship-user-name"> <p class="shipping-address-name">
{{$payment->user->shippingaddress->name}} {{$payment->user->shippingaddress->name}}
</p> </p>
@endif @endif
<p class="ship-user-address"> <p class="shipping-address">
@if($payment->user->shippingaddress->address_street_1) @if($payment->user->shippingaddress->address_street_1)
{!! nl2br(htmlspecialchars($payment->user->shippingaddress->address_street_1)) !!}<br> {!! nl2br(htmlspecialchars($payment->user->shippingaddress->address_street_1)) !!}<br>
@endif @endif
@ -31,7 +31,7 @@
@endif @endif
@if($payment->user->phone) @if($payment->user->phone)
<p class="ship-user-phone"> <p class="shipping-address">
Phone :{{$payment->user->shippingaddress->phone}} Phone :{{$payment->user->shippingaddress->phone}}
</p> </p>
@endif @endif

View File

@ -5,6 +5,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css"> <style type="text/css">
/* -- Base -- */
body { body {
font-family: "DejaVu Sans"; font-family: "DejaVu Sans";
} }
@ -12,6 +13,7 @@
html { html {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
margin-top: 50px;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
@ -26,319 +28,48 @@
width: 100%; width: 100%;
} }
.header-left { /* -- Heeader -- */
padding-top: 45px;
padding-bottom: 45px; .header-container {
padding-left: 30px;
display:inline-block;
width:30%;
}
.header-table {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 150px; height: 150px;
left: 0px; left: 0px;
top: -60px; top: -60px;
} }
.header-section-left {
padding-top: 45px;
padding-bottom: 45px;
padding-left: 30px;
display:inline-block;
width:30%;
}
.header-logo { .header-logo {
position: absolute; position: absolute;
height: 50px; height: 50px;
text-transform: capitalize; text-transform: capitalize;
color: #817AE3; color: #817AE3;
} }
.header-right { .header-section-right {
display:inline-block; display:inline-block;
position: absolute; position: absolute;
right:0; right:0;
padding: 15px 30px 15px 0px; padding: 15px 30px 15px 0px;
float: right; float: right;
} }
.inv-flex{
display:flex;
}
.inv-data{
text-align:right;
margin-right:120px;
}
.inv-value{
text-align:left;
margin-left:160px;
}
.header { .header {
font-size: 20px; font-size: 20px;
color: rgba(0, 0, 0, 0.7); color: rgba(0, 0, 0, 0.7);
} }
@page { /* -- Company Address -- */
margin-top: 60px !important;
}
.wrapper {
display: block;
height: 200px;
}
.address {
display: inline-block;
padding-top: 20px
}
.bill-add {
display: block;
float:left;
width:40%;
padding: 0 0 0 30px;
}
.company {
padding-left: 30px;
display: inline;
float:left;
width:30%;
}
.company h1 {
font-style: normal;
font-weight: bold;
font-size: 18px;
line-height: 22px;
letter-spacing: 0.05em;
}
.company-address{
text-align: left;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 15px;
color: #595959;
margin: 0px;
}
/* -------------------------- */
/* shipping style */
.ship-to {
padding-top: 5px;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
margin-bottom: 0px;
}
.ship-user-name {
padding: 0px;
font-style: normal;
font-weight: normal;
font-size: 15px;
line-height: 22px;
margin: 0px;
}
.ship-user-address {
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 15px;
color: #595959;
margin: 0px;
width: 160px;
}
.ship-user-phone {
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 15px;
color: #595959;
margin: 0px;
}
/* -------------------------- */
/* billing style */
.bill-to {
padding-top: 5px;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
margin-bottom: 0px;
color: #55547A;
}
.bill-user-name {
padding: 0px;
font-style: normal;
font-weight: normal;
font-size: 15px;
line-height: 22px;
margin: 0px;
}
.bill-user-address {
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 15px;
color: #595959;
margin:0px;
width: 160px;
}
.bill-user-phone {
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 15px;
color: #595959;
margin: 0px;
}
.job-add {
display: inline;
position: absolute;
float: right;
width: 40%;
height: 120px;
padding: 20px 30px 0 0;
}
.amount-due {
background-color: #f2f2f2;
}
.attribute-label {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
}
.attribute-value {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
text-align: right;
}
.item-table-heading-row td {
padding: 10px;
}
.item-table-heading-row {
border-bottom: 1px solid red;
}
tr.item-table-heading-row th {
font-style: normal;
font-weight: 600;
font-size: 12px;
line-height: 18px;
}
tr.item-row td {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
}
.table2 {
margin-top: 188px;
border-bottom: 1px solid #EAF1FB;
padding: 0px 30px 0 30px;
page-break-before: avoid;
page-break-after: auto;
}
.table2 hr {
height:0.1px;
}
.item-table-heading {
font-size: 13.5;
text-align: center;
color: rgba(0, 0, 0, 0.85);
padding: 5px;
}
.item-cell {
font-size: 13;
color: rgba(0, 0, 0, 0.6);
text-align: center;
padding: 5px;
}
.note-header {
font-size: 13;
color: rgba(0, 0, 0, 0.6);
}
.note-text {
font-size: 10;
color: rgba(0, 0, 0, 0.6);
}
.padd8 {
padding-top: 8px;
padding-bottom: 8px;
}
.padd2 {
padding-top: 2px;
padding-bottom: 2px;
}
.table3 {
border: 1px solid #EAF1FB;
border-top: none;
box-sizing: border-box;
width: 630px;
page-break-inside: avoid;
page-break-before: auto;
page-break-after: auto;
}
.text-per-item-table3 {
border: 1px solid #EAF1FB;
border-top: none;
padding-right: 30px;
box-sizing: border-box;
width: 260px;
/* height: 100px; */
position: absolute;
right: -25;
}
td.invoice-total1 {
text-align:left;
padding: 15px 0 15px 10px;
font-size:12px;
line-height: 18px;
color: #55547A;
border-bottom:1px solid #E8E8E8;
border-top:1px solid #E8E8E8;
border-left:1px solid #E8E8E8;
}
td.invoice-total2 {
font-weight: 500;
text-align: right;
font-size:12px;
line-height: 18px;
padding: 15px 10px 15px 0;
color: #5851DB;
border-bottom:1px solid #E8E8E8;
border-top:1px solid #E8E8E8;
border-right:1px solid #E8E8E8;
}
.inv-item {
border-color: #d9d9d9;
}
.no-border {
border: none;
}
.company-details h1 { .company-details h1 {
margin:0; margin:0;
font-style: normal;
font-weight: bold; font-weight: bold;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
@ -346,26 +77,117 @@
text-align: left; text-align: left;
max-width: 220px; max-width: 220px;
} }
.company-details h4 {
margin:0; .company-address{
font-style: normal; text-align: left;
font-weight: 100; font-size: 10px;
font-size: 18px; line-height: 15px;
line-height: 25px; color: #595959;
text-align: right; margin: 0px;
}
.company-details h3 {
margin-bottom:1px;
margin-top:0;
}
tr.total td {
border-bottom:1px solid #E8E8E8;
border-top:1px solid #E8E8E8;
} }
.content-wrapper {
display: block;
height: 200px;
}
.main-content {
display: inline-block;
padding-top: 20px
}
/* -- Customer Address -- */
.customer-address-container {
display: block;
float:left;
width:40%;
padding: 0 0 0 30px;
}
/* -- Shipping -- */
.shipping-address-label {
padding-top: 5px;
font-size: 12px;
line-height: 18px;
margin-bottom: 0px;
}
.shipping-address-name {
padding: 0px;
font-size: 15px;
line-height: 22px;
margin: 0px;
}
.shipping-address {
font-size: 10px;
line-height: 15px;
color: #595959;
margin: 0px;
width: 160px;
}
/* -- Billing -- */
.billing-address-container {
float: left;
}
.billing-address-container--right {
float: right;
}
.billing-address-label {
padding-top: 5px;
font-size: 12px;
line-height: 18px;
margin-bottom: 0px;
color: #55547A;
}
.billing-address-name {
padding: 0px;
font-size: 15px;
line-height: 22px;
margin: 0px;
}
.billing-address {
font-size: 10px;
line-height: 15px;
color: #595959;
margin:0px;
width: 160px;
}
/* -- Payment Details -- */
.payment-details-container {
display: inline;
position: absolute;
float: right;
width: 40%;
height: 120px;
padding: 20px 30px 0 0;
}
.attribute-label {
font-size: 12px;
line-height: 18px;
text-align: left;
color: #55547A
}
.attribute-value {
font-size: 12px;
line-height: 18px;
text-align: right;
}
/* -- Notes -- */
.notes { .notes {
font-style: normal;
font-weight: 300;
font-size: 12px; font-size: 12px;
color: #595959; color: #595959;
margin-top: 15px; margin-top: 15px;
@ -376,8 +198,6 @@
} }
.notes-label { .notes-label {
font-style: normal;
font-weight: normal;
font-size: 15px; font-size: 15px;
line-height: 22px; line-height: 22px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
@ -387,7 +207,7 @@
padding-bottom: 10px; padding-bottom: 10px;
} }
.content-header { .content-heading {
margin-top: 120px; margin-top: 120px;
width: 100%; width: 100%;
text-align: center; text-align: center;
@ -398,14 +218,16 @@
margin: 0 0 0 0; margin: 0 0 0 0;
} }
.content-header span { .content-heading span {
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
line-height: 25px; line-height: 25px;
border-bottom: 1px solid #B9C1D1; border-bottom: 1px solid #B9C1D1;
} }
.total-amount { /* -- Total Display Box -- */
.total-display-box {
width: 315px; width: 315px;
display: block; display: block;
margin-right: 30px; margin-right: 30px;
@ -416,7 +238,7 @@
padding: 12px 15px 15px 15px; padding: 12px 15px 15px 15px;
} }
.total-amount-label { .total-display-label {
display: inline; display: inline;
font-weight: 600; font-weight: 600;
font-size: 14px; font-size: 14px;
@ -424,7 +246,7 @@
color: #595959; color: #595959;
} }
.total-amount span { .total-display-box span {
float: right; float: right;
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
@ -432,61 +254,63 @@
text-align: right; text-align: right;
color: #5851D8; color: #5851D8;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="header-table"> <div class="header-container">
<table width="100%"> <table width="100%">
<tr> <tr>
@if($logo) @if($logo)
<td class="header-left"> <td class="header-section-left">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo"> <img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else @else
@if($payment->user->company) @if($payment->user->company)
<td class="header-left" style="padding-top:0px;"> <td class="header-section-left" style="padding-top:0px;">
<h1 class="header-logo"> {{$payment->user->company->name}} </h1> <h1 class="header-logo"> {{$payment->user->company->name}} </h1>
@endif @endif
@endif @endif
</td> </td>
<td class="header-right company-details"> <td class="header-section-right company-details">
@include('app.pdf.payment.partials.company-address') @include('app.pdf.payment.partials.company-address')
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<hr style="border: 0.620315px solid #E8E8E8;"> <hr style="border: 0.620315px solid #E8E8E8;">
<p class="content-header">
<p class="content-heading">
<span>PAYMENT RECEIPT</span> <span>PAYMENT RECEIPT</span>
</p> </p>
<div class="wrapper">
<div class="address"> <div class="content-wrapper">
<div class="bill-add"> <div class="main-content">
<div style="float:left;"> <div class="customer-address-container">
<div class="billing-address-container">
@include('app.pdf.payment.partials.billing-address') @include('app.pdf.payment.partials.billing-address')
</div> </div>
<div style="float:right;"> <div class="billing-address-container--right">
</div> </div>
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>
<div class="job-add"> <div class="payment-details-container">
<table width="100%"> <table width="100%">
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Payment Date</td> <td class="attribute-label">Payment Date</td>
<td class="attribute-value"> &nbsp;{{$payment->formattedPaymentDate}}</td> <td class="attribute-value"> &nbsp;{{$payment->formattedPaymentDate}}</td>
</tr> </tr>
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Payment Number</td> <td class="attribute-label">Payment Number</td>
<td class="attribute-value"> &nbsp;{{$payment->payment_number}}</td> <td class="attribute-value"> &nbsp;{{$payment->payment_number}}</td>
</tr> </tr>
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Payment Mode</td> <td class="attribute-label">Payment Mode</td>
<td class="attribute-value"> &nbsp;{{$payment->paymentMethod ? $payment->paymentMethod->name : '-'}}</td> <td class="attribute-value"> &nbsp;{{$payment->paymentMethod ? $payment->paymentMethod->name : '-'}}</td>
</tr> </tr>
@if ($payment->invoice && $payment->invoice->invoice_number) @if ($payment->invoice && $payment->invoice->invoice_number)
<tr> <tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Invoice</td> <td class="attribute-label">Invoice</td>
<td class="attribute-value"> &nbsp;{{$payment->invoice->invoice_number}}</td> <td class="attribute-value"> &nbsp;{{$payment->invoice->invoice_number}}</td>
</tr> </tr>
@endif @endif
@ -495,8 +319,8 @@
</div> </div>
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>
<div class="total-amount"> <div class="total-display-box">
<p class="total-amount-label">Amount Received</p> <p class="total-display-label">Amount Received</p>
<span>{!! format_money_pdf($payment->amount, $payment->user->currency) !!}</span> <span>{!! format_money_pdf($payment->amount, $payment->user->currency) !!}</span>
</div> </div>
</body> </body>