update templates

This commit is contained in:
Mohit Panjwani
2020-05-05 13:12:26 +05:30
parent 9a7c926d53
commit f8ccfece09
11 changed files with 483 additions and 701 deletions

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Invoice</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<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">
body {
@ -14,12 +14,13 @@
margin: 0px;
padding: 0px;
}
table {
border-collapse: collapse;
}
.header-line {
color:rgba(0, 0, 0, 0.2);
color: rgba(0, 0, 0, 0.2);
position: absolute;
top: 80px;
left: 0px;
@ -28,11 +29,11 @@
}
hr {
color:rgba(0, 0, 0, 0.2);
color: rgba(0, 0, 0, 0.2);
border: 0.5px solid #EAF1FB;
}
.items-table-hr{
.items-table-hr {
margin: 0 30px 0 30px;
}
@ -41,9 +42,10 @@
padding-top: 45px;
padding-bottom: 45px;
padding-left: 30px;
display:inline-block;
width:30%;
display: inline-block;
width: 30%;
}
.header-table {
position: absolute;
width: 100%;
@ -51,47 +53,35 @@
left: 0px;
top: -60px;
}
.header-logo {
position: absolute;
height: 50px;
text-transform: capitalize;
color: #817AE3;
}
.header-right {
display:inline-block;
display: inline-block;
position: absolute;
right:0;
right: 0;
padding: 15px 30px 15px 0px;
float: right;
}
.inv-flex{
display:flex;
}
.inv-data{
text-align:right;
margin-right:120px;
}
.inv-value{
text-align:left;
margin-left:160px;
}
.header {
font-size: 20px;
color: rgba(0, 0, 0, 0.7);
}
.TextColor1 {
font-size: 16px;
color: rgba(0, 0, 0, 0.5);
}
@page {
margin-top: 60px !important;
}
.wrapper {
display: block;
padding-top: 50px;
padding-bottom: 20px;
display: block;
padding-top: 50px;
padding-bottom: 20px;
}
.address {
@ -101,15 +91,16 @@
.bill-add {
display: block;
float:left;
width:40%;
float: left;
width: 40%;
padding: 0 0 0 30px;
}
.company {
padding-left: 30px;
display: inline;
float:left;
width:30%;
float: left;
width: 30%;
}
.company h1 {
@ -120,7 +111,7 @@
letter-spacing: 0.05em;
}
.company-add {
.company-address{
text-align: left;
font-style: normal;
font-weight: normal;
@ -130,7 +121,7 @@
margin: 0px;
}
/* -------------------------- */
/* -------------------------- */
/* shipping style */
.ship-to {
padding-top: 5px;
@ -169,7 +160,7 @@
margin: 0px;
}
/* -------------------------- */
/* -------------------------- */
/* billing style */
.bill-to {
padding-top: 5px;
@ -195,7 +186,7 @@
font-size: 10px;
line-height: 15px;
color: #595959;
margin:0px;
margin: 0px;
width: 160px;
}
@ -209,55 +200,53 @@
}
.job-add {
.invoice-attributes {
display: block;
float: right;
padding: 20px 30px 0 0;
}
.amount-due {
background-color: #f2f2f2;
}
.textRight {
text-align: right;
}
.textLeft {
text-align: left;
}
.textStyle1 {
.attribute-label {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
}
.textStyle2 {
.attribute-value {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
text-align: right;
}
.main-table-header td {
.item-table-heading-row td {
padding: 10px;
}
.main-table-header {
.item-table-heading-row {
border-bottom: 1px solid red;
}
tr.main-table-header th {
tr.item-table-heading-row th {
font-style: normal;
font-weight: 600;
font-size: 12px;
line-height: 18px;
}
tr.item-details td {
tr.item-row td {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
}
.table2 {
padding: 0px 30px 10px 30px;
page-break-before: avoid;
@ -265,17 +254,17 @@
}
.table2 hr {
height:0.1px;
height: 0.1px;
}
.ItemTableHeader {
.item-table-heading {
font-size: 13.5;
text-align: center;
color: rgba(0, 0, 0, 0.85);
padding: 5px;
}
.items {
.item-cell {
font-size: 13;
color: rgba(0, 0, 0, 0.6);
text-align: center;
@ -324,26 +313,26 @@
}
td.invoice-total1 {
text-align:left;
text-align: left;
padding: 15px 0 15px 10px;
font-size:12px;
font-size: 12px;
line-height: 18px;
color: #55547A;
border-bottom:1px solid #E8E8E8;
border-top:1px solid #E8E8E8;
border-left:1px solid #E8E8E8;
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;
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;
border-bottom: 1px solid #E8E8E8;
border-top: 1px solid #E8E8E8;
border-right: 1px solid #E8E8E8;
}
.inv-item {
@ -353,16 +342,9 @@
.no-border {
border: none;
}
.desc {
font-weight: 100;
text-align: justify;
font-size: 10px;
margin-bottom: 15px;
margin-top:7px;
color:rgba(0, 0, 0, 0.85);
}
.company-details h1 {
margin:0;
margin: 0;
font-style: normal;
font-weight: bold;
font-size: 15px;
@ -371,21 +353,24 @@
text-align: left;
max-width: 220px;
}
.company-details h4 {
margin:0;
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;
margin-bottom: 1px;
margin-top: 0;
}
tr.total td {
border-bottom:1px solid #E8E8E8;
border-top:1px solid #E8E8E8;
border-bottom: 1px solid #E8E8E8;
border-top: 1px solid #E8E8E8;
}
.notes {
@ -411,21 +396,18 @@
height: 19.87px;
padding-bottom: 10px;
}
</style>
</head>
<body>
<div class="header-table">
<table width="100%">
<tr>
@if($logo)
<td class="header-left">
<td class="header-left">
@if($logo)
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else
@if($invoice->user->company)
<td class="header-left" style="padding-top:0px;">
<h1 class="header-logo"> {{$invoice->user->company->name}} </h1>
@endif
<h1 class="header-logo"> {{$invoice->user->company->name}} </h1>
@endif
</td>
<td class="header-right company-details">
@ -444,35 +426,36 @@
@include('app.pdf.invoice.partials.billing-address')
</div>
@if($invoice->user->billingaddress)
<div style="float:right;">
@else
<div style="float:right;">
@else
<div style="float:left;">
@endif
@include('app.pdf.invoice.partials.shipping-address')
@endif
@include('app.pdf.invoice.partials.shipping-address')
</div>
<div style="clear: both;"></div>
</div>
<div style="display: block;float: right;padding: 20px 30px 0 0;">
<table>
<tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Invoice Number</td>
<td class="attribute-value"> &nbsp;{{$invoice->invoice_number}}</td>
</tr>
<tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Invoice Date </td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedInvoiceDate}}</td>
</tr>
<tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Due date</td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedDueDate}}</td>
</tr>
</table>
</div>
<div style="clear: both;"></div>
</div>
<div class="job-add">
<table>
<tr>
<td class="textStyle1" style="text-align: left; color: #55547A">Invoice Number</td>
<td class="textStyle2"> &nbsp;{{$invoice->invoice_number}}</td>
</tr>
<tr>
<td class="textStyle1" style="text-align: left; color: #55547A">Invoice Date </td>
<td class="textStyle2"> &nbsp;{{$invoice->formattedInvoiceDate}}</td>
</tr>
<tr>
<td class="textStyle1" style="text-align: left; color: #55547A">Due date</td>
<td class="textStyle2"> &nbsp;{{$invoice->formattedDueDate}}</td>
</tr>
</table>
</div>
<div style="clear: both;"></div>
@include('app.pdf.invoice.partials.table')
@include('app.pdf.invoice.partials.notes')
</div>
@include('app.pdf.invoice.partials.table')
@include('app.pdf.invoice.partials.notes')
</div>
</body>
</html>
</html>