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

View File

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

View File

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

View File

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

View File

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

View File

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