1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-17 00:22:51 +01:00
invoiceninja/resources/views/accounts/partials/notifications.blade.php

27 lines
1.5 KiB
PHP
Raw Normal View History

{{ Former::populateField('notify_sent', intval(Auth::user()->notify_sent)) }}
{{ Former::populateField('notify_viewed', intval(Auth::user()->notify_viewed)) }}
{{ Former::populateField('notify_paid', intval(Auth::user()->notify_paid)) }}
{{ Former::populateField('notify_approved', intval(Auth::user()->notify_approved)) }}
2018-05-14 19:08:32 +02:00
{{ Former::populateField('only_notify_owned', intval(Auth::user()->only_notify_owned)) }}
<div class="panel panel-default">
2018-05-14 19:08:32 +02:00
<div class="panel-heading">
<h3 class="panel-title">{!! trans('texts.email_notifications') !!}</h3>
</div>
<div class="panel-body">
2018-05-14 19:08:32 +02:00
{!! Former::checkbox('notify_sent')->label('&nbsp;')->text(trans('texts.email_sent'))->value(1) !!}
{!! Former::checkbox('notify_viewed')->label('&nbsp;')->text(trans('texts.email_viewed'))->value(1) !!}
{!! Former::checkbox('notify_paid')->label('&nbsp;')->text(trans('texts.email_paid'))->value(1) !!}
{!! Former::checkbox('notify_approved')->label('&nbsp;')->text(trans('texts.email_approved'))->value(1) !!}
2018-05-14 19:12:25 +02:00
@if (Auth()->user()->account->hasMultipleUsers())
2018-05-14 19:08:32 +02:00
<br/>
{!! Former::radios('only_notify_owned')->radios([
trans('texts.all_invoices') => array('name' => 'only_notify_owned', 'value' => 0),
trans('texts.my_invoices') => array('name' => 'only_notify_owned', 'value' => 1),
])->inline()
->label('send_notifications_for') !!}
@endif
</div>
</div>