build version 400

This commit is contained in:
Mohit Panjwani
2020-12-02 17:54:08 +05:30
parent 326508e567
commit 89ee58590c
963 changed files with 62887 additions and 48868 deletions

View File

@ -1,8 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" class="h-full">
<head>
<title>Crater - Self Hosted Invoicing Platform</title>
<script src="/assets/js/pace.js"></script>
<script src="/assets/js/pace/pace.js"></script>
<link href="{{mix("/assets/css/crater.css")}}" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600&display=swap" rel="stylesheet">
@ -17,13 +18,12 @@
<meta name="theme-color" content="#ffffff">
<meta name="csrf-token" content="{{ csrf_token() }}">
</head>
<body class="layout-default skin-crater">
<div id="app" class="template-container">
<div class="mobile-menu-overlay" @click.prevent="onOverlayClick"></div>
<transition name="fade" mode="out-in">
<body class="h-full overflow-x-hidden bg-gray-100 layout-default skin-crater font-base">
<div id="app" class="h-full">
<router-view></router-view>
</transition>
</div>
<script type="text/javascript" src="{{mix('/assets/js/app.js')}}"></script>
</div>
<script type="text/javascript" src="{{mix('/assets/js/app.js')}}"></script>
</body>
</html>

View File

@ -71,6 +71,7 @@
}
.company-address-container {
padding-top: 15px;
float: left;
padding-left: 30px;
width: 30%;
@ -100,6 +101,8 @@
font-size: 12px;
line-height: 15px;
color: #595959;
width: 280px;
word-wrap: break-word;
}
.estimate-details-container {
@ -132,7 +135,8 @@
.shipping-address-container {
float: right;
padding-left: 30px;
padding-left: 40px;
width: 160px;
}
.shipping-address-container--left {
@ -157,17 +161,20 @@
}
.shipping-address {
font-size: 10px;
font-size: 12px;
line-height: 15px;
color: #595959;
padding: 0px;
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;
}
@ -189,12 +196,13 @@
}
.billing-address {
font-size: 10px;
font-size: 12px;
line-height: 15px;
color: #595959;
padding: 0px;
padding: 45px 0px 0px 30px;
margin: 0px;
width: 160px;
word-wrap: break-word;
}
/* -- Items Table -- */
@ -394,21 +402,21 @@
</div>
<div class="wrapper">
<div class="company-details-container">
<div class="company-address-container">
@include('app.pdf.estimate.partials.company-address')
<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">Estimate Number</td>
<td class="attribute-label">@lang('pdf_estimate_number')</td>
<td class="attribute-value"> &nbsp;{{$estimate->estimate_number}}</td>
</tr>
<tr>
<td class="attribute-label">Estimate Date </td>
<td class="attribute-label">@lang('pdf_estimate_date')</td>
<td class="attribute-value"> &nbsp;{{$estimate->formattedEstimateDate}}</td>
</tr>
<tr>
<td class="attribute-label">Expiry Date</td>
<td class="attribute-label">@lang('pdf_estimate_expire_date')</td>
<td class="attribute-value"> &nbsp;{{$estimate->formattedExpiryDate}}</td>
</tr>
</table>
@ -416,22 +424,37 @@
<div style="clear: both;"></div>
</div>
<div class="customer-address-container">
<div class="billing-address-container">
@include('app.pdf.estimate.partials.billing-address')
</div>
@if($estimate->user->billingaddress)
<div class="shipping-address-container">
@else
<div class="shipping-address-container--left">
@if($billing_address !== '</br>')
<div class="billing-address-container billing-address">
@if($billing_address)
@lang('pdf_bill_to')
{!! $billing_address !!}
@endif
</div>
@endif
@include('app.pdf.estimate.partials.shipping-address')
@if($billing_address !== '</br>')
<div class="shipping-address-container shipping-address">
@else
<div class="shipping-address-container--left shipping-address" style="padding-left:30px;">
@endif
@if($shipping_address)
@lang('pdf_ship_to')
{!! $shipping_address !!}
@endif
</div>
<div style="clear: both;"></div>
</div>
<div style="position:relative">
@include('app.pdf.estimate.partials.table')
</div>
@include('app.pdf.estimate.partials.notes')
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
@endif
</div>
</div>
</body>

View File

@ -103,6 +103,7 @@
.address-container {
display: block;
padding-top: 20px;
margin-top: 10px;
}
/* -- Company Address -- */
@ -127,14 +128,12 @@
line-height: 22px;
letter-spacing: 0.05em;
margin-bottom: 0px;
margin-top: 10px;
}
.company-address {
margin-top: 2px;
text-align: left;
word-wrap: break-word;
font-size: 12px;
line-height: 15px;
color: #595959;
@ -172,6 +171,7 @@
padding: 0px;
margin: 0px;
width: 170px;
word-wrap: break-word;
}
/* -- Shipping -- */
@ -202,9 +202,10 @@
font-size: 10px;
line-height: 15px;
color: #595959;
padding: 0px;
padding: 0px 30px 0px 20px;
margin: 0px;
width: 170px;
word-wrap: break-word;
}
.attribute-label {
@ -407,7 +408,7 @@
@endif
</td>
<td width="40%" class="header-section-right estimate-details-container">
<h1>Estimate</h1>
<h1>@lang('pdf_estimate_label')</h1>
<h4>{{$estimate->estimate_number}}</h4>
<h4>{{$estimate->formattedEstimateDate}}</h4>
</td>
@ -417,22 +418,38 @@
<hr>
<div class="wrapper">
<div class="address-container">
<div class="company-address-container">
@include('app.pdf.estimate.partials.company-address')
<div class="company-address-container company-address">
{!! $company_address !!}
</div>
<div class="shipping-address-container">
@include('app.pdf.estimate.partials.shipping-address')
@if($shipping_address !== '</br>')
<div class="shipping-address-container shipping-address">
@if($shipping_address)
@lang('pdf_ship_to')
{!! $shipping_address !!}
@endif
</div>
@if($estimate->user->shippingaddress)
<div class="billing-address-container">
@else
<div class="billing-address-container" style="float:right; padding-right:0px;">
@endif
@include('app.pdf.estimate.partials.billing-address')
@if($shipping_address !== '</br>')
<div class="billing-address-container billing-address">
@else
<div class="billing-address-container billing-address" style="float:right; margin-right:30px;">
@endif
@if($billing_address)
@lang('pdf_bill_to')
{!! $billing_address !!}
@endif
</div>
<div style="clear: both;"></div>
</div>
@include('app.pdf.estimate.partials.table')
@include('app.pdf.estimate.partials.notes')
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
@endif
</div>
</div>
</body>

View File

@ -29,93 +29,48 @@
/* -- Header -- */
.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-bottom-divider {
color: rgba(0, 0, 0, 0.2);
position: absolute;
top: 100px;
left: 0px;
margin-top: -30px;
width: 100%;
padding: 0px 30px;
}
.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);
padding-top: 0px;
}
/* -- Company Address -- */
.company-address-container {
width: auto;
width: 50%;
text-transform: capitalize;
padding-left: 80px;
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;
margin-top: 12px;
font-size: 12px;
line-height: 15px;
color: #595959;
word-wrap: break-word;
}
/* -- Content Wrapper -- */
.wrapper {
display: block;
padding-top: 100px;
padding-top: 0px;
padding-bottom: 20px;
}
.main-content {
}
.customer-address-container {
display: inline;
display: block;
float: left;
width: 40%;
padding: 0 0 0 30px;
width: 45%;
padding: 10px 0 0 30px;
}
/* -- Shipping -- */
@ -126,7 +81,8 @@
}
.shipping-address-container--left {
float: left;
float:left;
display: block;
padding-left: 0;
}
@ -149,13 +105,15 @@
font-size: 10px;
line-height: 15px;
color: #595959;
margin: 0px;
margin-top: 5px;
width: 160px;
word-wrap: break-word;
}
/* -- Billing -- */
.billing-address-container {
display: block;
float: left;
}
@ -178,8 +136,9 @@
font-size: 10px;
line-height: 15px;
color: #595959;
margin: 0px;
margin-top: 5px;
width: 160px;
word-wrap: break-word;
}
/* -- Estimate Details -- */
@ -187,7 +146,7 @@
.estimate-details-container {
display: block;
float: right;
padding: 20px 30px 0 0;
padding: 10px 30px 0 0;
}
.attribute-label {
@ -388,18 +347,15 @@
<div class="header-container">
<table width="100%">
<tr>
@if($logo)
<td class="header-section-left">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
<td width="50%" class="header-section-left">
@if($logo)
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else
@if($estimate->user->company)
<td class="header-section-left" style="padding-top:0px;">
<h1 class="header-logo"> {{$estimate->user->company->name}} </h1>
@endif
<h1 class="header-logo"> {{$estimate->user->company->name}} </h1>
@endif
</td>
<td class="header-section-right company-address-container">
@include('app.pdf.estimate.partials.company-address')
<td width="50%" class="company-address-container company-address">
{!! $company_address !!}
</td>
</tr>
</table>
@ -410,15 +366,21 @@
<div class="wrapper">
<div class="main-content">
<div class="customer-address-container">
<div class="billing-address-container">
@include('app.pdf.estimate.partials.billing-address')
<div class="billing-address-container billing-address">
@if($billing_address)
@lang('pdf_bill_to')
{!! $billing_address !!}
@endif
</div>
@if($estimate->user->billingaddress)
<div class="shipping-address-container">
<div class="shipping-address-container shipping-address">
@else
<div class="shipping-address-container--left">
<div class="shipping-address-container--left shipping-address">
@endif
@if($shipping_address)
@lang('pdf_ship_to')
{!! $shipping_address !!}
@endif
@include('app.pdf.estimate.partials.shipping-address')
</div>
<div style="clear: both;"></div>
</div>
@ -426,15 +388,15 @@
<div class="estimate-details-container">
<table>
<tr>
<td class="attribute-label">Estimate Number</td>
<td class="attribute-label">@lang('pdf_estimate_number')</td>
<td class="attribute-value"> &nbsp;{{$estimate->estimate_number}}</td>
</tr>
<tr>
<td class="attribute-label">Estimate Date </td>
<td class="attribute-label">@lang('pdf_estimate_date') </td>
<td class="attribute-value"> &nbsp;{{$estimate->formattedEstimateDate}}</td>
</tr>
<tr>
<td class="attribute-label">Expiry Date</td>
<td class="attribute-label">@lang('pdf_estimate_expire_date')</td>
<td class="attribute-value"> &nbsp;{{$estimate->formattedExpiryDate}}</td>
</tr>
</table>
@ -442,7 +404,14 @@
<div style="clear: both;"></div>
</div>
@include('app.pdf.estimate.partials.table')
@include('app.pdf.estimate.partials.notes')
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
@endif
</div>
</div>
</div>
</body>

View File

@ -1,39 +0,0 @@
@if($estimate->user->billingaddress)
<p class="billing-address-label">Bill To,</p>
@if($estimate->user->billingaddress->name)
<p class="billing-address-name">
{{$estimate->user->billingaddress->name}}
</p>
@endif
<p class="billing-address">
@if($estimate->user->billingaddress->address_street_1)
{!! nl2br(htmlspecialchars($estimate->user->billingaddress->address_street_1)) !!}<br>
@endif
@if($estimate->user->billingaddress->address_street_2)
{!! nl2br(htmlspecialchars($estimate->user->billingaddress->address_street_2)) !!}<br>
@endif
@if($estimate->user->billingaddress->city)
{{$estimate->user->billingaddress->city}},
@endif
@if($estimate->user->billingaddress->state)
{{$estimate->user->billingaddress->state}}.
@endif
@if($estimate->user->billingaddress->zip)
{{$estimate->user->billingaddress->zip}}<br>
@endif
@if($estimate->user->billingaddress->country && $estimate->user->billingaddress->country->name)
{{$estimate->user->billingaddress->country->name}}<br>
@endif
@if($estimate->user->billingaddress->phone)
<p class="billing-address">
Phone :{{$estimate->user->billingaddress->phone}}
</p>
@endif
</p>
@endif

View File

@ -1,31 +0,0 @@
@if($estimate->user->company)
<h1> {{$estimate->user->company->name}} </h1>
@endif
@if($company_address)
<p class="company-address">
@if($company_address->addresses[0]['address_street_1'])
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br>
@endif
@if($company_address->addresses[0]['address_street_2'])
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_2'])) !!} <br>
@endif
@if($company_address->addresses[0]['city'])
{{$company_address->addresses[0]['city']}}
@endif
@if($company_address->addresses[0]['state'])
{{$company_address->addresses[0]['state']}}
@endif
@if($company_address->addresses[0]['zip'])
{{$company_address->addresses[0]['zip']}} <br>
@endif
@if($company_address->addresses[0]['country'])
{{$company_address->addresses[0]['country']->name}} <br>
@endif
@if($company_address->addresses[0]['phone'])
{{$company_address->addresses[0]['phone']}} <br>
@endif
</p>
@endif

View File

@ -1,8 +0,0 @@
@if ($estimate->notes != '' && $estimate->notes != null)
<div class="notes">
<div class="notes-label">
Notes
</div>
{!! nl2br(htmlspecialchars($estimate->notes)) !!}
</div>
@endif

View File

@ -1,40 +0,0 @@
@if($estimate->user->shippingaddress)
<p class="shipping-address-label">Ship To,</p>
@if($estimate->user->shippingaddress->name)
<p class="shipping-address-name">
{{$estimate->user->shippingaddress->name}}
</p>
@endif
<p class="shipping-address">
@if($estimate->user->shippingaddress->address_street_1)
{!! nl2br(htmlspecialchars($estimate->user->shippingaddress->address_street_1)) !!}<br>
@endif
@if($estimate->user->shippingaddress->address_street_2)
{!! nl2br(htmlspecialchars($estimate->user->shippingaddress->address_street_2)) !!}<br>
@endif
@if($estimate->user->shippingaddress->city && $estimate->user->shippingaddress->city)
{{$estimate->user->shippingaddress->city}},
@endif
@if($estimate->user->shippingaddress->state && $estimate->user->shippingaddress->state)
{{$estimate->user->shippingaddress->state}}.
@endif
@if($estimate->user->shippingaddress->zip)
{{$estimate->user->shippingaddress->zip}}<br>
@endif
@if($estimate->user->shippingaddress->country && $estimate->user->shippingaddress->country->name)
{{$estimate->user->shippingaddress->country->name}}<br>
@endif
@if($estimate->user->shippingAddress->phone)
<p class="shipping-address">
Phone :{{$estimate->user->shippingaddress->phone}}
</p>
@endif
</p>
@endif

View File

@ -1,13 +1,13 @@
<table width="100%" class="items-table" cellspacing="0" border="0">
<tr class="item-table-heading-row">
<th width="2%" class="item-table-heading text-right pr-20">#</th>
<th width="40%" class="item-table-heading text-left pl-0">Items</th>
<th class="item-table-heading text-right pr-20">Quantity</th>
<th class="item-table-heading text-right pr-20">Price</th>
<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>
<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="item-table-heading text-right pl-10">Discount</th>
<th class="pl-10 text-right item-table-heading">@lang('pdf_discount_label')</th>
@endif
<th class="item-table-heading text-right">Amount </th>
<th class="text-right item-table-heading">@lang('pdf_amount_label')</th>
</tr>
@php
$index = 1
@ -15,13 +15,13 @@
@foreach ($estimate->items as $item)
<tr class="item-row">
<td
class="item-cell text-right pr-20"
class="pr-20 text-right item-cell"
style="vertical-align: top;"
>
{{$index}}
</td>
<td
class="item-cell text-left pl-0"
class="pl-0 text-left item-cell"
>
<span>{{ $item->name }}</span><br>
<span
@ -31,19 +31,19 @@
</span>
</td>
<td
class="item-cell text-right pr-20"
class="pr-20 text-right item-cell"
style="vertical-align: top;"
>
{{$item->quantity}}
</td>
<td
class="item-cell text-right pr-20"
class="pr-20 text-right item-cell"
style="vertical-align: top;"
>
{!! format_money_pdf($item->price, $estimate->user->currency) !!}
</td>
@if($estimate->discount_per_item === 'YES')
<td class="item-cell text-right pl-10" style="vertical-align: top;">
<td class="pl-10 text-right item-cell" style="vertical-align: top;">
@if($item->discount_type === 'fixed')
{!! format_money_pdf($item->discount_val, $estimate->user->currency) !!}
@endif
@ -52,7 +52,7 @@
@endif
</td>
@endif
<td class="item-cell text-right" style="vertical-align: top;">
<td class="text-right item-cell" style="vertical-align: top;">
{!! format_money_pdf($item->total, $estimate->user->currency) !!}
</td>
</tr>
@ -67,7 +67,7 @@
<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">Subtotal</td>
<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->user->currency) !!}</td>
</tr>
@ -77,7 +77,7 @@
<td class="border-0 total-table-attribute-label">
{{$labels[$i]}}
</td>
<td class="border-0 item-cell total-table-attribute-value">
<td class="border-0 item-cell total-table-attribute-value">
{!! format_money_pdf($taxes[$i], $estimate->user->currency) !!}
</td>
</tr>
@ -97,15 +97,15 @@
@if ($estimate->discount_per_item === 'NO')
<tr>
<td class="border-0 total-table-attribute-label pl-10">
<td class="pl-10 border-0 total-table-attribute-label">
@if($estimate->discount_type === 'fixed')
Discount
@lang('pdf_discount_label')
@endif
@if($estimate->discount_type === 'percentage')
Discount ({{$estimate->discount}}%)
@lang('pdf_discount_label') ({{$estimate->discount}}%)
@endif
</td>
<td class="border-0 item-cell total-table-attribute-value text-right">
<td class="text-right border-0 item-cell total-table-attribute-value">
@if($estimate->discount_type === 'fixed')
{!! format_money_pdf($estimate->discount_val, $estimate->user->currency) !!}
@endif
@ -120,8 +120,8 @@
<td class="py-3"></td>
</tr>
<tr>
<td class="border-0 total-border-left total-table-attribute-label">Total</td>
<td class="border-0 total-border-right item-cell py-8 total-table-attribute-value text-primary">
<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->user->currency)!!}
</td>
</tr>

View File

@ -65,6 +65,7 @@
}
.company-address-container {
padding-top: 15px;
padding-left: 30px;
float: left;
width: 30%;
@ -86,6 +87,8 @@
font-size: 12px;
line-height: 15px;
color: #595959;
width: 280px;
word-wrap: break-word;
}
.invoice-details-container {
@ -111,37 +114,23 @@
.shipping-address-container {
float: right;
padding-left: 30px;
padding-left: 40px;
width: 160px;
}
.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: 10px;
font-size: 12px;
line-height: 15px;
color: #595959;
padding: 0px;
padding: 45px 0px 0px 40px;
margin: 0px;
width: 160px;
word-wrap: break-word;
}
/* -- Billing -- */
.billing-address-container {
padding-top: 50px;
float: left;
padding-left: 30px;
}
@ -163,12 +152,13 @@
}
.billing-address {
font-size: 10px;
font-size: 12px;
line-height: 15px;
color: #595959;
padding: 0px;
padding: 45px 0px 0px 30px;
margin: 0px;
width: 160px;
word-wrap: break-word;
}
/* -- Items Table -- */
@ -363,21 +353,21 @@
</div>
<div class="content-wrapper">
<div style="padding-top: 30px">
<div class="company-address-container">
@include('app.pdf.invoice.partials.company-address')
<div class="company-address-container company-address">
{!! $company_address !!}
</div>
<div class="invoice-details-container">
<table>
<tr>
<td class="attribute-label">Invoice Number</td>
<td class="attribute-label">@lang('pdf_invoice_number')</td>
<td class="attribute-value"> &nbsp;{{$invoice->invoice_number}}</td>
</tr>
<tr>
<td class="attribute-label">Invoice Date </td>
<td class="attribute-label">@lang('pdf_invoice_date')</td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedInvoiceDate}}</td>
</tr>
<tr>
<td class="attribute-label">Due date</td>
<td class="attribute-label">@lang('pdf_invoice_due_date')</td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedDueDate}}</td>
</tr>
</table>
@ -385,18 +375,30 @@
<div style="clear: both;"></div>
</div>
<div class="billing-address-container">
@include('app.pdf.invoice.partials.billing-address')
<div class="billing-address-container billing-address">
@if($billing_address)
@lang('pdf_bill_to')
{!! $billing_address !!}
@endif
</div>
<div class="shipping-address-container" @if($invoice->user->billingaddress) style="float:left;" @else style="float:left: padding-left: 0px;" @endif>
@include('app.pdf.invoice.partials.shipping-address')
@if($invoice->user->billingaddress) <div style="clear: both;"></div> @endif
<div class="shipping-address-container shipping-address" @if($billing_address !== '</br>') style="float:left;" @else style="display:block; float:left: padding-left: 0px;" @endif>
@if($shipping_address)
@lang('pdf_ship_to')
{!! $shipping_address !!}
@endif
</div>
<div style="position: relative; clear: both;">
@include('app.pdf.invoice.partials.table')
</div>
@include('app.pdf.invoice.partials.notes')
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
@endif
</div>
</body>
</html>

View File

@ -103,6 +103,7 @@
.address-container {
display: block;
padding-top: 20px;
margin-top: 18px;
}
/* -- Company -- */
@ -119,7 +120,7 @@
font-size: 15px;
letter-spacing: 0.05em;
margin-bottom: 0;
margin-top: 18px;
/* margin-top: 18px; */
}
.company-address{
@ -127,6 +128,7 @@
line-height: 15px;
color: #595959;
margin-top: 0px;
word-wrap: break-word;
}
/* -- Billing -- */
@ -161,6 +163,7 @@
padding: 0px;
margin: 0px;
width: 170px;
word-wrap: break-word;
}
/* -- Shipping -- */
@ -191,9 +194,9 @@
font-size: 10px;
line-height: 15px;
color: #595959;
padding: 0px;
margin: 0px;
padding: 0px 30px 0px 30px;
width: 170px;
word-wrap: break-word;
}
/* -- Items Table -- */
@ -388,7 +391,7 @@
@endif
</td>
<td width="40%" class="header-section-right invoice-details-container">
<h1>Invoice</h1>
<h1>@lang('pdf_invoice_label')</h1>
<h4>{{$invoice->invoice_number}}</h4>
<h4>{{$invoice->formattedInvoiceDate}}</h4>
</td>
@ -398,23 +401,39 @@
<hr>
<div class="content-wrapper">
<div class="address-container">
<div class="company-address-container">
@include('app.pdf.invoice.partials.company-address')
<div class="company-address-container company-address">
{!! $company_address !!}
</div>
<div class="shipping-address-container">
@include('app.pdf.invoice.partials.shipping-address')
</div>
@if($invoice->user->shippingaddress)
<div class="billing-address-container">
@else
<div class="billing-address-container" style="float:right;padding-right:0px;">
@if($shipping_address !== '</br>')
<div class="shipping-address-container shipping-address">
@if($shipping_address)
@lang('pdf_ship_to')
{!! $shipping_address !!}
@endif
</div>
@endif
@if($shipping_address !== '</br>')
<div class="billing-address-container billing-address">
@else
<div class="billing-address-container billing-address" style="float:right; margin-right:30px;">
@endif
@if($billing_address)
@lang('pdf_bill_to')
{!! $billing_address !!}
@endif
@include('app.pdf.invoice.partials.billing-address')
</div>
<div style="clear: both;"></div>
</div>
@include('app.pdf.invoice.partials.table')
@include('app.pdf.invoice.partials.notes')
{{-- @include('app.pdf.invoice.partials.notes') --}}
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
@endif
</div>
</div>
</body>

View File

@ -29,90 +29,44 @@
/* -- Header -- */
.header-bottom-divider {
color: rgba(0, 0, 0, 0.2);
position: absolute;
top: 100px;
left: 0px;
width: 100%;
}
.header-section-left {
padding-top: 45px;
padding-bottom: 45px;
padding-left: 30px;
display: inline-block;
width: 30%;
}
.header-container {
position: absolute;
margin-top: -30px;
width: 100%;
height: 150px;
left: 0px;
top: -60px;
padding: 0px 30px;
}
.header-logo {
position: absolute;
height: 50px;
text-transform: capitalize;
color: #817AE3;
padding-top: 0px;
}
.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-address-container {
width: auto;
width: 50%;
text-transform: capitalize;
padding-left: 80px;
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;
margin-top: 12px;
font-size: 12px;
line-height: 15px;
color: #595959;
word-wrap: break-word;
}
/* -- Content Wrapper */
.content-wrapper {
display: block;
padding-top: 100px;
padding-top: 0px;
padding-bottom: 20px;
}
.main-content {
}
.customer-address-container {
display: block;
float: left;
width: 40%;
padding: 0 0 0 30px;
width: 45%;
padding: 10px 0 0 30px;
}
/* -- Shipping -- */
@ -127,27 +81,13 @@
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: 0px;
margin-top: 5px;
width: 160px;
word-wrap: break-word;
}
/* -- Billing -- */
@ -157,27 +97,13 @@
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: 0px;
margin-top: 5px;
width: 160px;
word-wrap: break-word;
}
/* -- Estimate Details -- */
@ -185,7 +111,7 @@
.invoice-details-container {
display: block;
float: right;
padding: 20px 30px 0 0;
padding: 10px 30px 0 0;
}
.attribute-label {
@ -381,15 +307,15 @@
<div class="header-container">
<table width="100%">
<tr>
<td class="header-section-left">
<td width="50%" class="header-section-left">
@if($logo)
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else
<h1 class="header-logo"> {{$invoice->user->company->name}} </h1>
@endif
</td>
<td class="header-section-right company-address-container">
@include('app.pdf.invoice.partials.company-address')
<td width="50%" class="company-address-container company-address">
{!! $company_address !!}
</td>
</tr>
</table>
@ -400,15 +326,21 @@
<div class="content-wrapper">
<div class="main-content">
<div class="customer-address-container">
<div class="billing-address-container">
@include('app.pdf.invoice.partials.billing-address')
<div class="billing-address-container billing-address">
@if($billing_address)
@lang('pdf_bill_to')
{!! $billing_address !!}
@endif
</div>
@if($invoice->user->billingaddress)
<div class="shipping-address-container">
@if($billing_address !== '</br>')
<div class="shipping-address-container shipping-address">
@else
<div class="shipping-address-container--left">
<div class="shipping-address-container--left shipping-address">
@endif
@include('app.pdf.invoice.partials.shipping-address')
@if($shipping_address)
@lang('pdf_ship_to')
{!! $shipping_address !!}
@endif
</div>
<div style="clear: both;"></div>
</div>
@ -416,15 +348,15 @@
<div class="invoice-details-container">
<table>
<tr>
<td class="attribute-label">Invoice Number</td>
<td class="attribute-label">@lang('pdf_invoice_number')</td>
<td class="attribute-value"> &nbsp;{{$invoice->invoice_number}}</td>
</tr>
<tr>
<td class="attribute-label">Invoice Date </td>
<td class="attribute-label">@lang('pdf_invoice_date')</td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedInvoiceDate}}</td>
</tr>
<tr>
<td class="attribute-label">Due date</td>
<td class="attribute-label">@lang('pdf_invoice_due_date')</td>
<td class="attribute-value"> &nbsp;{{$invoice->formattedDueDate}}</td>
</tr>
</table>
@ -432,7 +364,14 @@
<div style="clear: both;"></div>
</div>
@include('app.pdf.invoice.partials.table')
@include('app.pdf.invoice.partials.notes')
<div class="notes">
@if($notes)
<div class="notes-label">
@lang('pdf_notes')
</div>
{!! $notes !!}
@endif
</div>
</div>
</div>
</body>

View File

@ -1,33 +0,0 @@
@if($invoice->user->billingaddress)
<p class="billing-address-label">Bill To,</p>
@if($invoice->user->billingaddress->name)
<p class="billing-address-name">
{{$invoice->user->billingaddress->name}}
</p>
@endif
<p class="billing-address">
@if($invoice->user->billingaddress->address_street_1)
{!! nl2br(htmlspecialchars($invoice->user->billingaddress->address_street_1)) !!}<br>
@endif
@if($invoice->user->billingaddress->address_street_2)
{!! nl2br(htmlspecialchars($invoice->user->billingaddress->address_street_2)) !!}<br>
@endif
@if($invoice->user->billingaddress->city && $invoice->user->billingaddress->city)
{{$invoice->user->billingaddress->city}},
@endif
@if($invoice->user->billingaddress->state && $invoice->user->billingaddress->state)
{{$invoice->user->billingaddress->state}}.
@endif
@if($invoice->user->billingaddress->zip)
{{$invoice->user->billingaddress->zip}}<br>
@endif
@if($invoice->user->billingaddress->country && $invoice->user->billingaddress->country->name)
{{$invoice->user->billingaddress->country->name}}<br>
@endif
@if($invoice->user->billingaddress->phone)
<p class="billing-address">
Phone :{{$invoice->user->billingaddress->phone}}
</p>
@endif
</p>
@endif

View File

@ -1,30 +0,0 @@
@if($invoice->user->company)
<h1> {{$invoice->user->company->name}} </h1>
@endif
@if($company_address)
<p class="company-address">
@if($company_address->addresses[0]['address_street_1'])
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br>
@endif
@if($company_address->addresses[0]['address_street_2'])
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_2'])) !!} <br>
@endif
@if($company_address->addresses[0]['city'])
{{$company_address->addresses[0]['city']}}
@endif
@if($company_address->addresses[0]['state'])
{{$company_address->addresses[0]['state']}}
@endif
@if($company_address->addresses[0]['zip'])
{{$company_address->addresses[0]['zip']}} <br>
@endif
@if($company_address->addresses[0]['country'])
{{$company_address->addresses[0]['country']->name}} <br>
@endif
@if($company_address->addresses[0]['phone'])
{{$company_address->addresses[0]['phone']}} <br>
@endif
</p>
@endif

View File

@ -1,8 +0,0 @@
@if ($invoice->notes != '' && $invoice->notes != null)
<div class="notes">
<div class="notes-label">
Notes
</div>
{!! nl2br(htmlspecialchars($invoice->notes)) !!}
</div>
@endif

View File

@ -1,40 +0,0 @@
@if($invoice->user->shippingaddress)
<p class="shipping-address-label">Ship To,</p>
@if($invoice->user->shippingaddress->name)
<p class="shipping-address-name">
{{$invoice->user->shippingaddress->name}}
</p>
@endif
<p class="shipping-address">
@if($invoice->user->shippingaddress->address_street_1)
{!! nl2br(htmlspecialchars($invoice->user->shippingaddress->address_street_1)) !!}<br>
@endif
@if($invoice->user->shippingaddress->address_street_2)
{!! nl2br(htmlspecialchars($invoice->user->shippingaddress->address_street_2)) !!}<br>
@endif
@if($invoice->user->shippingaddress->city && $invoice->user->shippingaddress->city)
{{$invoice->user->shippingaddress->city}},
@endif
@if($invoice->user->shippingaddress->state && $invoice->user->shippingaddress->state)
{{$invoice->user->shippingaddress->state}}.
@endif
@if($invoice->user->shippingaddress->zip)
{{$invoice->user->shippingaddress->zip}}<br>
@endif
@if($invoice->user->shippingaddress->country && $invoice->user->shippingaddress->country->name)
{{$invoice->user->shippingaddress->country->name}}<br>
@endif
@if($invoice->user->shippingaddress->phone)
<p class="shipping-address">
Phone :{{$invoice->user->shippingaddress->phone}}
</p>
@endif
</p>
@endif

View File

@ -1,13 +1,13 @@
<table width="100%" class="items-table" cellspacing="0" border="0">
<tr class="item-table-heading-row">
<th width="2%" class="item-table-heading text-right pr-20">#</th>
<th width="40%" class="item-table-heading text-left pl-0">Items</th>
<th class="item-table-heading text-right pr-20">Quantity</th>
<th class="item-table-heading pr-20 text-right">Price</th>
<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>
<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($invoice->discount_per_item === 'YES')
<th class="item-table-heading text-right pl-10">Discount</th>
<th class="pl-10 text-right item-table-heading">@lang('pdf_discount_label')</th>
@endif
<th class="item-table-heading text-right">Amount</th>
<th class="text-right item-table-heading">@lang('pdf_amount_label')</th>
</tr>
@php
$index = 1
@ -15,33 +15,33 @@
@foreach ($invoice->items as $item)
<tr class="item-row">
<td
class="item-cell text-right pr-20"
class="pr-20 text-right item-cell"
style="vertical-align: top;"
>
{{$index}}
</td>
<td
class="item-cell text-left pl-0"
class="pl-0 text-left item-cell"
style="vertical-align: top;"
>
<span>{{ $item->name }}</span><br>
<span class="item-description">{!! nl2br(htmlspecialchars($item->description)) !!}</span>
</td>
<td
class="item-cell pr-20 text-right"
class="pr-20 text-right item-cell"
style="vertical-align: top;"
>
{{$item->quantity}}
</td>
<td
class="item-cell text-right pr-20"
class="pr-20 text-right item-cell"
style="vertical-align: top;"
>
{!! format_money_pdf($item->price, $invoice->user->currency) !!}
</td>
@if($invoice->discount_per_item === 'YES')
<td
class="item-cell text-right pl-10"
class="pl-10 text-right item-cell"
style="vertical-align: top;"
>
@if($item->discount_type === 'fixed')
@ -53,7 +53,7 @@
</td>
@endif
<td
class="item-cell text-right"
class="text-right item-cell"
style="vertical-align: top;"
>
{!! format_money_pdf($item->total, $invoice->user->currency) !!}
@ -70,8 +70,8 @@
<div class="total-display-container">
<table width="100%" cellspacing="0px" border="0" class="total-display-table @if(count($invoice->items) > 12) page-break @endif">
<tr>
<td class="border-0 total-table-attribute-label">Subtotal</td>
<td class="border-0 item-cell py-2 total-table-attribute-value">
<td class="border-0 total-table-attribute-label">@lang('pdf_subtotal')</td>
<td class="py-2 border-0 item-cell total-table-attribute-value">
{!! format_money_pdf($invoice->sub_total, $invoice->user->currency) !!}
</td>
</tr>
@ -82,7 +82,7 @@
<td class="border-0 total-table-attribute-label">
{{$labels[$i]}}
</td>
<td class="border-0 item-cell py-2 total-table-attribute-value">
<td class="py-2 border-0 item-cell total-table-attribute-value">
{!! format_money_pdf($taxes[$i], $invoice->user->currency) !!}
</td>
</tr>
@ -93,7 +93,7 @@
<td class="border-0 total-table-attribute-label">
{{$tax->name.' ('.$tax->percent.'%)'}}
</td>
<td class="border-0 item-cell py-2 total-table-attribute-value">
<td class="py-2 border-0 item-cell total-table-attribute-value">
{!! format_money_pdf($tax->amount, $invoice->user->currency) !!}
</td>
</tr>
@ -104,13 +104,13 @@
<tr>
<td class="border-0 total-table-attribute-label">
@if($invoice->discount_type === 'fixed')
Discount
@lang('pdf_discount_label')
@endif
@if($invoice->discount_type === 'percentage')
Discount ({{$invoice->discount}}%)
@lang('pdf_discount_label') ({{$invoice->discount}}%)
@endif
</td>
<td class="border-0 item-cell py-2 total-table-attribute-value" >
<td class="py-2 border-0 item-cell total-table-attribute-value" >
@if($invoice->discount_type === 'fixed')
{!! format_money_pdf($invoice->discount_val, $invoice->user->currency) !!}
@endif
@ -126,10 +126,11 @@
</tr>
<tr>
<td class="border-0 total-border-left total-table-attribute-label">
Total
@lang('pdf_total')
</td>
<td
class="border-0 total-border-right item-cell py-8 total-table-attribute-value text-primary"
class="py-8 border-0 total-border-right item-cell total-table-attribute-value"
style="color: #5851D8"
>
{!! format_money_pdf($invoice->total, $invoice->user->currency)!!}
</td>

View File

@ -1,33 +0,0 @@
@if($payment->user->billingaddress)
<p class="billing-address-label">Received From:</p>
@if($payment->user->billingaddress->name)
<p class="billing-address-name">
{{$payment->user->billingaddress->name}}
</p>
@endif
<p class="billing-address">
@if($payment->user->billingaddress->address_street_1)
{!! nl2br(htmlspecialchars($payment->user->billingaddress->address_street_1)) !!}<br>
@endif
@if($payment->user->billingaddress->address_street_2)
{!! nl2br(htmlspecialchars($payment->user->billingaddress->address_street_2)) !!}<br>
@endif
@if($payment->user->billingaddress->city && $payment->user->billingaddress->city)
{{$payment->user->billingaddress->city}},
@endif
@if($payment->user->billingaddress->state && $payment->user->billingaddress->state)
{{$payment->user->billingaddress->state}}.
@endif
@if($payment->user->billingaddress->zip)
{{$payment->user->billingaddress->zip}}<br>
@endif
@if($payment->user->billingaddress->country && $payment->user->billingaddress->country->name)
{{$payment->user->billingaddress->country->name}}<br>
@endif
@if($payment->user->billingaddress->phone)
<p class="billing-address">
Phone :{{$payment->user->billingaddress->phone}}
</p>
@endif
</p>
@endif

View File

@ -1,30 +0,0 @@
@if($payment->user->company)
<h1 class="company-name"> {{$payment->user->company->name}} </h1>
@endif
@if($company_address)
<p class="company-address">
@if($company_address->addresses[0]['address_street_1'])
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br>
@endif
@if($company_address->addresses[0]['address_street_2'])
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_2'])) !!} <br>
@endif
@if($company_address->addresses[0]['city'])
{{$company_address->addresses[0]['city']}}
@endif
@if($company_address->addresses[0]['state'])
{{$company_address->addresses[0]['state']}}
@endif
@if($company_address->addresses[0]['zip'])
{{$company_address->addresses[0]['zip']}} <br>
@endif
@if($company_address->addresses[0]['country'])
{{$company_address->addresses[0]['country']->name}} <br>
@endif
@if($company_address->addresses[0]['phone'])
{{$company_address->addresses[0]['phone']}} <br>
@endif
</p>
@endif

View File

@ -1,40 +0,0 @@
@if($payment->user->shippingaddress)
<p class="shipping-address-label">Ship To,</p>
@if($payment->user->shippingaddress->name)
<p class="shipping-address-name">
{{$payment->user->shippingaddress->name}}
</p>
@endif
<p class="shipping-address">
@if($payment->user->shippingaddress->address_street_1)
{!! nl2br(htmlspecialchars($payment->user->shippingaddress->address_street_1)) !!}<br>
@endif
@if($payment->user->shippingaddress->address_street_2)
{!! nl2br(htmlspecialchars($payment->user->shippingaddress->address_street_2)) !!}<br>
@endif
@if($payment->user->shippingaddress->city && $payment->user->shippingaddress->city)
{{$payment->user->shippingaddress->city}},
@endif
@if($payment->user->shippingaddress->state && $payment->user->shippingaddress->state)
{{$payment->user->shippingaddress->state}}.
@endif
@if($payment->user->shippingaddress->zip)
{{$payment->user->shippingaddress->zip}}<br>
@endif
@if($payment->user->shippingaddress->country && $payment->user->shippingaddress->country->name)
{{$payment->user->shippingaddress->country->name}}<br>
@endif
@if($payment->user->phone)
<p class="shipping-address">
Phone :{{$payment->user->shippingaddress->phone}}
</p>
@endif
</p>
@endif

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Invoice</title>
<title>Payment</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
@ -20,45 +20,50 @@
}
hr {
color:rgba(0, 0, 0, 0.2);
position: absolute;
top: 80px;
left: 0px;
right: -70px;
width: 100%;
color: rgba(0, 0, 0, 0.2);
border: 0.5px solid #EAF1FB;
}
/* -- Heeader -- */
.header-container {
position: absolute;
/* position: absolute; */
width: 100%;
height: 150px;
padding: 0 30px;
margin-bottom: 50px;
/* height: 150px;
left: 0px;
top: -60px;
top: -60px; */
}
.header-section-left {
/* .header-section-left {
padding-top: 45px;
padding-bottom: 45px;
padding-left: 30px;
display:inline-block;
width:30%;
}
} */
.header-logo {
position: absolute;
/* position: absolute; */
height: 50px;
text-transform: capitalize;
color: #817AE3;
padding-top: 0px;
}
.header-section-right {
.company-address-container {
width: 50%;
text-transform: capitalize;
padding-left: 80px;
margin-bottom: 2px;
}
/* .header-section-right {
display:inline-block;
position: absolute;
right:0;
padding: 15px 30px 15px 0px;
float: right;
}
} */
.header {
font-size: 20px;
@ -79,11 +84,11 @@
}
.company-address{
text-align: left;
font-size: 10px;
/* margin-top: 12px; */
font-size: 12px;
line-height: 15px;
color: #595959;
margin: 0px;
word-wrap: break-word;
}
.content-wrapper {
@ -131,6 +136,7 @@
/* -- Billing -- */
.billing-address-container {
display: block;
float: left;
}
@ -158,7 +164,8 @@
line-height: 15px;
color: #595959;
margin:0px;
width: 160px;
width: 180px;
word-wrap: break-word;
}
/* -- Payment Details -- */
@ -169,7 +176,7 @@
float: right;
width: 40%;
height: 120px;
padding: 20px 30px 0 0;
padding: 5px 30px 0 0;
}
.attribute-label {
@ -208,7 +215,7 @@
}
.content-heading {
margin-top: 120px;
margin-top: 10px;
width: 100%;
text-align: center;
}
@ -262,7 +269,7 @@
<table width="100%">
<tr>
@if($logo)
<td class="header-section-left">
<td width="50%" class="header-section-left">
<img class="header-logo" src="{{ $logo }}" alt="Company Logo">
@else
@if($payment->user->company)
@ -271,8 +278,8 @@
@endif
@endif
</td>
<td class="header-section-right company-details">
@include('app.pdf.payment.partials.company-address')
<td width="50%" class="header-section-right company-details company-address">
{!! $company_address !!}
</td>
</tr>
</table>
@ -281,14 +288,17 @@
<hr style="border: 0.620315px solid #E8E8E8;">
<p class="content-heading">
<span>PAYMENT RECEIPT</span>
<span>@lang('pdf_payment_receipt_label')</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 class="billing-address-container billing-address">
@if($billing_address)
@lang('pdf_received_from')
{!! $billing_address !!}
@endif
</div>
<div class="billing-address-container--right">
</div>
@ -298,20 +308,20 @@
<div class="payment-details-container">
<table width="100%">
<tr>
<td class="attribute-label">Payment Date</td>
<td class="attribute-label">@lang('pdf_payment_date')</td>
<td class="attribute-value"> &nbsp;{{$payment->formattedPaymentDate}}</td>
</tr>
<tr>
<td class="attribute-label">Payment Number</td>
<td class="attribute-label">@lang('pdf_payment_number')</td>
<td class="attribute-value"> &nbsp;{{$payment->payment_number}}</td>
</tr>
<tr>
<td class="attribute-label">Payment Mode</td>
<td class="attribute-label">@lang('pdf_payment_mode')</td>
<td class="attribute-value"> &nbsp;{{$payment->paymentMethod ? $payment->paymentMethod->name : '-'}}</td>
</tr>
@if ($payment->invoice && $payment->invoice->invoice_number)
<tr>
<td class="attribute-label">Invoice</td>
<td class="attribute-label">@lang('pdf_invoice_label')</td>
<td class="attribute-value"> &nbsp;{{$payment->invoice->invoice_number}}</td>
</tr>
@endif
@ -321,7 +331,7 @@
<div style="clear: both;"></div>
</div>
<div class="total-display-box">
<p class="total-display-label">Amount Received</p>
<p class="total-display-label">@lang('pdf_payment_amount_received_label')</p>
<span>{!! format_money_pdf($payment->amount, $payment->user->currency) !!}</span>
</div>
</body>

View File

@ -147,11 +147,11 @@
</tr>
<tr>
<td colspan="2">
<p class="sub-heading-text">EXPENSES REPORT</p>
<p class="sub-heading-text">@lang('pdf_expense_report_label')</p>
</td>
</tr>
</table>
<p class="expenses-title">Expenses</p>
<p class="expenses-title">@lang('pdf_expenses_label')</p>
<div class="expenses-table-container">
<table class="expenses-table">
@foreach ($expenseCategories as $expenseCategory)
@ -182,7 +182,7 @@
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">TOTAL EXPENSE</p>
<p class="report-footer-label">@lang('pdf_total_expenses_label')</p>
</td>
<td>
<p class="report-footer-value">{!! format_money_pdf($totalExpense) !!}</p>

View File

@ -172,7 +172,7 @@
</tr>
<tr>
<td colspan="2">
<p class="sub-heading-text">PROFIT & LOSS REPORT</p>
<p class="sub-heading-text">@lang('pdf_profit_loss_label')</p>
</td>
</tr>
</table>
@ -180,14 +180,14 @@
<table class="income-table">
<tr>
<td>
<p class="income-title">Income</p>
<p class="income-title">@lang("pdf_income_label")</p>
</td>
<td>
<p class="income-amount">{!! format_money_pdf($income) !!}</p>
</td>
</tr>
</table>
<p class="expenses-title">Expenses</p>
<p class="expenses-title">@lang('pdf_expenses_label')</p>
<div class="expenses-table-container">
<table class="expenses-table">
@foreach ($expenseCategories as $expenseCategory)
@ -219,7 +219,7 @@
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">NET PROFIT</p>
<p class="report-footer-label">@lang("pdf_net_profit_label")</p>
</td>
<td>
<p class="report-footer-value">{!! format_money_pdf(($income-$totalExpense)) !!}</p>

View File

@ -150,7 +150,7 @@
</tr>
<tr>
<td colspan="2">
<p class="sub-heading-text text-center">Sales Report: By Customer</p>
<p class="sub-heading-text text-center">@lang('pdf_customer_sales_report')</p>
</td>
</tr>
</table>
@ -191,7 +191,7 @@
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">TOTAL SALES</p>
<p class="report-footer-label">@lang('pdf_total_sales_label')</p>
</td>
<td>
<p class="report-footer-value">

View File

@ -150,12 +150,12 @@
</tr>
<tr>
<td colspan="2">
<p class="sub-heading-text text-center">Sales Report: By Item</p>
<p class="sub-heading-text text-center">@lang('pdf_item_sales_label')</p>
</td>
</tr>
</table>
<p class="sales-items-title">Items</p>
<p class="sales-items-title">@lang('pdf_items_label')</p>
@foreach ($items as $item)
<div class="items-table-container">
<table class="items-table">
@ -190,7 +190,7 @@
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">TOTAL SALES</p>
<p class="report-footer-label">@lang('pdf_total_sales_label')</p>
</td>
<td>
<p class="report-footer-value">

View File

@ -152,11 +152,11 @@
</tr>
<tr>
<td colspan="2">
<p class="sub-heading-text">TAX REPORT</p>
<p class="sub-heading-text">@lang('pdf_tax_report_label')</p>
</td>
</tr>
</table>
<p class="tax-types-title">Tax Types</p>
<p class="tax-types-title">@lang('pdf_tax_types_label')</p>
<div class="tax-table-container">
<table class="tax-table">
@foreach ($taxTypes as $tax)
@ -190,7 +190,7 @@
<table class="report-footer">
<tr>
<td>
<p class="report-footer-label">TOTAL TAX</p>
<p class="report-footer-label">@lang('pdf_total_tax_label')</p>
</td>
<td>
<p class="report-footer-value">

View File

@ -16,14 +16,15 @@
{{-- Subcopy --}}
@slot('subcopy')
@component('mail::subcopy')
You have received a new estimate from <b>{{$data['company']['name']}}</b>
{!! $data['body'] !!}
@component('mail::button', ['url' => url('/customer/estimates/pdf/'.$data['estimate']['unique_hash'])])
View Estimate
@endcomponent
@endcomponent
@endslot
{{-- Footer --}}
@slot('footer')
{{-- Footer --}}
@slot('footer')
@component('mail::footer')
Powered by <a class="footer-link" href="https://craterapp.com">Crater</a>
@endcomponent

View File

@ -1,4 +1,4 @@
@component('mail::layout')
@component('mail::layout')
{{-- Header --}}
@slot('header')
@component('mail::header', ['url' => ''])
@ -16,14 +16,15 @@
{{-- Subcopy --}}
@slot('subcopy')
@component('mail::subcopy')
You have received a new invoice from <b>{{$data['company']['name']}}</b>
{!! $data['body'] !!}
@component('mail::button', ['url' => url('/customer/invoices/pdf/'.$data['invoice']['unique_hash'])])
View Invoice
@endcomponent
@endcomponent
@endslot
{{-- Footer --}}
@slot('footer')
{{-- Footer --}}
@slot('footer')
@component('mail::footer')
Powered by <a class="footer-link" href="https://craterapp.com">Crater</a>
@endcomponent

View File

@ -16,14 +16,15 @@
{{-- Subcopy --}}
@slot('subcopy')
@component('mail::subcopy')
You have received a new payment from <b>{{$data['company']['name']}}</b>
{!! $data['body'] !!}
@component('mail::button', ['url' => url('/payments/pdf/'.$data['payment']['unique_hash'])])
View Payment
@endcomponent
@endcomponent
@endslot
{{-- Footer --}}
@slot('footer')
{{-- Footer --}}
@slot('footer')
@component('mail::footer')
Powered by <a class="footer-link" href="https://craterapp.com">Crater</a>
@endcomponent

View File

@ -1,12 +1,6 @@
@component('mail::message')
# Test Email
# Test Email from Crater
{{ $my_message }}
@component('mail::button', ['url' => ''])
Test
@endcomponent
Thanks,<br>
{{ config('app.name') }}
@endcomponent

View File

@ -1,9 +1,8 @@
@component('mail::message')
# Introduction
{{ $data['user']['name'] }} viewed this Estimate.
@component('mail::button', ['url' => url('/admin/estimates/'.$data['estimate']['id'].'/view')])
Estimate
View Estimate
@endcomponent
Thanks,<br>

View File

@ -1,9 +1,8 @@
@component('mail::message')
# Introduction
{{ $data['user']['name'] }} viewed this Invoice.
@component('mail::button', ['url' => url('/admin/invoices/'.$data['invoice']['id'].'/view')])
Invoice
View Invoice
@endcomponent
Thanks,<br>

View File

@ -0,0 +1 @@
<img{!! $attributeString !!} loading="{{ $loadingAttributeValue }}" src="{{ $media->getUrl($conversion) }}" alt="{{ $media->name }}">

View File

@ -0,0 +1,6 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" x="0"
y="0" viewBox="0 0 {{ $originalImageWidth }} {{ $originalImageHeight }}">
<image width="{{ $originalImageWidth }}" height="{{ $originalImageHeight }}" xlink:href="{{ $tinyImageBase64 }}">
</image>
</svg>

After

Width:  |  Height:  |  Size: 429 B

View File

@ -0,0 +1 @@
<img{!! $attributeString !!} loading="{{ $loadingAttributeValue }}" srcset="{{ $media->getSrcset($conversion) }}" src="{{ $media->getUrl($conversion) }}" width="{{ $width }}">

View File

@ -0,0 +1 @@
<img{!! $attributeString !!} loading="{{ $loadingAttributeValue }}" srcset="{{ $media->getSrcset($conversion) }}" onload="if(!(width=this.getBoundingClientRect().width))return;this.onload=null;this.sizes=Math.ceil(width/window.innerWidth*100)+'vw';" sizes="1px" src="{{ $media->getUrl($conversion) }}" width="{{ $width }}">