Moved to _dev
This commit is contained in:
476
crater/resources/views/app/pdf/estimate/estimate1.blade.php
Normal file
476
crater/resources/views/app/pdf/estimate/estimate1.blade.php
Normal file
@@ -0,0 +1,476 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>@lang('pdf_estimate_label') - {{ $estimate->estimate_number }}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
/* -- Base -- */
|
||||
body {
|
||||
font-family: "DejaVu Sans";
|
||||
}
|
||||
|
||||
html {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 0 30px 0 30px;
|
||||
color: rgba(0, 0, 0, 0.2);
|
||||
border: 0.5px solid #EAF1FB;
|
||||
}
|
||||
|
||||
/* -- Header -- */
|
||||
|
||||
.header-container {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 90px;
|
||||
left: 0px;
|
||||
top: -50px;
|
||||
}
|
||||
|
||||
.header-bottom-divider {
|
||||
color: rgba(0, 0, 0, 0.2);
|
||||
position: absolute;
|
||||
top: 90px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.header-logo {
|
||||
|
||||
margin-top: 20px;
|
||||
text-transform: capitalize;
|
||||
color: #817AE3;
|
||||
}
|
||||
|
||||
.header {
|
||||
font-size: 20px;
|
||||
color: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: block;
|
||||
margin-top: 0px;
|
||||
padding-top: 16px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
/* -- Company Details -- */
|
||||
|
||||
.company-details-container {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
.company-address-container {
|
||||
padding-top: 15px;
|
||||
float: left;
|
||||
padding-left: 30px;
|
||||
width: 30%;
|
||||
text-transform: capitalize;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.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: 0px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.company-address {
|
||||
margin-top: 2px;
|
||||
text-align: left;
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
color: #595959;
|
||||
width: 280px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.estimate-details-container {
|
||||
float: right;
|
||||
padding: 10px 30px 0 0;
|
||||
}
|
||||
|
||||
.attribute-label {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
padding-right: 40px;
|
||||
text-align: left;
|
||||
color: #55547A
|
||||
}
|
||||
|
||||
.attribute-value {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* -- Customer Address -- */
|
||||
|
||||
.customer-address-container {
|
||||
width: 45%;
|
||||
padding: 0px 0 0 0px;
|
||||
}
|
||||
|
||||
/* -- Shipping -- */
|
||||
|
||||
.shipping-address-container {
|
||||
float: right;
|
||||
padding-left: 40px;
|
||||
width: 160px;
|
||||
}
|
||||
|
||||
.shipping-address-container--left {
|
||||
float: left;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.shipping-address-label {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
padding: 0px;
|
||||
margin-top: 27px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.shipping-address-name {
|
||||
max-width: 160px;
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.shipping-address {
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
color: #595959;
|
||||
padding-top: 45px;
|
||||
padding-left: 40px;
|
||||
margin: 0px;
|
||||
width: 160px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* -- Billing -- */
|
||||
|
||||
.billing-address-container {
|
||||
padding-top: 50px;
|
||||
float: left;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
.billing-address-label {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
padding: 0px;
|
||||
margin-top: 27px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.billing-address-name {
|
||||
max-width: 160px;
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.billing-address {
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
color: #595959;
|
||||
padding: 45px 0px 0px 30px;
|
||||
margin: 0px;
|
||||
width: 160px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* -- Items Table -- */
|
||||
|
||||
.items-table {
|
||||
margin-top: 35px;
|
||||
padding: 0px 30px 10px 30px;
|
||||
page-break-before: avoid;
|
||||
page-break-after: auto;
|
||||
}
|
||||
|
||||
.items-table hr {
|
||||
height: 0.1px;
|
||||
}
|
||||
|
||||
.item-table-heading {
|
||||
font-size: 13.5;
|
||||
text-align: center;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
padding: 5px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
tr.item-table-heading-row th {
|
||||
border-bottom: 0.620315px solid #E8E8E8;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.item-table-heading-row {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
tr.item-row td {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.item-cell {
|
||||
font-size: 13;
|
||||
color: #040405;
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
padding-top: 10px;
|
||||
border-color: #d9d9d9;
|
||||
}
|
||||
|
||||
.item-description {
|
||||
color: #595959;
|
||||
font-size: 9px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
/* -- Total Display Table -- */
|
||||
|
||||
.total-display-container {
|
||||
padding: 0 25px;
|
||||
|
||||
}
|
||||
|
||||
.total-display-table {
|
||||
border-top: none;
|
||||
box-sizing: border-box;
|
||||
page-break-inside: avoid;
|
||||
page-break-before: auto;
|
||||
page-break-after: auto;
|
||||
margin-top: 20px;
|
||||
float: right;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
|
||||
.total-table-attribute-label {
|
||||
font-size: 12px;
|
||||
color: #55547A;
|
||||
text-align: left;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.total-table-attribute-value {
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
font-size: 12px;
|
||||
color: #040405;
|
||||
padding-right: 10px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.total-border-left {
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
border-right: 0px !important;
|
||||
padding-top: 0px;
|
||||
padding: 8px !important;
|
||||
}
|
||||
|
||||
.total-border-right {
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
border-left: 0px !important;
|
||||
padding-top: 0px;
|
||||
padding: 8px !important;
|
||||
}
|
||||
|
||||
/* -- Notes -- */
|
||||
|
||||
.notes {
|
||||
font-size: 12px;
|
||||
color: #595959;
|
||||
margin-top: 80px;
|
||||
margin-left: 30px;
|
||||
width: 442px;
|
||||
text-align: left;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
.notes-label {
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
letter-spacing: 0.05em;
|
||||
color: #040405;
|
||||
width: 108px;
|
||||
white-space: nowrap;
|
||||
height: 19.87px;
|
||||
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>
|
||||
|
||||
@if (App::isLocale('th'))
|
||||
@include('app.pdf.locale.th')
|
||||
@endif
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="header-container">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
@if ($logo)
|
||||
<img class="header-logo" style="height: 50px;" src="{{ $logo }}" alt="Company Logo">
|
||||
@else
|
||||
@if ($estimate->customer->company)
|
||||
<h2 class="header-logo"> {{ $estimate->customer->company->name }} </h2>
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr class="header-bottom-divider" />
|
||||
</div>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="company-details-container">
|
||||
<div class="company-address-container company-address">
|
||||
{!! $company_address !!}
|
||||
</div>
|
||||
|
||||
<div class="estimate-details-container">
|
||||
<table class="estimate-details-table">
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_number')</td>
|
||||
<td class="attribute-value"> {{ $estimate->estimate_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_date')</td>
|
||||
<td class="attribute-value"> {{ $estimate->formattedEstimateDate }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_expire_date')</td>
|
||||
<td class="attribute-value"> {{ $estimate->formattedExpiryDate }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
|
||||
<div class="customer-address-container">
|
||||
@if ($billing_address !== '</br>')
|
||||
<div class="billing-address-container billing-address">
|
||||
@if ($billing_address)
|
||||
<b>@lang('pdf_bill_to')</b> <br>
|
||||
{!! $billing_address !!}
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div @if ($billing_address !== '</br>') class="shipping-address-container shipping-address" @else class="shipping-address-container--left shipping-address" style="padding-left:30px;" @endif>
|
||||
|
||||
@if ($shipping_address)
|
||||
<b>@lang('pdf_ship_to') </b> <br>
|
||||
{!! $shipping_address !!}
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
|
||||
<div style="position:relative">
|
||||
@include('app.pdf.estimate.partials.table')
|
||||
</div>
|
||||
|
||||
<div class="notes">
|
||||
@if ($notes)
|
||||
<div class="notes-label">
|
||||
@lang('pdf_notes')
|
||||
</div>
|
||||
|
||||
{!! $notes !!}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
478
crater/resources/views/app/pdf/estimate/estimate2.blade.php
Normal file
478
crater/resources/views/app/pdf/estimate/estimate2.blade.php
Normal file
@@ -0,0 +1,478 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>@lang('pdf_estimate_label') - {{ $estimate->estimate_number }}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style type="text/css">
|
||||
/* -- Base -- */
|
||||
body {
|
||||
font-family: "DejaVu Sans";
|
||||
}
|
||||
|
||||
html {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
hr {
|
||||
color: rgba(0, 0, 0, 0.2);
|
||||
border: 0.5px solid #EAF1FB;
|
||||
}
|
||||
|
||||
/* -- Header -- */
|
||||
|
||||
.header-container {
|
||||
background: #817AE3;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 141px;
|
||||
left: 0px;
|
||||
top: -60px;
|
||||
}
|
||||
|
||||
.header-section-left {
|
||||
padding-top: 45px;
|
||||
padding-bottom: 45px;
|
||||
padding-left: 30px;
|
||||
display: inline-block;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.header-logo {
|
||||
position: absolute;
|
||||
|
||||
text-transform: capitalize;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.header-section-right {
|
||||
display: inline-block;
|
||||
width: 35%;
|
||||
float: right;
|
||||
padding: 20px 30px 20px 0px;
|
||||
text-align: right;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.header {
|
||||
font-size: 20px;
|
||||
color: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
/* -- Estimate Details -- */
|
||||
|
||||
.estimate-details-container {
|
||||
text-align: center;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.estimate-details-container h1 {
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
line-height: 36px;
|
||||
text-align: right;
|
||||
font-family: "DejaVu Sans";
|
||||
}
|
||||
|
||||
.estimate-details-container h4 {
|
||||
margin: 0;
|
||||
font-size: 10px;
|
||||
line-height: 15px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.estimate-details-container h3 {
|
||||
margin-bottom: 1px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* -- Address -- */
|
||||
|
||||
.content-wrapper {
|
||||
display: block;
|
||||
margin-top: 60px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.address-container {
|
||||
display: block;
|
||||
padding-top: 20px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* -- Company Address -- */
|
||||
|
||||
.company-address-container {
|
||||
padding: 0 0 0 30px;
|
||||
display: inline;
|
||||
float: left;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.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: 0px;
|
||||
}
|
||||
|
||||
.company-address {
|
||||
margin-top: 2px;
|
||||
text-align: left;
|
||||
word-wrap: break-word;
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
color: #595959;
|
||||
}
|
||||
|
||||
/* -- Billing -- */
|
||||
|
||||
.billing-address-container {
|
||||
display: block;
|
||||
/* position: absolute; */
|
||||
float: right;
|
||||
padding: 0 40px 0 0;
|
||||
}
|
||||
|
||||
.billing-address-label {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
padding: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.billing-address-name {
|
||||
max-width: 160px;
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
padding: 0px;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.billing-address {
|
||||
font-size: 10px;
|
||||
line-height: 15px;
|
||||
color: #595959;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
width: 170px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* -- Shipping -- */
|
||||
|
||||
.shipping-address-container {
|
||||
display: block;
|
||||
float: right;
|
||||
padding: 0 30px 0 0;
|
||||
}
|
||||
|
||||
.shipping-address-label {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
padding: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.shipping-address-name {
|
||||
max-width: 160px;
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
padding: 0px;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.shipping-address {
|
||||
font-size: 10px;
|
||||
line-height: 15px;
|
||||
color: #595959;
|
||||
padding: 0px 30px 0px 20px;
|
||||
margin: 0px;
|
||||
width: 170px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
/* -- Items Table -- */
|
||||
|
||||
.items-table {
|
||||
padding: 30px 30px 10px 30px;
|
||||
page-break-before: avoid;
|
||||
page-break-after: auto;
|
||||
}
|
||||
|
||||
.items-table hr {
|
||||
height: 0.1px;
|
||||
margin: 0 30px;
|
||||
}
|
||||
|
||||
.item-table-heading {
|
||||
font-size: 13.5;
|
||||
text-align: center;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.item-table-heading-row td {
|
||||
padding: 5px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.item-table-heading-row {
|
||||
border-bottom: 1px solid red;
|
||||
}
|
||||
|
||||
tr.item-table-heading-row th {
|
||||
border-bottom: 0.620315px solid #E8E8E8;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
tr.item-row td {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.item-cell {
|
||||
font-size: 13;
|
||||
color: #040405;
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.item-description {
|
||||
color: #595959;
|
||||
font-size: 9px;
|
||||
line-height: 12px;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
/* -- Total Display Table -- */
|
||||
|
||||
|
||||
.total-display-container {
|
||||
padding: 0 25px;
|
||||
}
|
||||
|
||||
.item-cell-table-hr {
|
||||
margin: 0 25px 0 30px;
|
||||
}
|
||||
|
||||
.total-display-table {
|
||||
box-sizing: border-box;
|
||||
page-break-inside: avoid;
|
||||
page-break-before: auto;
|
||||
page-break-after: auto;
|
||||
margin-top: 20px;
|
||||
float: right;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.total-table-attribute-label {
|
||||
font-size: 12px;
|
||||
color: #55547A;
|
||||
text-align: left;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.total-table-attribute-value {
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
font-size: 12px;
|
||||
color: #040405;
|
||||
padding-right: 10px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.total-border-left {
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
border-right: 0px !important;
|
||||
padding-top: 0px;
|
||||
padding: 8px !important;
|
||||
}
|
||||
|
||||
.total-border-right {
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
border-left: 0px !important;
|
||||
padding-top: 0px;
|
||||
padding: 8px !important;
|
||||
}
|
||||
|
||||
/* -- Notes -- */
|
||||
|
||||
.notes {
|
||||
font-size: 12px;
|
||||
color: #595959;
|
||||
margin-top: 80px;
|
||||
margin-left: 30px;
|
||||
width: 442px;
|
||||
text-align: left;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
.notes-label {
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
letter-spacing: 0.05em;
|
||||
color: #040405;
|
||||
width: 108px;
|
||||
white-space: nowrap;
|
||||
height: 19.87px;
|
||||
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>
|
||||
|
||||
@if (App::isLocale('th'))
|
||||
@include('app.pdf.locale.th')
|
||||
@endif
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="header-container">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
@if ($logo)
|
||||
<td width="60%" class="header-section-left">
|
||||
<img class="header-logo" style="height: 50px;" src="{{ $logo }}" alt="Company Logo">
|
||||
</td>
|
||||
@else
|
||||
<td width="60%" class="header-section-left" style="padding-top: 0px;">
|
||||
@if ($estimate->customer->company)
|
||||
<h1 class="header-logo"> {{ $estimate->customer->company->name }} </h1>
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
<td width="40%" class="header-section-right estimate-details-container">
|
||||
<h1>@lang('pdf_estimate_label')</h1>
|
||||
<h4>{{ $estimate->estimate_number }}</h4>
|
||||
<h4>{{ $estimate->formattedEstimateDate }}</h4>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="content-wrapper">
|
||||
<div class="address-container">
|
||||
<div class="company-address-container company-address">
|
||||
{!! $company_address !!}
|
||||
</div>
|
||||
|
||||
@if ($shipping_address !== '</br>')
|
||||
<div class="shipping-address-container shipping-address">
|
||||
@if ($shipping_address)
|
||||
<b>@lang('pdf_ship_to')</b> <br>
|
||||
{!! $shipping_address !!}
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="billing-address-container billing-address" @if ($shipping_address === '</br>') style="float:right; margin-right:30px;" @endif>
|
||||
@if ($billing_address)
|
||||
<b>@lang('pdf_bill_to')</b> <br>
|
||||
{!! $billing_address !!}
|
||||
@endif
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
|
||||
@include('app.pdf.estimate.partials.table')
|
||||
|
||||
<div class="notes">
|
||||
@if ($notes)
|
||||
<div class="notes-label">
|
||||
@lang('pdf_notes')
|
||||
</div>
|
||||
{!! $notes !!}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
427
crater/resources/views/app/pdf/estimate/estimate3.blade.php
Normal file
427
crater/resources/views/app/pdf/estimate/estimate3.blade.php
Normal file
@@ -0,0 +1,427 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>@lang('pdf_estimate_label') - {{ $estimate->estimate_number }}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
/* -- Base -- */
|
||||
body {
|
||||
font-family: "DejaVu Sans";
|
||||
}
|
||||
|
||||
html {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
hr {
|
||||
color: rgba(0, 0, 0, 0.2);
|
||||
border: 0.5px solid #EAF1FB;
|
||||
}
|
||||
|
||||
/* -- Header -- */
|
||||
|
||||
.header-container {
|
||||
margin-top: -30px;
|
||||
width: 100%;
|
||||
padding: 0px 30px;
|
||||
}
|
||||
|
||||
.header-logo {
|
||||
|
||||
text-transform: capitalize;
|
||||
color: #817AE3;
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
/* -- Company Address -- */
|
||||
|
||||
.company-address-container {
|
||||
width: 50%;
|
||||
text-transform: capitalize;
|
||||
padding-right: 60px;
|
||||
margin-bottom: 2px;
|
||||
|
||||
}
|
||||
|
||||
.company-address {
|
||||
margin-top: 12px;
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
color: #595959;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* -- Content Wrapper -- */
|
||||
|
||||
.wrapper {
|
||||
display: block;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.customer-address-container {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 45%;
|
||||
padding: 10px 0 0 30px;
|
||||
}
|
||||
|
||||
/* -- Shipping -- */
|
||||
|
||||
.shipping-address-container {
|
||||
float: right;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.shipping-address-container--left {
|
||||
float: left;
|
||||
display: block;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.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;
|
||||
max-width: 160px;
|
||||
}
|
||||
|
||||
.shipping-address {
|
||||
font-size: 10px;
|
||||
line-height: 15px;
|
||||
color: #595959;
|
||||
margin-top: 5px;
|
||||
width: 160px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* -- Billing -- */
|
||||
|
||||
.billing-address-container {
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.billing-address-label {
|
||||
padding-top: 5px;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.billing-address-name {
|
||||
padding: 0px;
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
margin: 0px;
|
||||
max-width: 160px;
|
||||
}
|
||||
|
||||
.billing-address {
|
||||
font-size: 10px;
|
||||
line-height: 15px;
|
||||
color: #595959;
|
||||
margin-top: 5px;
|
||||
width: 160px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* -- Estimate Details -- */
|
||||
|
||||
.estimate-details-container {
|
||||
display: block;
|
||||
float: right;
|
||||
padding: 10px 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;
|
||||
}
|
||||
|
||||
/* -- Items Table -- */
|
||||
|
||||
.items-table {
|
||||
padding: 30px 30px 10px 30px;
|
||||
page-break-before: avoid;
|
||||
page-break-after: auto;
|
||||
}
|
||||
|
||||
.items-table hr {
|
||||
height: 0.1px;
|
||||
margin: 0 30px;
|
||||
}
|
||||
|
||||
.item-table-heading {
|
||||
font-size: 13.5;
|
||||
text-align: center;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
padding: 5px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
tr.item-table-heading-row th {
|
||||
border-bottom: 0.620315px solid #E8E8E8;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.item-table-heading-row {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
tr.item-row td {
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.item-cell {
|
||||
font-size: 13;
|
||||
color: #040405;
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
padding-top: 10px;
|
||||
border-color: #d9d9d9;
|
||||
}
|
||||
|
||||
.item-description {
|
||||
color: #595959;
|
||||
font-size: 9px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
.item-cell-table-hr {
|
||||
margin: 0 30px 0 30px;
|
||||
}
|
||||
|
||||
/* -- Total Display Table -- */
|
||||
|
||||
.total-display-container {
|
||||
padding: 0 25px;
|
||||
}
|
||||
|
||||
.total-display-table {
|
||||
box-sizing: border-box;
|
||||
page-break-inside: avoid;
|
||||
page-break-before: auto;
|
||||
page-break-after: auto;
|
||||
margin-top: 20px;
|
||||
float: right;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
|
||||
.total-table-attribute-label {
|
||||
font-size: 12px;
|
||||
color: #55547A;
|
||||
text-align: left;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.total-table-attribute-value {
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
font-size: 12px;
|
||||
color: #040405;
|
||||
padding-right: 10px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.total-border-left {
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
border-right: 0px !important;
|
||||
padding-top: 0px;
|
||||
padding: 8px !important;
|
||||
}
|
||||
|
||||
.total-border-right {
|
||||
border: 1px solid #E8E8E8 !important;
|
||||
border-left: 0px !important;
|
||||
padding-top: 0px;
|
||||
padding: 8px !important;
|
||||
}
|
||||
|
||||
/* -- Notes -- */
|
||||
|
||||
.notes {
|
||||
font-size: 12px;
|
||||
color: #595959;
|
||||
margin-top: 80px;
|
||||
margin-left: 30px;
|
||||
width: 442px;
|
||||
text-align: left;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
.notes-label {
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
letter-spacing: 0.05em;
|
||||
color: #040405;
|
||||
width: 108px;
|
||||
white-space: nowrap;
|
||||
height: 19.87px;
|
||||
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>
|
||||
|
||||
@if (App::isLocale('th'))
|
||||
@include('app.pdf.locale.th')
|
||||
@endif
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="header-container">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="50%" class="header-section-left">
|
||||
@if ($logo)
|
||||
<img class="header-logo" style="height: 50px;" src="{{ $logo }}" alt="Company Logo">
|
||||
@else
|
||||
<h1 class="header-logo"> {{ $estimate->customer->company->name }} </h1>
|
||||
@endif
|
||||
</td>
|
||||
<td width="50%" class="text-right company-address-container company-address">
|
||||
{!! $company_address !!}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<hr class="header-bottom-divider">
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="main-content">
|
||||
<div class="customer-address-container">
|
||||
<div class="billing-address-container billing-address">
|
||||
@if ($billing_address)
|
||||
<b>@lang('pdf_bill_to')</b> <br>
|
||||
{!! $billing_address !!}
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div @if ($estimate->customer->billingaddress) class="shipping-address-container shipping-address" @else class="shipping-address-container--left shipping-address" @endif>
|
||||
@if ($shipping_address)
|
||||
<b>@lang('pdf_ship_to')</b> <br>
|
||||
{!! $shipping_address !!}
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
|
||||
<div class="estimate-details-container">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_number')</td>
|
||||
<td class="attribute-value"> {{ $estimate->estimate_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_date') </td>
|
||||
<td class="attribute-value"> {{ $estimate->formattedEstimateDate }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attribute-label">@lang('pdf_estimate_expire_date')</td>
|
||||
<td class="attribute-value"> {{ $estimate->formattedExpiryDate }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
@include('app.pdf.estimate.partials.table')
|
||||
|
||||
<div class="notes">
|
||||
@if ($notes)
|
||||
<div class="notes-label">
|
||||
@lang('pdf_notes')
|
||||
</div>
|
||||
{!! $notes !!}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
140
crater/resources/views/app/pdf/estimate/partials/table.blade.php
Normal file
140
crater/resources/views/app/pdf/estimate/partials/table.blade.php
Normal file
@@ -0,0 +1,140 @@
|
||||
<table width="100%" class="items-table" cellspacing="0" border="0">
|
||||
<tr class="item-table-heading-row">
|
||||
<th width="2%" class="pr-20 text-right item-table-heading">#</th>
|
||||
<th width="40%" class="pl-0 text-left item-table-heading">@lang('pdf_items_label')</th>
|
||||
@foreach($customFields as $field)
|
||||
<th class="text-right item-table-heading">{{ $field->label }}</th>
|
||||
@endforeach
|
||||
<th class="pr-20 text-right item-table-heading">@lang('pdf_quantity_label')</th>
|
||||
<th class="pr-20 text-right item-table-heading">@lang('pdf_price_label')</th>
|
||||
@if($estimate->discount_per_item === 'YES')
|
||||
<th class="pl-10 text-right item-table-heading">@lang('pdf_discount_label')</th>
|
||||
@endif
|
||||
<th class="text-right item-table-heading">@lang('pdf_amount_label')</th>
|
||||
</tr>
|
||||
@php
|
||||
$index = 1
|
||||
@endphp
|
||||
@foreach ($estimate->items as $item)
|
||||
<tr class="item-row">
|
||||
<td
|
||||
class="pr-20 text-right item-cell"
|
||||
style="vertical-align: top;"
|
||||
>
|
||||
{{$index}}
|
||||
</td>
|
||||
<td
|
||||
class="pl-0 text-left item-cell"
|
||||
>
|
||||
<span>{{ $item->name }}</span><br>
|
||||
<span
|
||||
class="item-description"
|
||||
>
|
||||
{!! nl2br(htmlspecialchars($item->description)) !!}
|
||||
</span>
|
||||
</td>
|
||||
@foreach($customFields as $field)
|
||||
<td class="text-right item-cell" style="vertical-align: top;">
|
||||
{{ $item->getCustomFieldValueBySlug($field->slug) }}
|
||||
</td>
|
||||
@endforeach
|
||||
<td
|
||||
class="pr-20 text-right item-cell"
|
||||
style="vertical-align: top;"
|
||||
>
|
||||
{{$item->quantity}} @if($item->unit_name) {{$item->unit_name}} @endif
|
||||
</td>
|
||||
<td
|
||||
class="pr-20 text-right item-cell"
|
||||
style="vertical-align: top;"
|
||||
>
|
||||
{!! format_money_pdf($item->price, $estimate->customer->currency) !!}
|
||||
</td>
|
||||
@if($estimate->discount_per_item === 'YES')
|
||||
<td class="pl-10 text-right item-cell" style="vertical-align: top;">
|
||||
@if($item->discount_type === 'fixed')
|
||||
{!! format_money_pdf($item->discount_val, $estimate->customer->currency) !!}
|
||||
@endif
|
||||
@if($item->discount_type === 'percentage')
|
||||
{{$item->discount}}%
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
<td class="text-right item-cell" style="vertical-align: top;">
|
||||
{!! format_money_pdf($item->total, $estimate->customer->currency) !!}
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$index += 1
|
||||
@endphp
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
<hr class="item-cell-table-hr">
|
||||
|
||||
<div class="total-display-container">
|
||||
<table width="100%" cellspacing="0px" border="0" class="total-display-table @if(count($estimate->items) > 12) page-break @endif">
|
||||
<tr>
|
||||
<td class="border-0 total-table-attribute-label">@lang('pdf_subtotal')</td>
|
||||
<td class="border-0 item-cell total-table-attribute-value ">{!! format_money_pdf($estimate->sub_total, $estimate->customer->currency) !!}</td>
|
||||
</tr>
|
||||
|
||||
@if($estimate->discount > 0)
|
||||
@if ($estimate->discount_per_item === 'NO')
|
||||
<tr>
|
||||
<td class="pl-10 border-0 total-table-attribute-label">
|
||||
@if($estimate->discount_type === 'fixed')
|
||||
@lang('pdf_discount_label')
|
||||
@endif
|
||||
@if($estimate->discount_type === 'percentage')
|
||||
@lang('pdf_discount_label') ({{$estimate->discount}}%)
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-right border-0 item-cell total-table-attribute-value">
|
||||
@if($estimate->discount_type === 'fixed')
|
||||
{!! format_money_pdf($estimate->discount_val, $estimate->customer->currency) !!}
|
||||
@endif
|
||||
@if($estimate->discount_type === 'percentage')
|
||||
{!! format_money_pdf($estimate->discount_val, $estimate->customer->currency) !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if ($estimate->tax_per_item === 'YES')
|
||||
@foreach ($taxes as $tax)
|
||||
<tr>
|
||||
<td class="border-0 total-table-attribute-label">
|
||||
{{$tax->name.' ('.$tax->percent.'%)'}}
|
||||
</td>
|
||||
<td class="py-2 border-0 item-cell total-table-attribute-value">
|
||||
{!! format_money_pdf($tax->amount, $estimate->customer->currency) !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
@foreach ($estimate->taxes as $tax)
|
||||
<tr>
|
||||
<td class="border-0 total-table-attribute-label">
|
||||
{{$tax->name.' ('.$tax->percent.'%)'}}
|
||||
</td>
|
||||
<td class="border-0 item-cell total-table-attribute-value" >
|
||||
{!! format_money_pdf($tax->amount, $estimate->customer->currency) !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td class="py-3"></td>
|
||||
<td class="py-3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="border-0 total-border-left total-table-attribute-label">@lang('pdf_total')</td>
|
||||
<td class="py-8 border-0 total-border-right item-cell total-table-attribute-value" style="color: #5851D8">
|
||||
{!! format_money_pdf($estimate->total, $estimate->customer->currency)!!}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user