mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
364 lines
9.2 KiB
PHP
364 lines
9.2 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Invoice</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;
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center
|
|
}
|
|
|
|
hr {
|
|
margin: 0 30px 0 30px;
|
|
color: rgba(0, 0, 0, 0.2);
|
|
border: 0.5px solid #EAF1FB;
|
|
}
|
|
|
|
/* -- Header -- */
|
|
|
|
.header-bottom-divider {
|
|
color: rgba(0, 0, 0, 0.2);
|
|
position: absolute;
|
|
top: 90px;
|
|
left: 0px;
|
|
width: 100%;
|
|
}
|
|
|
|
.header-container {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 90px;
|
|
left: 0px;
|
|
top: -50px;
|
|
}
|
|
|
|
.header-logo {
|
|
height: 50px;
|
|
margin-top: 20px;
|
|
text-transform: capitalize;
|
|
color: #817AE3;
|
|
}
|
|
|
|
.header {
|
|
font-size: 20px;
|
|
color: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.content-wrapper {
|
|
display: block;
|
|
margin-top: 0px;
|
|
padding-top: 16px;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.company-address-container {
|
|
padding-left: 30px;
|
|
font-weight: normal;
|
|
float: left;
|
|
width: 30%;
|
|
text-transform: capitalize;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.company-address-container h1 {
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
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-style: normal;
|
|
font-weight: normal;
|
|
font-size: 12px;
|
|
line-height: 15px;
|
|
color: #595959;
|
|
}
|
|
|
|
.amount-due {
|
|
background-color: #f2f2f2;
|
|
}
|
|
|
|
.attribute-label {
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
padding-right: 40px;
|
|
}
|
|
|
|
.attribute-value {
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
text-align: right;
|
|
}
|
|
|
|
/* -- Shipping -- */
|
|
|
|
.ship-address-container {
|
|
float: right;
|
|
padding-left: 30px;
|
|
}
|
|
|
|
.ship-to {
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
padding: 0px;
|
|
margin-top: 27px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.ship-user-name {
|
|
max-width: 250px;
|
|
font-size: 15px;
|
|
line-height: 22px;
|
|
padding: 0px;
|
|
margin: 0px;
|
|
}
|
|
|
|
.ship-user-address {
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 10px;
|
|
line-height: 15px;
|
|
color: #595959;
|
|
padding: 0px;
|
|
margin: 0px;
|
|
width: 160px;
|
|
}
|
|
|
|
.ship-user-phone {
|
|
font-size: 10px;
|
|
line-height: 15px;
|
|
color: #595959;
|
|
padding: 0px;
|
|
margin: 0px;
|
|
}
|
|
|
|
/* -------------------------- */
|
|
/* billing style */
|
|
|
|
.bill-address-container {
|
|
float: left;
|
|
padding-left: 30px;
|
|
}
|
|
|
|
.bill-to {
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
padding: 0px;
|
|
margin-top: 27px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.bill-user-name {
|
|
max-width: 250px;
|
|
font-size: 15px;
|
|
line-height: 22px;
|
|
padding: 0px;
|
|
margin: 0px;
|
|
}
|
|
|
|
.bill-user-address {
|
|
font-size: 10px;
|
|
line-height: 15px;
|
|
color: #595959;
|
|
padding: 0px;
|
|
margin: 0px;
|
|
width: 160px;
|
|
}
|
|
|
|
.bill-user-phone {
|
|
font-size: 10px;
|
|
line-height: 15px;
|
|
color: #595959;
|
|
padding: 0px;
|
|
margin: 0px;
|
|
}
|
|
|
|
.table2 {
|
|
margin-top: 35px;
|
|
padding: 0px 30px 10px 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;
|
|
}
|
|
|
|
tr.item-table-heading-row th {
|
|
border-bottom: 0.620315px solid #E8E8E8;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
tr.item-row td {
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.item-cell {
|
|
font-size: 13;
|
|
color: rgba(0, 0, 0, 0.6);
|
|
text-align: center;
|
|
padding: 5px;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.padd8 {
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.padd2 {
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
.table3 {
|
|
/* border: 1px solid #EAF1FB; */
|
|
border-top: none;
|
|
/* padding-right: 30px; */
|
|
box-sizing: border-box;
|
|
width: 630px;
|
|
/* position: absolute;
|
|
right: -25; */
|
|
page-break-inside: avoid;
|
|
page-break-before: auto;
|
|
page-break-after: auto;
|
|
}
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
.inv-item {
|
|
border-color: #d9d9d9;
|
|
}
|
|
|
|
.no-border {
|
|
border: none;
|
|
}
|
|
|
|
.notes {
|
|
font-size: 12px;
|
|
color: #595959;
|
|
margin-top: 15px;
|
|
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;
|
|
height: 19.87px;
|
|
padding-bottom: 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="header-container">
|
|
<table width="100%">
|
|
<tr>
|
|
<td class="text-center">
|
|
@if($logo)
|
|
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
|
|
@else
|
|
@if($invoice->user->company)
|
|
<h2 class="header-logo"> {{$invoice->user->company->name}} </h2>
|
|
@endif
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr class="header-bottom-divider" style="border: 0.620315px solid #E8E8E8;" />
|
|
</div>
|
|
<div class="content-wrapper">
|
|
<div style="padding-top: 30px">
|
|
<div class="company-address-container">
|
|
@include('app.pdf.invoice.partials.company-address')
|
|
</div>
|
|
<div style="float: right; padding: 10px 30px 0 0;">
|
|
<table>
|
|
<tr>
|
|
<td class="attribute-label" style="text-align: left; color: #55547A">Invoice Number</td>
|
|
<td class="attribute-value"> {{$invoice->invoice_number}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="attribute-label" style="text-align: left; color: #55547A">Invoice Date </td>
|
|
<td class="attribute-value"> {{$invoice->formattedInvoiceDate}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="attribute-label" style="text-align: left; color: #55547A">Due date</td>
|
|
<td class="attribute-value"> {{$invoice->formattedDueDate}}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
|
|
<div class="bill-address-container">
|
|
@include('app.pdf.invoice.partials.billing-address')
|
|
</div>
|
|
|
|
<div class="ship-address-container" @if($invoice->user->billingaddress) style="float:left;" @endif>
|
|
@include('app.pdf.invoice.partials.shipping-address')
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
<div style="position: relative; clear: both;">
|
|
@include('app.pdf.invoice.partials.table')
|
|
</div>
|
|
@include('app.pdf.invoice.partials.notes')
|
|
</body>
|
|
|
|
</html> |