mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
L5 Updates
This commit is contained in:
parent
9d5d3f4277
commit
05b120e449
@ -29,12 +29,12 @@ class HandleInvoiceSent {
|
||||
public function handle(InvoiceSent $event)
|
||||
{
|
||||
$invoice = $event->invoice;
|
||||
|
||||
|
||||
foreach ($invoice->account->users as $user)
|
||||
{
|
||||
if ($user->{'notify_sent'})
|
||||
{
|
||||
$this->userMailer->sendNotification($user, $invoice, 'sent', $payment);
|
||||
$this->userMailer->sendNotification($user, $invoice, 'sent');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,10 @@
|
||||
<?php namespace App\Ninja\Mailers;
|
||||
|
||||
use Utils;
|
||||
use Events;
|
||||
use Event;
|
||||
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Payment;
|
||||
use App\Models\Contact;
|
||||
use App\Models\Invitation;
|
||||
use App\Models\Activity;
|
||||
use App\Events\InvoiceSent;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use Mail;
|
||||
use Utils;
|
||||
use Invoice;
|
||||
use App\Models\Invoice;
|
||||
|
||||
class Mailer
|
||||
{
|
||||
|
@ -28,8 +28,8 @@
|
||||
|
||||
<p>
|
||||
{{ $invitationMessage . trans('texts.confirmation_message') }}<br/>
|
||||
<a href='{{ URL::to("user/confirm/{$user->confirmation_code}") }}'>
|
||||
{{ URL::to("user/confirm/{$user->confirmation_code}") }}
|
||||
<a href='{!! URL::to("user/confirm/{$user->confirmation_code}") !!}'>
|
||||
{!! URL::to("user/confirm/{$user->confirmation_code}")!!}
|
||||
</a>
|
||||
<p/>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{{ trans('texts.confirmation_header') }}
|
||||
|
||||
{{ $invitationMessage . trans('texts.confirmation_message') }}
|
||||
{{ URL::to("user/confirm/{$user->confirmation_code}") }}
|
||||
{!! URL::to("user/confirm/{$user->confirmation_code}") !!}
|
||||
|
||||
{{ trans('texts.email_signature') }}
|
||||
{{ trans('texts.email_from') }}
|
@ -1 +1 @@
|
||||
{{ nl2br($text) }}
|
||||
{!! nl2br($text) !!}
|
||||
|
@ -5,6 +5,6 @@
|
||||
</head>
|
||||
<body>
|
||||
@include('emails.view_action', ['link' => $link, 'entityType' => $entityType])
|
||||
{{ $body }}
|
||||
{!! $body !!}
|
||||
</body>
|
||||
</html>
|
@ -1 +1 @@
|
||||
{{ strip_tags($body) }}
|
||||
{!! strip_tags($body) !!}
|
@ -3,5 +3,5 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>{{ $body }}</body>
|
||||
<body>{!! $body !!}</body>
|
||||
</html>
|
||||
|
@ -1 +1 @@
|
||||
{{ strip_tags($body) }}
|
||||
{!! strip_tags($body) !!}
|
@ -175,13 +175,13 @@ table.table thead .sorting_desc_disabled:after { content: '' !important }
|
||||
@if (!isset($hideHeader) || !$hideHeader)
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li {{ Request::is('*client/quotes') ? 'class="active"' : '' }}>
|
||||
{{ link_to('/client/quotes', trans('texts.quotes') ) }}
|
||||
{!! link_to('/client/quotes', trans('texts.quotes') ) !!}
|
||||
</li>
|
||||
<li {{ Request::is('*client/invoices') ? 'class="active"' : '' }}>
|
||||
{{ link_to('/client/invoices', trans('texts.invoices') ) }}
|
||||
{!! link_to('/client/invoices', trans('texts.invoices') ) !!}
|
||||
</li>
|
||||
<li {{ Request::is('*client/payments') ? 'class="active"' : '' }}>
|
||||
{{ link_to('/client/payments', trans('texts.payments') ) }}
|
||||
{!! link_to('/client/payments', trans('texts.payments') ) !!}
|
||||
</li>
|
||||
</ul>
|
||||
@endif
|
||||
@ -213,16 +213,16 @@ table.table thead .sorting_desc_disabled:after { content: '' !important }
|
||||
<div id="footer-menu" class="menu-wrap">
|
||||
<ul id="menu-footer-menu" class="menu">
|
||||
<li id="menu-item-30" class="menu-item-30">
|
||||
{{ link_to(NINJA_WEB_URL . '/contact', trans('texts.support')) }}
|
||||
{!! link_to(NINJA_WEB_URL . '/contact', trans('texts.support')) !!}
|
||||
</li>
|
||||
<li id="menu-item-31" class="menu-item-31">
|
||||
{{ link_to('#', 'Facebook', ['target' => '_blank', 'onclick' => 'openUrl("https://www.facebook.com/invoiceninja", "/footer/social/facebook")']) }}
|
||||
{!! link_to('#', 'Facebook', ['target' => '_blank', 'onclick' => 'openUrl("https://www.facebook.com/invoiceninja", "/footer/social/facebook")']) !!}
|
||||
</li>
|
||||
<li id="menu-item-32" class="menu-item-32">
|
||||
{{ link_to('#', 'Twitter', ['target' => '_blank', 'onclick' => 'openUrl("https://twitter.com/invoiceninja", "/footer/social/twitter")']) }}
|
||||
{!! link_to('#', 'Twitter', ['target' => '_blank', 'onclick' => 'openUrl("https://twitter.com/invoiceninja", "/footer/social/twitter")']) !!}
|
||||
</li>
|
||||
<li id="menu-item-33" class="menu-item-33">
|
||||
{{ link_to('#', 'GitHub', ['target' => '_blank', 'onclick' => 'openUrl("https://github.com/hillelcoren/invoice-ninja", "/footer/social/github")']) }}
|
||||
{!! link_to('#', 'GitHub', ['target' => '_blank', 'onclick' => 'openUrl("https://github.com/hillelcoren/invoice-ninja", "/footer/social/github")']) !!}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -92,11 +92,11 @@
|
||||
|
||||
<h2>{{ $title }}</h2>
|
||||
|
||||
{{ Datatable::table()
|
||||
{!! Datatable::table()
|
||||
->addColumn($columns)
|
||||
->setUrl(route('api.client.' . $entityType . 's'))
|
||||
->setOptions('sPaginationType', 'bootstrap')
|
||||
->render('datatable') }}
|
||||
->render('datatable') !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user