mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
329 lines
8.4 KiB
PHP
329 lines
8.4 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;
|
|
}
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
hr {
|
|
color:rgba(0, 0, 0, 0.2);
|
|
position: absolute;
|
|
top: 80px;
|
|
left: 0px;
|
|
right: -70px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* -- Heeader -- */
|
|
|
|
.header-container {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 150px;
|
|
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;
|
|
height: 50px;
|
|
text-transform: capitalize;
|
|
color: #817AE3;
|
|
}
|
|
.header-section-right {
|
|
display:inline-block;
|
|
position: absolute;
|
|
right:0;
|
|
padding: 15px 30px 15px 0px;
|
|
float: right;
|
|
}
|
|
|
|
.header {
|
|
font-size: 20px;
|
|
color: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
/* -- Company Address -- */
|
|
|
|
.company-details h1 {
|
|
margin:0;
|
|
|
|
font-weight: bold;
|
|
font-size: 15px;
|
|
line-height: 22px;
|
|
letter-spacing: 0.05em;
|
|
text-align: left;
|
|
max-width: 220px;
|
|
}
|
|
|
|
.company-address{
|
|
text-align: left;
|
|
font-size: 10px;
|
|
line-height: 15px;
|
|
color: #595959;
|
|
margin: 0px;
|
|
}
|
|
|
|
.content-wrapper {
|
|
display: block;
|
|
height: 200px;
|
|
}
|
|
|
|
.main-content {
|
|
display: inline-block;
|
|
padding-top: 20px
|
|
}
|
|
|
|
/* -- Customer Address -- */
|
|
.customer-address-container {
|
|
display: block;
|
|
float:left;
|
|
width:40%;
|
|
padding: 0 0 0 30px;
|
|
}
|
|
|
|
/* -- Shipping -- */
|
|
|
|
.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;
|
|
}
|
|
|
|
.shipping-address {
|
|
font-size: 10px;
|
|
line-height: 15px;
|
|
color: #595959;
|
|
margin: 0px;
|
|
width: 160px;
|
|
}
|
|
|
|
/* -- Billing -- */
|
|
|
|
.billing-address-container {
|
|
float: left;
|
|
}
|
|
|
|
.billing-address-container--right {
|
|
float: right;
|
|
}
|
|
|
|
.billing-address-label {
|
|
padding-top: 5px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
margin-bottom: 0px;
|
|
color: #55547A;
|
|
}
|
|
|
|
.billing-address-name {
|
|
padding: 0px;
|
|
font-size: 15px;
|
|
line-height: 22px;
|
|
margin: 0px;
|
|
}
|
|
|
|
.billing-address {
|
|
font-size: 10px;
|
|
line-height: 15px;
|
|
color: #595959;
|
|
margin:0px;
|
|
width: 160px;
|
|
}
|
|
|
|
/* -- Payment Details -- */
|
|
|
|
.payment-details-container {
|
|
display: inline;
|
|
position: absolute;
|
|
float: right;
|
|
width: 40%;
|
|
height: 120px;
|
|
padding: 20px 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;
|
|
}
|
|
|
|
/* -- Notes -- */
|
|
|
|
.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;
|
|
}
|
|
|
|
.content-heading {
|
|
margin-top: 120px;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
p {
|
|
padding: 0 0 0 0;
|
|
margin: 0 0 0 0;
|
|
}
|
|
|
|
.content-heading span {
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
line-height: 25px;
|
|
padding-bottom: 5px;
|
|
border-bottom: 1px solid #B9C1D1;
|
|
}
|
|
|
|
/* -- Total Display Box -- */
|
|
|
|
.total-display-box {
|
|
width: 315px;
|
|
display: block;
|
|
margin-right: 30px;
|
|
background: #F9FBFF;
|
|
border: 1px solid #EAF1FB;
|
|
box-sizing: border-box;
|
|
float: right;
|
|
padding: 12px 15px 15px 15px;
|
|
}
|
|
|
|
.total-display-label {
|
|
display: inline;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 21px;
|
|
color: #595959;
|
|
}
|
|
|
|
.total-display-box span {
|
|
float: right;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
line-height: 21px;
|
|
text-align: right;
|
|
color: #5851D8;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header-container">
|
|
<table width="100%">
|
|
<tr>
|
|
@if($logo)
|
|
<td class="header-section-left">
|
|
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
|
|
@else
|
|
@if($payment->user->company)
|
|
<td class="header-section-left" style="padding-top:0px;">
|
|
<h1 class="header-logo"> {{$payment->user->company->name}} </h1>
|
|
@endif
|
|
@endif
|
|
</td>
|
|
<td class="header-section-right company-details">
|
|
@include('app.pdf.payment.partials.company-address')
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<hr style="border: 0.620315px solid #E8E8E8;">
|
|
|
|
<p class="content-heading">
|
|
<span>PAYMENT RECEIPT</span>
|
|
</p>
|
|
|
|
<div class="content-wrapper">
|
|
<div class="main-content">
|
|
<div class="customer-address-container">
|
|
<div class="billing-address-container">
|
|
@include('app.pdf.payment.partials.billing-address')
|
|
</div>
|
|
<div class="billing-address-container--right">
|
|
</div>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
|
|
<div class="payment-details-container">
|
|
<table width="100%">
|
|
<tr>
|
|
<td class="attribute-label">Payment Date</td>
|
|
<td class="attribute-value"> {{$payment->formattedPaymentDate}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="attribute-label">Payment Number</td>
|
|
<td class="attribute-value"> {{$payment->payment_number}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="attribute-label">Payment Mode</td>
|
|
<td class="attribute-value"> {{$payment->paymentMethod ? $payment->paymentMethod->name : '-'}}</td>
|
|
</tr>
|
|
@if ($payment->invoice && $payment->invoice->invoice_number)
|
|
<tr>
|
|
<td class="attribute-label">Invoice</td>
|
|
<td class="attribute-value"> {{$payment->invoice->invoice_number}}</td>
|
|
</tr>
|
|
@endif
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
<div class="total-display-box">
|
|
<p class="total-display-label">Amount Received</p>
|
|
<span>{!! format_money_pdf($payment->amount, $payment->user->currency) !!}</span>
|
|
</div>
|
|
</body>
|
|
</html>
|