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,8 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<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">
body {
@ -19,7 +20,7 @@
}
.header-line {
color:rgba(0, 0, 0, 0.2);
color: rgba(0, 0, 0, 0.2);
position: absolute;
top: 90px;
left: 0px;
@ -28,7 +29,7 @@
hr {
margin: 0 30px 0 30px;
color:rgba(0, 0, 0, 0.2);
color: rgba(0, 0, 0, 0.2);
border: 0.5px solid #EAF1FB;
}
@ -51,37 +52,16 @@
color: #817AE3;
}
.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;
margin-top: 0px;
padding-top: 16px;
padding-bottom: 20px;
display: block;
margin-top: 0px;
padding-top: 16px;
padding-bottom: 20px;
}
.address {
@ -93,9 +73,7 @@
float: left;
padding-left: 30px;
font-weight: normal;
display: inline;
float:left;
width:30%;
width: 30%;
text-transform: capitalize;
margin-bottom: 2px;
}
@ -109,7 +87,7 @@
margin-bottom: 0px;
}
.company-add {
.company-address {
margin-top: 2px;
text-align: left;
font-style: normal;
@ -124,19 +102,12 @@
float: right;
padding: 10px 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;
@ -144,15 +115,16 @@
padding-right: 40px;
}
.textStyle2 {
.attribute-value {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
text-align: right;
}
.bill-add {
width:45%;
width: 45%;
padding: 0px 0 0 0px;
}
@ -175,14 +147,14 @@
}
.ship-user-name {
max-width: 250px
font-style: normal;
max-width: 250px font-style: normal;
font-weight: normal;
font-size: 15px;
line-height: 22px;
padding: 0px;
margin: 0px;
}
.ship-user-address {
font-style: normal;
font-weight: normal;
@ -193,6 +165,7 @@
margin: 0px;
width: 160px;
}
.ship-user-phone {
font-style: normal;
font-weight: normal;
@ -222,8 +195,7 @@
}
.bill-user-name {
max-width: 250px
font-style: normal;
max-width: 250px font-style: normal;
font-weight: normal;
font-size: 15px;
line-height: 22px;
@ -260,10 +232,10 @@
}
.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);
@ -271,7 +243,7 @@
padding-bottom: 10px;
}
tr.main-table-header th {
tr.item-table-heading-row th {
border-bottom: 0.620315px solid #E8E8E8;
font-style: normal;
font-weight: normal;
@ -279,18 +251,18 @@
line-height: 18px;
}
.main-table-header {
.item-table-heading-row {
margin-bottom: 10px;
}
tr.item-details td {
tr.item-row td {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
}
.items {
.item-cell {
font-size: 13;
color: rgba(0, 0, 0, 0.6);
text-align: center;
@ -307,6 +279,7 @@
padding-top: 2px;
padding-bottom: 2px;
}
.table3 {
border-top: none;
box-sizing: border-box;
@ -318,18 +291,20 @@
}
.total-border-left {
border: 1px solid #E8E8E8!important;
border: 1px solid #E8E8E8 !important;
border-right: 0px !important;
padding-top: 0px;
padding:8px !important;
padding: 8px !important;
}
.total-border-right {
border: 1px solid #E8E8E8!important;
border: 1px solid #E8E8E8 !important;
border-left: 0px !important;
padding-top: 0px;
padding:8px !important;
padding: 8px !important;
}
.inv-item {
border-color: #d9d9d9;
}
@ -338,14 +313,6 @@
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);
}
.notes {
font-style: normal;
@ -370,20 +337,20 @@
height: 19.87px;
padding-bottom: 10px;
}
</style>
</head>
<body>
<div class="header-table">
<table width="100%">
<tr>
<td class="header-center">
@if($logo)
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else
@if($estimate->user->company)
<h2 class="header-logo"> {{$estimate->user->company->name}} </h2>
@endif
@if($estimate->user->company)
<h2 class="header-logo"> {{$estimate->user->company->name}} </h2>
@endif
@endif
</td>
</tr>
@ -398,16 +365,16 @@
<div class="job-add">
<table>
<tr>
<td class="textStyle1" style="text-align: left; color: #55547A">Estimate Number</td>
<td class="textStyle2"> &nbsp;{{$estimate->estimate_number}}</td>
<td class="attribute-label" style="text-align: left; color: #55547A">Estimate Number</td>
<td class="attribute-value"> &nbsp;{{$estimate->estimate_number}}</td>
</tr>
<tr>
<td class="textStyle1" style="text-align: left; color: #55547A">Estimate Date </td>
<td class="textStyle2"> &nbsp;{{$estimate->formattedEstimateDate}}</td>
<td class="attribute-label" style="text-align: left; color: #55547A">Estimate Date </td>
<td class="attribute-value"> &nbsp;{{$estimate->formattedEstimateDate}}</td>
</tr>
<tr>
<td class="textStyle1" style="text-align: left; color: #55547A">Expiry Date</td>
<td class="textStyle2"> &nbsp;{{$estimate->formattedExpiryDate}}</td>
<td class="attribute-label" style="text-align: left; color: #55547A">Expiry Date</td>
<td class="attribute-value"> &nbsp;{{$estimate->formattedExpiryDate}}</td>
</tr>
</table>
</div>
@ -418,18 +385,19 @@
@include('app.pdf.estimate.partials.billing-address')
</div>
@if($estimate->user->billingaddress)
<div class="ship-address-container">
@else
<div class="ship-address-container">
@else
<div class="ship-address-container " style="float:left;padding-left:0px;">
@endif
@include('app.pdf.estimate.partials.shipping-address')
@endif
@include('app.pdf.estimate.partials.shipping-address')
</div>
<div style="clear: both;"></div>
</div>
<div style="clear: both;"></div>
<div style="position:relative">
@include('app.pdf.estimate.partials.table')
</div>
@include('app.pdf.estimate.partials.notes')
</div>
<div style="position:relative">
@include('app.pdf.estimate.partials.table')
</div>
@include('app.pdf.estimate.partials.notes')
</div>
</body>
</html>
</html>

View File

@ -1,8 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<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">
body {
font-family: "DejaVu Sans";
@ -12,6 +13,7 @@
margin: 0px;
padding: 0px;
}
table {
border-collapse: collapse;
}
@ -20,12 +22,14 @@
padding-top: 45px;
padding-bottom: 45px;
padding-left: 30px;
display:inline-block;
width:30%;
display: inline-block;
width: 30%;
}
@page {
margin-top: 60px !important;
}
.header-table {
background: #817AE3;
position: absolute;
@ -34,57 +38,45 @@
left: 0px;
top: -60px;
}
.header-logo {
position: absolute;
height: 50px;
text-transform: capitalize;
color: #fff;
}
.header-right {
display:inline-block;
width:35%;
float:right;
display: inline-block;
width: 35%;
float: right;
padding: 20px 30px 20px 0px;
text-align: right;
color:white;
color: white;
}
.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);
}
.wrapper {
display: block;
margin-top: 60px;
padding-bottom: 20px;
display: block;
margin-top: 60px;
padding-bottom: 20px;
}
.address {
display: block;
padding-top: 20px;
}
.company {
padding: 0 0 0 30px;
display: inline;
float:left;
width:30%;
float: left;
width: 30%;
}
.company h1 {
@ -96,7 +88,7 @@
margin-bottom: 0;
}
.company-add {
.company-address{
font-style: normal;
font-weight: normal;
font-size: 10px;
@ -110,7 +102,7 @@
.bill-address-container {
display: block;
/* position: absolute; */
float:right;
float: right;
padding: 0 40px 0 0;
}
@ -124,8 +116,7 @@
}
.bill-user-name {
max-width: 250px
font-style: normal;
max-width: 250px font-style: normal;
font-weight: normal;
font-size: 15px;
line-height: 22px;
@ -144,6 +135,7 @@
margin: 0px;
width: 170px;
}
.bill-user-phone {
font-style: normal;
font-weight: normal;
@ -158,7 +150,7 @@
/* shipping style */
.ship-address-container {
display: block;
float:right;
float: right;
padding: 0 30px 0 0;
}
@ -172,8 +164,7 @@
}
.ship-user-name {
max-width: 250px
font-style: normal;
max-width: 250px font-style: normal;
font-weight: normal;
font-size: 15px;
line-height: 22px;
@ -206,40 +197,32 @@
.job-add {
display: inline;
float: right;
width:40%;
width: 40%;
}
.amount-due {
background-color: #f2f2f2;
}
.textRight {
text-align: right;
}
.textLeft {
text-align: left;
}
.textStyle1 {
.attribute-label {
font-size: 12;
font-weight: bold;
line-height:22px;
line-height: 22px;
color: rgba(0, 0, 0, 0.8);
}
.textStyle2 {
.attribute-value {
font-size: 12;
line-height:22px;
line-height: 22px;
color: rgba(0, 0, 0, 0.7);
}
.main-table-header td {
.item-table-heading-row td {
padding: 5px;
padding-bottom: 10px;
}
.main-table-header {
.item-table-heading-row {
border-bottom: 1px solid red;
}
@ -252,22 +235,22 @@
hr {
margin: 0 30px 0 30px;
color:rgba(0, 0, 0, 0.2);
color: rgba(0, 0, 0, 0.2);
border: 0.5px solid #EAF1FB;
}
.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;
}
tr.main-table-header th {
tr.item-table-heading-row th {
border-bottom: 0.620315px solid #E8E8E8;
font-style: normal;
font-weight: normal;
@ -275,14 +258,14 @@
line-height: 18px;
}
tr.item-details td {
tr.item-row td {
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
}
.items {
.item-cell {
font-size: 13;
color: rgba(0, 0, 0, 0.6);
text-align: center;
@ -339,22 +322,13 @@
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{
.company-details {
text-align: center;
width: 40%;
}
.company-details h1 {
margin:0;
margin: 0;
font-style: normal;
font-weight: 500;
font-size: 24px;
@ -363,7 +337,7 @@
}
.company-details h4 {
margin:0;
margin: 0;
font-style: normal;
font-weight: normal;
font-size: 10px;
@ -372,8 +346,8 @@
}
.company-details h3 {
margin-bottom:1px;
margin-top:0;
margin-bottom: 1px;
margin-top: 0;
}
.notes {
@ -399,22 +373,22 @@
height: 19.87px;
padding-bottom: 10px;
}
</style>
</head>
<body>
<div class="header-table">
<table width="100%">
<tr>
@if($logo)
<td width="60%" class="header-left">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else
<td width="60%" class="header-left" style="padding-top: 0px;">
@if($estimate->user->company)
<h1 class="header-logo"> {{$estimate->user->company->name}} </h1>
@endif
@endif
<td width="60%" class="header-left">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else
<td width="60%" class="header-left" style="padding-top: 0px;">
@if($estimate->user->company)
<h1 class="header-logo"> {{$estimate->user->company->name}} </h1>
@endif
@endif
</td>
<td width="40%" class="header-right company-details">
<h1>Estimate</h1>
@ -434,16 +408,17 @@
@include('app.pdf.estimate.partials.shipping-address')
</div>
@if($estimate->user->shippingaddress)
<div class="bill-address-container">
@else
<div class="bill-address-container">
@else
<div class="bill-address-container" style="float:right;padding-right:0px;">
@endif
@include('app.pdf.estimate.partials.billing-address')
@endif
@include('app.pdf.estimate.partials.billing-address')
</div>
<div style="clear: both;"></div>
</div>
<div style="clear: both;"></div>
@include('app.pdf.estimate.partials.table')
@include('app.pdf.estimate.partials.notes')
</div>
@include('app.pdf.estimate.partials.table')
@include('app.pdf.estimate.partials.notes')
</div>
</body>
</html>
</html>

View File

@ -1,8 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<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">
body {
@ -13,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;
@ -27,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;
}
@ -39,8 +41,8 @@
padding-top: 45px;
padding-bottom: 45px;
padding-left: 30px;
display:inline-block;
width:30%;
display: inline-block;
width: 30%;
}
.header-table {
@ -50,48 +52,32 @@
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 +87,16 @@
.bill-add {
display: inline;
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 +107,7 @@
letter-spacing: 0.05em;
}
.company-add {
.company-address{
text-align: left;
font-style: normal;
font-weight: normal;
@ -130,7 +117,7 @@
margin: 0px;
}
/* -------------------------- */
/* -------------------------- */
/* shipping style */
.ship-to {
padding-top: 5px;
@ -169,7 +156,7 @@
margin: 0px;
}
/* -------------------------- */
/* -------------------------- */
/* billing style */
.bill-to {
padding-top: 5px;
@ -214,50 +201,48 @@
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 +250,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;
@ -303,8 +288,8 @@
}
.table3 {
border: 1px solid #EAF1FB;
border-top: none;
border: 1px solid #EAF1FB;
border-top: none;
box-sizing: border-box;
width: 630px;
page-break-inside: avoid;
@ -313,26 +298,26 @@
}
td.estimate-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.estimate-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 {
@ -342,16 +327,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;
@ -360,21 +338,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 {
@ -400,22 +381,22 @@
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">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else
@else
@if($estimate->user->company)
<td class="header-left" style="padding-top:0px;">
<h1 class="header-logo"> {{$estimate->user->company->name}} </h1>
<td class="header-left" style="padding-top:0px;">
<h1 class="header-logo"> {{$estimate->user->company->name}} </h1>
@endif
@endif
@endif
</td>
<td class="header-right company-details">
@include('app.pdf.estimate.partials.company-address')
@ -432,36 +413,37 @@
<div style="float:left;">
@include('app.pdf.estimate.partials.billing-address')
</div>
@if($estimate->user->billingaddress)
<div style="float:right;">
@else
@if($estimate->user->billingaddress)
<div style="float:right;">
@else
<div style="float:left;">
@endif
@include('app.pdf.estimate.partials.shipping-address')
@endif
@include('app.pdf.estimate.partials.shipping-address')
</div>
<div style="clear: both;"></div>
</div>
<div class="job-add">
<table>
<tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Estimate Number</td>
<td class="attribute-value"> &nbsp;{{$estimate->estimate_number}}</td>
</tr>
<tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Estimate Date </td>
<td class="attribute-value"> &nbsp;{{$estimate->formattedEstimateDate}}</td>
</tr>
<tr>
<td class="attribute-label" style="text-align: left; color: #55547A">Expiry Date</td>
<td class="attribute-value"> &nbsp;{{$estimate->formattedExpiryDate}}</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">Estimate Number</td>
<td class="textStyle2"> &nbsp;{{$estimate->estimate_number}}</td>
</tr>
<tr>
<td class="textStyle1" style="text-align: left; color: #55547A">Estimate Date </td>
<td class="textStyle2"> &nbsp;{{$estimate->formattedEstimateDate}}</td>
</tr>
<tr>
<td class="textStyle1" style="text-align: left; color: #55547A">Expiry Date</td>
<td class="textStyle2"> &nbsp;{{$estimate->formattedExpiryDate}}</td>
</tr>
</table>
</div>
<div style="clear: both;"></div>
@include('app.pdf.estimate.partials.table')
@include('app.pdf.estimate.partials.notes')
</div>
@include('app.pdf.estimate.partials.table')
@include('app.pdf.estimate.partials.notes')
</div>
</body>
</html>
</html>

View File

@ -1,27 +1,27 @@
<table width="100%" class="table2" cellspacing="0" border="0">
<tr class="main-table-header">
<th width="2%" class="ItemTableHeader" style="text-align: right; color: #55547A; padding-right: 20px">#</th>
<th width="40%" class="ItemTableHeader" style="text-align: left; color: #55547A; padding-left: 0px">Items</th>
<th class="ItemTableHeader" style="text-align: right; color: #55547A; padding-right: 20px">Quantity</th>
<th class="ItemTableHeader" style="text-align: right; color: #55547A; padding-right: 20px">Price</th>
<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="40%" class="item-table-heading" style="text-align: left; color: #55547A; padding-left: 0px">Items</th>
<th class="item-table-heading" style="text-align: right; color: #55547A; padding-right: 20px">Quantity</th>
<th class="item-table-heading" style="text-align: right; color: #55547A; padding-right: 20px">Price</th>
@if($estimate->discount_per_item === 'YES')
<th class="ItemTableHeader" style="text-align: right; color: #55547A; padding-left: 10px">Discount</th>
<th class="item-table-heading" style="text-align: right; color: #55547A; padding-left: 10px">Discount</th>
@endif
<th class="ItemTableHeader" style="text-align: right; color: #55547A;">Amount</th>
<th class="item-table-heading" style="text-align: right; color: #55547A;">Amount</th>
</tr>
@php
$index = 1
@endphp
@foreach ($estimate->items as $item)
<tr class="item-details">
<tr class="item-row">
<td
class="inv-item items"
class="inv-item item-cell"
style="text-align: right; color: #040405; padding-right: 20px; vertical-align: top;"
>
{{$index}}
</td>
<td
class="inv-item items"
class="inv-item item-cell"
style="text-align: left; color: #040405;padding-left: 0px"
>
<span>{{ $item->name }}</span><br>
@ -32,19 +32,19 @@
</span>
</td>
<td
class="inv-item items"
class="inv-item item-cell"
style="text-align: right; color: #040405; padding-right: 20px"
>
{{$item->quantity}}
</td>
<td
class="inv-item items"
class="inv-item item-cell"
style="text-align: right; color: #040405; padding-right: 20px"
>
{!! format_money_pdf($item->price, $estimate->user->currency) !!}
</td>
@if($estimate->discount_per_item === 'YES')
<td class="inv-item items" style="text-align: right; color: #040405; padding-left: 10px">
<td class="inv-item item-cell" style="text-align: right; color: #040405; padding-left: 10px">
@if($item->discount_type === 'fixed')
{!! format_money_pdf($item->discount_val, $estimate->user->currency) !!}
@endif
@ -53,7 +53,7 @@
@endif
</td>
@endif
<td class="inv-item items" style="text-align: right; color: #040405;">
<td class="inv-item item-cell" style="text-align: right; color: #040405;">
{!! format_money_pdf($item->total, $estimate->user->currency) !!}
</td>
</tr>
@ -68,7 +68,7 @@
<table width="100%" cellspacing="0px" style="margin-left:420px;margin-top: 10px" border="0" class="table3 @if(count($estimate->items) > 12) page-break @endif">
<tr>
<td class="no-borde" style="color: #55547A; padding-left:10px; font-size:12px;">Subtotal</td>
<td class="no-border items"
<td class="no-border item-cell"
style="padding-right:10px; text-align: right; font-size:12px; color: #040405; font-weight: 500;">{!! format_money_pdf($estimate->sub_total, $estimate->user->currency) !!}</td>
</tr>
@ -78,7 +78,7 @@
<td class="no-border" style="padding-left:10px; text-align:left; font-size:12px; color: #55547A;">
{{$labels[$i]}}
</td>
<td class="no-border items padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; color: #040405">
<td class="no-border item-cell padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; color: #040405">
{!! format_money_pdf($taxes[$i], $estimate->user->currency) !!}
</td>
</tr>
@ -89,7 +89,7 @@
<td class="no-border" style="padding-left:10px; text-align:left; font-size:12px; color: #55547A;">
{{$tax->name.' ('.$tax->percent.'%)'}}
</td>
<td class="no-border items padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; color: #040405">
<td class="no-border item-cell padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; color: #040405">
{!! format_money_pdf($tax->amount, $estimate->user->currency) !!}
</td>
</tr>
@ -106,7 +106,7 @@
Discount ({{$estimate->discount}}%)
@endif
</td>
<td class="no-border items padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; color: #040405">
<td class="no-border item-cell padd2" style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; color: #040405">
@if($estimate->discount_type === 'fixed')
{!! format_money_pdf($estimate->discount_val, $estimate->user->currency) !!}
@endif
@ -127,7 +127,7 @@
<label class="total-bottom"> Total </label>
</td>
<td
class="no-border total-border-right items padd8"
class="no-border total-border-right item-cell padd8"
style="padding-right:10px; font-weight: 500; text-align: right; font-size:12px; padding-top:20px; color: #5851DB"
>
{!! format_money_pdf($estimate->total, $estimate->user->currency)!!}