diff --git a/app/Mail/SendEstimateMail.php b/app/Mail/SendEstimateMail.php index 7261fdae..a88bc6c4 100644 --- a/app/Mail/SendEstimateMail.php +++ b/app/Mail/SendEstimateMail.php @@ -42,9 +42,15 @@ class SendEstimateMail extends Mailable 'mailable_id' => $this->data['estimate']['id'] ]); +<<<<<<< HEAD $mailContent = $this->from($this->data['from']) ->subject($this->data['subject']) ->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) { $mailContent->attachData( diff --git a/app/Mail/SendInvoiceMail.php b/app/Mail/SendInvoiceMail.php index 81eacd39..39846c52 100644 --- a/app/Mail/SendInvoiceMail.php +++ b/app/Mail/SendInvoiceMail.php @@ -1,6 +1,7 @@ subject($this->data['subject']) ->markdown('emails.send.invoice', ['data', $this->data]); +<<<<<<< HEAD if ($this->pdfData) { $mailContent->attachData( $this->pdfData->output(), @@ -54,5 +56,10 @@ class SendInvoiceMail extends Mailable } return $mailContent; +======= + return $this->from($this->data['from'], config('mail.from.name')) + ->subject($this->data['subject']) + ->markdown('emails.send.invoice', ['data', $this->data]); +>>>>>>> master } } diff --git a/app/Mail/SendPaymentMail.php b/app/Mail/SendPaymentMail.php index 65279a13..ed0e5686 100644 --- a/app/Mail/SendPaymentMail.php +++ b/app/Mail/SendPaymentMail.php @@ -43,6 +43,7 @@ class SendPaymentMail extends Mailable 'mailable_id' => $this->data['payment']['id'] ]); +<<<<<<< HEAD $mailContent = $this->from($this->data['from']) ->subject($this->data['subject']) ->markdown('emails.send.payment', ['data', $this->data]); @@ -55,5 +56,11 @@ class SendPaymentMail extends Mailable } return $mailContent; +======= + return $this->from($this->data['from'], config('mail.from.name')) + ->subject($this->data['subject']) + ->markdown('emails.send.payment', ['data', $this->data]); + +>>>>>>> master } } diff --git a/database/seeders/CurrenciesTableSeeder.php b/database/seeders/CurrenciesTableSeeder.php index be1fe6e5..2abed043 100644 --- a/database/seeders/CurrenciesTableSeeder.php +++ b/database/seeders/CurrenciesTableSeeder.php @@ -550,6 +550,15 @@ class CurrenciesTableSeeder extends Seeder 'thousand_separator' => ',', 'decimal_separator' => '.' ], + [ + 'name' => 'Peruvian Soles', + 'code' => 'PEN', + 'symbol' => 'S/', + 'precision' => '2', + 'thousand_separator' => ',', + 'decimal_separator' => '.' + ], + ]; foreach ($currencies as $currency) { diff --git a/resources/views/app/pdf/invoice/invoice1.blade.php b/resources/views/app/pdf/invoice/invoice1.blade.php index 0dd4bb1b..507b347a 100644 --- a/resources/views/app/pdf/invoice/invoice1.blade.php +++ b/resources/views/app/pdf/invoice/invoice1.blade.php @@ -215,7 +215,6 @@ .total-display-table { border-top: none; - box-sizing: border-box; page-break-inside: avoid; page-break-before: auto; page-break-after: auto; diff --git a/resources/views/app/pdf/invoice/invoice2.blade.php b/resources/views/app/pdf/invoice/invoice2.blade.php index c19c4920..44771b61 100644 --- a/resources/views/app/pdf/invoice/invoice2.blade.php +++ b/resources/views/app/pdf/invoice/invoice2.blade.php @@ -256,7 +256,6 @@ } .total-display-table { - box-sizing: border-box; page-break-inside: avoid; page-break-before: auto; page-break-after: auto; diff --git a/resources/views/app/pdf/invoice/invoice3.blade.php b/resources/views/app/pdf/invoice/invoice3.blade.php index c06bae3e..d6298fa8 100644 --- a/resources/views/app/pdf/invoice/invoice3.blade.php +++ b/resources/views/app/pdf/invoice/invoice3.blade.php @@ -185,7 +185,6 @@ .total-display-table { - box-sizing: border-box; page-break-inside: avoid; page-break-before: auto; page-break-after: auto; diff --git a/resources/views/app/pdf/payment/payment.blade.php b/resources/views/app/pdf/payment/payment.blade.php index f5dd5729..14440412 100644 --- a/resources/views/app/pdf/payment/payment.blade.php +++ b/resources/views/app/pdf/payment/payment.blade.php @@ -1,8 +1,9 @@ +
|
- |
+ |
- {{$payment->user->company->name}}+ |
+ {{$payment->user->company->name}}+ @endif @endif - @endif |
- + | {!! $company_address !!} | {{$payment->paymentMethod ? $payment->paymentMethod->name : '-'}} | @if ($payment->invoice && $payment->invoice->invoice_number) -
| @lang('pdf_invoice_label') | -{{$payment->invoice->invoice_number}} | -||||
| @lang('pdf_invoice_label') | +{{$payment->invoice->invoice_number}} | +
@lang('pdf_payment_amount_received_label')
- {!! format_money_pdf($payment->amount, $payment->user->currency) !!} + {!! format_money_pdf($payment->amount, $payment->user->currency) !!}