mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 20:21:10 -04:00
a
This commit is contained in:
@ -42,9 +42,15 @@ class SendEstimateMail extends Mailable
|
|||||||
'mailable_id' => $this->data['estimate']['id']
|
'mailable_id' => $this->data['estimate']['id']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
$mailContent = $this->from($this->data['from'])
|
$mailContent = $this->from($this->data['from'])
|
||||||
->subject($this->data['subject'])
|
->subject($this->data['subject'])
|
||||||
->markdown('emails.send.estimate', ['data', $this->data]);
|
->markdown('emails.send.estimate', ['data', $this->data]);
|
||||||
|
=======
|
||||||
|
return $this->from($this->data['from'], config('mail.from.name'))
|
||||||
|
->subject($this->data['subject'])
|
||||||
|
->markdown('emails.send.estimate', ['data', $this->data]);
|
||||||
|
>>>>>>> master
|
||||||
|
|
||||||
if ($this->pdfData) {
|
if ($this->pdfData) {
|
||||||
$mailContent->attachData(
|
$mailContent->attachData(
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Crater\Mail;
|
namespace Crater\Mail;
|
||||||
|
|
||||||
|
use Config;
|
||||||
use Crater\Models\EmailLog;
|
use Crater\Models\EmailLog;
|
||||||
use Crater\Models\Invoice;
|
use Crater\Models\Invoice;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
@ -46,6 +47,7 @@ class SendInvoiceMail extends Mailable
|
|||||||
->subject($this->data['subject'])
|
->subject($this->data['subject'])
|
||||||
->markdown('emails.send.invoice', ['data', $this->data]);
|
->markdown('emails.send.invoice', ['data', $this->data]);
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
if ($this->pdfData) {
|
if ($this->pdfData) {
|
||||||
$mailContent->attachData(
|
$mailContent->attachData(
|
||||||
$this->pdfData->output(),
|
$this->pdfData->output(),
|
||||||
@ -54,5 +56,10 @@ class SendInvoiceMail extends Mailable
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $mailContent;
|
return $mailContent;
|
||||||
|
=======
|
||||||
|
return $this->from($this->data['from'], config('mail.from.name'))
|
||||||
|
->subject($this->data['subject'])
|
||||||
|
->markdown('emails.send.invoice', ['data', $this->data]);
|
||||||
|
>>>>>>> master
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,6 +43,7 @@ class SendPaymentMail extends Mailable
|
|||||||
'mailable_id' => $this->data['payment']['id']
|
'mailable_id' => $this->data['payment']['id']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
$mailContent = $this->from($this->data['from'])
|
$mailContent = $this->from($this->data['from'])
|
||||||
->subject($this->data['subject'])
|
->subject($this->data['subject'])
|
||||||
->markdown('emails.send.payment', ['data', $this->data]);
|
->markdown('emails.send.payment', ['data', $this->data]);
|
||||||
@ -55,5 +56,11 @@ class SendPaymentMail extends Mailable
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $mailContent;
|
return $mailContent;
|
||||||
|
=======
|
||||||
|
return $this->from($this->data['from'], config('mail.from.name'))
|
||||||
|
->subject($this->data['subject'])
|
||||||
|
->markdown('emails.send.payment', ['data', $this->data]);
|
||||||
|
|
||||||
|
>>>>>>> master
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -550,6 +550,15 @@ class CurrenciesTableSeeder extends Seeder
|
|||||||
'thousand_separator' => ',',
|
'thousand_separator' => ',',
|
||||||
'decimal_separator' => '.'
|
'decimal_separator' => '.'
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'name' => 'Peruvian Soles',
|
||||||
|
'code' => 'PEN',
|
||||||
|
'symbol' => 'S/',
|
||||||
|
'precision' => '2',
|
||||||
|
'thousand_separator' => ',',
|
||||||
|
'decimal_separator' => '.'
|
||||||
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($currencies as $currency) {
|
foreach ($currencies as $currency) {
|
||||||
|
|||||||
@ -215,7 +215,6 @@
|
|||||||
|
|
||||||
.total-display-table {
|
.total-display-table {
|
||||||
border-top: none;
|
border-top: none;
|
||||||
box-sizing: border-box;
|
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
page-break-before: auto;
|
page-break-before: auto;
|
||||||
page-break-after: auto;
|
page-break-after: auto;
|
||||||
|
|||||||
@ -256,7 +256,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.total-display-table {
|
.total-display-table {
|
||||||
box-sizing: border-box;
|
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
page-break-before: auto;
|
page-break-before: auto;
|
||||||
page-break-after: auto;
|
page-break-after: auto;
|
||||||
|
|||||||
@ -185,7 +185,6 @@
|
|||||||
|
|
||||||
|
|
||||||
.total-display-table {
|
.total-display-table {
|
||||||
box-sizing: border-box;
|
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
page-break-before: auto;
|
page-break-before: auto;
|
||||||
page-break-after: auto;
|
page-break-after: auto;
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Payment</title>
|
<title>Payment</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
/* -- Base -- */
|
/* -- Base -- */
|
||||||
@ -15,6 +16,7 @@
|
|||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
@ -51,12 +53,14 @@
|
|||||||
color: #817AE3;
|
color: #817AE3;
|
||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.company-address-container {
|
.company-address-container {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
padding-left: 80px;
|
padding-left: 80px;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .header-section-right {
|
/* .header-section-right {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -77,7 +81,7 @@
|
|||||||
/* -- Company Address -- */
|
/* -- Company Address -- */
|
||||||
|
|
||||||
.company-details h1 {
|
.company-details h1 {
|
||||||
margin:0;
|
margin: 0;
|
||||||
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
@ -87,7 +91,7 @@
|
|||||||
max-width: 220px;
|
max-width: 220px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.company-address{
|
.company-address {
|
||||||
/* margin-top: 12px; */
|
/* margin-top: 12px; */
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 15px;
|
line-height: 15px;
|
||||||
@ -108,8 +112,8 @@
|
|||||||
/* -- Customer Address -- */
|
/* -- Customer Address -- */
|
||||||
.customer-address-container {
|
.customer-address-container {
|
||||||
display: block;
|
display: block;
|
||||||
float:left;
|
float: left;
|
||||||
width:40%;
|
width: 40%;
|
||||||
padding: 0 0 0 30px;
|
padding: 0 0 0 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,7 +171,7 @@
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
line-height: 15px;
|
line-height: 15px;
|
||||||
color: #595959;
|
color: #595959;
|
||||||
margin:0px;
|
margin: 0px;
|
||||||
width: 180px;
|
width: 180px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
@ -258,7 +262,7 @@
|
|||||||
color: #595959;
|
color: #595959;
|
||||||
}
|
}
|
||||||
|
|
||||||
.total-display-box span {
|
.total-display-box .amount {
|
||||||
float: right;
|
float: right;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@ -268,6 +272,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
@ -336,7 +341,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="total-display-box">
|
<div class="total-display-box">
|
||||||
<p class="total-display-label">@lang('pdf_payment_amount_received_label')</p>
|
<p class="total-display-label">@lang('pdf_payment_amount_received_label')</p>
|
||||||
<span>{!! format_money_pdf($payment->amount, $payment->user->currency) !!}</span>
|
<span class="amount">{!! format_money_pdf($payment->amount, $payment->user->currency) !!}</span>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user