Move $app_name into View composer

This commit is contained in:
James Brooks
2015-11-21 22:25:48 +00:00
parent a8dd60063e
commit e806ef0663
13 changed files with 40 additions and 38 deletions
@@ -1,13 +1,13 @@
@extends('layout.emails')
@section('preheader')
{!! trans('cachet.users.email.invite.html-preheader', ['app_name' => Setting::get('app_name')]) !!}
{!! trans('cachet.users.email.invite.html-preheader', ['app_name' => $app_name]) !!}
@stop
@section('content')
{!! trans('cachet.users.email.invite.html', ['app_name' => Setting::get('app_name'), 'link' => $link]) !!}
{!! trans('cachet.users.email.invite.html', ['app_name' => $app_name, 'link' => $link]) !!}
@if(Setting::get('show_support'))
<p>{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}</p>
@if($show_support)
<p>{!! trans('cachet.powered_by', ['app' => $app_name]) !!}</p>
@endif
@stop