mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Translate emails (#2652)
* commit temporal * final translation commit -- added email translations * final translation commit -- removed file for spanish translations * final translation commit -- removed file for spanish translations * added missing translations * method overrided and config files back to default * config files back to default * config files back to default
This commit is contained in:
parent
03ee6b8f91
commit
40f00665b3
|
@ -66,7 +66,7 @@ class SendExpirationAlerts extends Command
|
|||
$asset_data['email_content'] .= '<td><a href="'.config('app.url').'/hardware/'.e($asset->id).'/view">';
|
||||
$asset_data['email_content'] .= $asset->showAssetName().'</a></td><td>'.e($asset->asset_tag).'</td>';
|
||||
$asset_data['email_content'] .= '<td>'.e($asset->warrantee_expires()).'</td>';
|
||||
$asset_data['email_content'] .= '<td>'.$difference.' days</td>';
|
||||
$asset_data['email_content'] .= '<td>'.$difference.' '.trans('mail.days').'</td>';
|
||||
$asset_data['email_content'] .= '<td>'.($asset->supplier ? e($asset->supplier->name) : '').'</td>';
|
||||
$asset_data['email_content'] .= '<td>'.($asset->assigneduser ? e($asset->assigneduser->fullName()) : '').'</td>';
|
||||
$asset_data['email_content'] .= '</tr>';
|
||||
|
@ -104,7 +104,7 @@ class SendExpirationAlerts extends Command
|
|||
\Mail::send('emails.expiring-assets-report', $asset_data, function ($m) {
|
||||
$m->to(explode(',', Setting::getSettings()->alert_email), Setting::getSettings()->site_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Expiring Assets Report');
|
||||
$m->subject(trans('mail.Expiring_Assets_Report'));
|
||||
});
|
||||
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ class SendExpirationAlerts extends Command
|
|||
\Mail::send('emails.expiring-licenses-report', $license_data, function ($m) {
|
||||
$m->to(explode(',', Setting::getSettings()->alert_email), Setting::getSettings()->site_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Expiring Licenses Report');
|
||||
$m->subject(trans('mail.Expiring_Licenses_Report'));
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ class SendInventoryAlerts extends Command
|
|||
\Mail::send('emails.low-inventory', $data, function ($m) {
|
||||
$m->to(explode(',', Setting::getSettings()->alert_email), Setting::getSettings()->site_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Low Inventory Report');
|
||||
$m->subject(trans('mail.Low_Inventory_Report'));
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -366,7 +366,7 @@ class AccessoriesController extends Controller
|
|||
Mail::send('emails.accept-accessory', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Confirm accessory delivery');
|
||||
$m->subject(trans('mail.Confirm_accessory_delivery'));
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -485,7 +485,7 @@ class AccessoriesController extends Controller
|
|||
Mail::send('emails.checkin-asset', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Confirm Accessory Checkin');
|
||||
$m->subject(trans('mail.Confirm_Accessory_Checkin'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -687,7 +687,7 @@ class AssetsController extends Controller
|
|||
Mail::send('emails.checkin-asset', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Confirm Asset Checkin');
|
||||
$m->subject(trans('mail.Confirm_Asset_Checkin'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -37,4 +37,13 @@ class PasswordController extends Controller
|
|||
{
|
||||
$this->middleware('guest');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the e-mail subject line to be used for the reset link email.
|
||||
* Overriding method "getEmailSubject()" from trait "use ResetsPasswords"
|
||||
* @return string
|
||||
*/
|
||||
public function getEmailSubject(){
|
||||
return property_exists($this, 'subject') ? $this->subject : \Lang::get('mail.reset_link');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -366,7 +366,7 @@ class ConsumablesController extends Controller
|
|||
Mail::send('emails.accept-asset', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Confirm consumable delivery');
|
||||
$m->subject(trans('mail.Confirm_consumable_delivery'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ class SettingsController extends Controller
|
|||
Mail::send('emails.test', [], function ($m) {
|
||||
$m->to(config('mail.from.address'), config('mail.from.name'));
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Test Email from Snipe-IT');
|
||||
$m->subject(trans('mail.test_email'));
|
||||
});
|
||||
return 'success';
|
||||
} catch (Exception $e) {
|
||||
|
@ -201,7 +201,7 @@ class SettingsController extends Controller
|
|||
Mail::send(['text' => 'emails.firstadmin'], $data, function ($m) use ($data) {
|
||||
$m->to($data['email'], $data['first_name']);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Your Snipe-IT credentials');
|
||||
$m->subject(trans('mail.your_credentials'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ class UsersController extends Controller
|
|||
Mail::send('emails.send-login', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Welcome ' . $user->first_name);
|
||||
$m->subject(trans('mail.welcome', ['name' => $user->first_name]));
|
||||
});
|
||||
}
|
||||
return redirect::route('users')->with('success', trans('admin/users/message.success.create'));
|
||||
|
@ -211,7 +211,7 @@ class UsersController extends Controller
|
|||
Mail::send('emails.send-login', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Welcome ' . $user->first_name);
|
||||
$m->subject(trans('mail.welcome', ['name' => $user->first_name]));
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -835,7 +835,7 @@ class UsersController extends Controller
|
|||
Mail::send('emails.send-login', $data, function ($m) use ($newuser) {
|
||||
$m->to($newuser['email'], $newuser['first_name'] . ' ' . $newuser['last_name']);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Welcome ' . $newuser['first_name']);
|
||||
$m->subject(trans('mail.welcome', ['name' => $newuser['first_name']]));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@ class ViewAssetsController extends Controller
|
|||
Mail::send('emails.asset-canceled', $data, function ($m) use ($user, $settings) {
|
||||
$m->to(explode(',', $settings->alert_email), $settings->site_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Item Request Canceled');
|
||||
$m->subject(trans('mail.Item_Request_Canceled'));
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ class ViewAssetsController extends Controller
|
|||
Mail::send('emails.asset-requested', $data, function ($m) use ($user, $settings) {
|
||||
$m->to(explode(',', $settings->alert_email), $settings->site_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Item Requested');
|
||||
$m->subject(trans('mail.Item_Requested'));
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -225,7 +225,7 @@ class ViewAssetsController extends Controller
|
|||
Mail::send('emails.asset-requested', $data, function ($m) use ($user, $settings) {
|
||||
$m->to(explode(',', $settings->alert_email), $settings->site_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Asset Requested');
|
||||
$m->subject(trans('mail.asset_requested'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -153,7 +153,7 @@ class Asset extends Depreciable
|
|||
\Mail::send('emails.accept-asset', $data, function ($m) use ($user) {
|
||||
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
|
||||
$m->replyTo(config('mail.reply_to.address'), config('mail.reply_to.name'));
|
||||
$m->subject('Confirm asset delivery');
|
||||
$m->subject(trans('mail.Confirm_asset_delivery'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
0
config/app.php
Normal file → Executable file
0
config/app.php
Normal file → Executable file
0
config/database.php
Normal file → Executable file
0
config/database.php
Normal file → Executable file
0
config/mail.php
Normal file → Executable file
0
config/mail.php
Normal file → Executable file
74
resources/lang/en/mail.php
Normal file
74
resources/lang/en/mail.php
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?php
|
||||
|
||||
return array(
|
||||
'a_user_canceled' => 'A user has canceled an item request on the website',
|
||||
'a_user_requested' => 'A user has requested an item on the website',
|
||||
'accessory_name' => 'Accessory Name:',
|
||||
'additional_notes' => 'Additional Notes:',
|
||||
'admin_has_created' => 'An administrator has created an account for you on the :web website.',
|
||||
'asset' => 'Asset:',
|
||||
'asset_name' => 'Asset Name:',
|
||||
'asset_requested' => 'Asset requested',
|
||||
'asset_tag' => 'Asset Tag:',
|
||||
'assets_warrantee_expiring' => '{1} asset with warrantee expiring in the next 60 days.|[2,Inf] assets with warrantees
|
||||
expiring in the next 60 days.',
|
||||
'assigned_to' => 'Assigned To',
|
||||
'best_regards' => 'Best regards,',
|
||||
'canceled' => 'Canceled:',
|
||||
'checkin_date' => 'Checkin Date:',
|
||||
'checkout_date' => 'Checkout Date:',
|
||||
'click_to_confirm' => 'Please click on the following link to confirm your :web account:',
|
||||
'click_on_the_link_accessory' => 'Please click on the link at the bottom to confirm that you have received the accessory.',
|
||||
'click_on_the_link_asset' => 'Please click on the link at the bottom to confirm that you have received the asset.',
|
||||
'Confirm_Asset_Checkin' => 'Confirm Asset Checkin.',
|
||||
'Confirm_Accessory_Checkin' => 'Confirm Accessory Checkin.',
|
||||
'Confirm_accessory_delivery' => 'Confirm accessory delivery.',
|
||||
'Confirm_asset_delivery' => 'Confirm asset delivery.',
|
||||
'Confirm_consumable_delivery' => 'Confirm consumable delivery.',
|
||||
'current_QTY' => 'Current QTY',
|
||||
'Days' => 'Days',
|
||||
'days' => 'Days',
|
||||
'expecting_checkin_date' => 'Expected Checkin Date:',
|
||||
'expires' => 'Expires',
|
||||
'Expiring_Assets_Report' => 'Expiring Assets Report.',
|
||||
'Expiring_Licenses_Report' => 'Expiring Licenses Report.',
|
||||
'hello' => 'Hello',
|
||||
'hi' => 'Hi',
|
||||
'i_have_read' => 'I have read and agree to the terms of use, and have received this item.',
|
||||
'item' => 'Item:',
|
||||
'items_below_minimum' => '{1} item that is below minimum inventory or will soon be low.|[2,Inf] items that are below minimum
|
||||
inventory or will soon be low.',
|
||||
'Item_Request_Canceled' => 'Item Request Canceled',
|
||||
'Item_Requested' => 'Item Requested',
|
||||
'licenses_expiring' => '{1} license expiring next 60 days.|[2,Inf] licenses expiring next 60 days.',
|
||||
'link_to_update_password' => 'Please click on the following link to update your :web password:',
|
||||
'login_first_admin' => 'Login to your new Snipe-IT installation using the credentials below:',
|
||||
'login' => 'Login:',
|
||||
'Low_Inventory_Report' => 'Low Inventory Report',
|
||||
'min_QTY' => 'Min QTY',
|
||||
'name' => 'Name',
|
||||
'new_item_checked' => 'A new item has been checked out under your name, details are below.',
|
||||
'password' => 'Password:',
|
||||
'password_reset' => 'Password Reset',
|
||||
|
||||
'read_the_terms' => 'Please read the terms of use below.',
|
||||
'read_the_terms_and_click' => 'Please read the terms of use below, and click on the link at the bottom to confirm that you read
|
||||
and agree to the terms of use, and have received the asset.',
|
||||
'requested' => 'Requested:',
|
||||
'reset_link' => 'Your Password Reset Link',
|
||||
'reset_password' => 'Click here to reset your password:',
|
||||
'serial' => 'Serial:',
|
||||
'supplier' => 'Supplier',
|
||||
'tag' => 'Tag',
|
||||
'test_email' => 'Test Email from Snipe-IT',
|
||||
'test_mail_text' => 'This is a test from the Snipe-IT Asset Management System. If you got this, mail is working :)',
|
||||
'the_following_item' => 'The following item has been checked in: ',
|
||||
'There_are' => '{1} There is|[2,Inf] There are',
|
||||
'to_reset' => 'To reset your :web password, complete this form:',
|
||||
'type' => 'Type',
|
||||
'user' => 'User:',
|
||||
'username' => 'Username:',
|
||||
'welcome' => 'Welcome :name',
|
||||
'welcome_to' => 'Welcome to :web!',
|
||||
'your_credentials' => 'Your Snipe-IT credentials',
|
||||
);
|
|
@ -1 +1 @@
|
|||
Click here to reset your password: <a href="{{ $link = url('password/reset', $token).'?email='.urlencode($user->getEmailForPasswordReset()) }}"> {{ $link }} </a>
|
||||
{{ trans('mail.reset_password') }} <a href="{{ $link = url('password/reset', $token).'?email='.urlencode($user->getEmailForPasswordReset()) }}"> {{ $link }} </a>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
@extends('emails/layouts/default')
|
||||
|
||||
@section('content')
|
||||
<p>Hello {{ $first_name }},</p>
|
||||
<p>{{ trans('mail.hello') }} {{ $first_name }},</p>
|
||||
|
||||
|
||||
<p>A new item has been checked out under your name, details are below.</p>
|
||||
<p>{{ trans('mail.new_item_checked') }}</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Accessory Name:
|
||||
{{ trans('mail.accessory_name') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $item_name }}</strong>
|
||||
|
@ -17,7 +17,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Checkout Date:
|
||||
{{ trans('mail.checkout_date') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $checkout_date }}</strong>
|
||||
|
@ -26,7 +26,7 @@
|
|||
@if ($note)
|
||||
<tr>
|
||||
<td>
|
||||
Additional Notes:
|
||||
{{ trans('mail.additional_notes') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $note }}</strong>
|
||||
|
@ -34,18 +34,18 @@
|
|||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
|
||||
<p>
|
||||
@if (($require_acceptance==1) && ($eula!=''))
|
||||
|
||||
Please read the terms of use below, and click on the link at the bottom to confirm that you read and agree to the terms of use, and have received the asset.
|
||||
{{ trans('mail.read_the_terms_and_click') }}
|
||||
|
||||
@elseif (($require_acceptance==1) && ($eula==''))
|
||||
|
||||
Please click on the link at the bottom to confirm that you have received the accessory.
|
||||
{{ trans('mail.click_on_the_link_accessory') }}
|
||||
|
||||
@elseif (($require_acceptance==0) && ($eula!=''))
|
||||
|
||||
Please read the terms of use below.
|
||||
{{ trans('mail.read_the_terms') }}
|
||||
|
||||
@endif
|
||||
|
||||
|
@ -54,7 +54,7 @@
|
|||
<p><blockquote>{!! $eula !!}</blockquote></p>
|
||||
|
||||
@if ($require_acceptance==1)
|
||||
<p><strong><a href="{{ config('app.url') }}/account/accept-asset/{{ $log_id }}">I have read and agree to the terms of use, and have received this item.</a></strong></p>
|
||||
<p><strong><a href="{{ config('app.url') }}/account/accept-asset/{{ $log_id }}">{{ trans('mail.i_have_read') }}</a></strong></p>
|
||||
@endif
|
||||
|
||||
<p>{{ \App\Models\Setting::getSettings()->site_name }}</p>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
@extends('emails/layouts/default')
|
||||
|
||||
@section('content')
|
||||
<p>Hello {{ $first_name }},</p>
|
||||
<p>{{ trans('mail.hello') }} {{ $first_name }},</p>
|
||||
|
||||
|
||||
<p>A new item has been checked out under your name, details are below.</p>
|
||||
<p>{{ trans('mail.new_item_checked') }}</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Asset Name:
|
||||
{{ trans('mail.asset_name') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $item_name }}</strong>
|
||||
|
@ -18,7 +18,7 @@
|
|||
@if (isset($item_tag))
|
||||
<tr>
|
||||
<td>
|
||||
Asset Tag:
|
||||
{{ trans('mail.asset_tag') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $item_tag }}</strong>
|
||||
|
@ -28,7 +28,7 @@
|
|||
@if (isset($item_serial))
|
||||
<tr>
|
||||
<td>
|
||||
Serial:
|
||||
{{ trans('mail.serial') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $item_serial }}</strong>
|
||||
|
@ -37,7 +37,7 @@
|
|||
@endif
|
||||
<tr>
|
||||
<td>
|
||||
Checkout Date:
|
||||
{{ trans('mail.checkout_date') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $checkout_date }}</strong>
|
||||
|
@ -46,7 +46,7 @@
|
|||
@if (isset($expected_checkin))
|
||||
<tr>
|
||||
<td>
|
||||
Expected Checkin Date:
|
||||
{{ trans('mail.expecting_checkin_date') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $expected_checkin }}</strong>
|
||||
|
@ -56,7 +56,7 @@
|
|||
@if (isset($note))
|
||||
<tr>
|
||||
<td>
|
||||
Additional Notes:
|
||||
{{ trans('mail.additional_notes') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $note }}</strong>
|
||||
|
@ -64,27 +64,27 @@
|
|||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
|
||||
<p>
|
||||
@if (($require_acceptance==1) && ($eula!=''))
|
||||
|
||||
Please read the terms of use below, and click on the link at the bottom to confirm that you read and agree to the terms of use, and have received the asset.
|
||||
{{ trans('mail.read_the_terms_and_click') }}
|
||||
|
||||
@elseif (($require_acceptance==1) && ($eula==''))
|
||||
|
||||
Please click on the link at the bottom to confirm that you have received the asset.
|
||||
{{ trans('mail.click_on_the_link_asset') }}
|
||||
|
||||
@elseif (($require_acceptance==0) && ($eula!=''))
|
||||
|
||||
Please read the terms of use below.
|
||||
{{ trans('mail.read_the_terms') }}
|
||||
|
||||
@endif
|
||||
@endif
|
||||
|
||||
</p>
|
||||
|
||||
<p><blockquote>{!! $eula !!}</blockquote></p>
|
||||
|
||||
@if ($require_acceptance==1)
|
||||
<p><strong><a href="{{ config('app.url') }}/account/accept-asset/{{ $log_id }}">I have read and agree to the terms of use, and have received this item.</a></strong></p>
|
||||
<p><strong><a href="{{ config('app.url') }}/account/accept-asset/{{ $log_id }}">{{ trans('mail.i_have_read') }}</a></strong></p>
|
||||
@endif
|
||||
|
||||
<p>{{ \App\Models\Setting::getSettings()->site_name }}</p>
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<p>A user has canceled an item request on the <a href="{{ config('app.url') }}">{{ \App\Models\Setting::getSettings()->site_name }} website</a>. </p>
|
||||
<p>{{ trans('mail.a_user_canceled') }} <a href="{{ config('app.url') }}"> {{ \App\Models\Setting::getSettings()->site_name }}</a>. </p>
|
||||
|
||||
<p>User: <a href="{{ config('app.url') }}/admin/users/{{ $user_id }}/view">{{ $requested_by }}</a><br>
|
||||
Item: <a href="{{ $item_url }}">{{ $item_name }}</a> ({{ $item_type }}) <br>
|
||||
Canceled: {{ $requested_date }}
|
||||
<p>{{ trans('mail.user') }} <a href="{{ config('app.url') }}/admin/users/{{ $user_id }}/view">{{ $requested_by }}</a><br>
|
||||
{{ trans('mail.item') }} <a href="{{ $item_url }}">{{ $item_name }}</a> ({{ $item_type }}) <br>
|
||||
{{ trans('mail.canceled') }} {{ $requested_date }}
|
||||
</p>
|
||||
|
||||
@stop
|
||||
|
|
|
@ -2,14 +2,13 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<p>A user has requested an item on the <a href="{{ config('app.url') }}">{{ \App\Models\Setting::getSettings()->site_name }} website</a>. </p>
|
||||
<p>{{ trans('mail.a_user_requested') }} <a href="{{ config('app.url') }}"> {{ \App\Models\Setting::getSettings()->site_name }}</a>. </p>
|
||||
|
||||
<p>User: <a href="{{ config('app.url') }}/admin/users/{{ $user_id }}/view">{{ $requested_by }}</a><br>
|
||||
Item: <a href="{{ $item_url }}">{{ $item_name }}</a> ({{ $item_type }}) <br>
|
||||
Requested: {{ $requested_date }}
|
||||
<p>{{ trans('mail.user') }} <a href="{{ config('app.url') }}/admin/users/{{ $user_id }}/view">{{ $requested_by }}</a><br>
|
||||
{{ trans('mail.item') }} <a href="{{ $item_url }}">{{ $item_name }}</a> ({{ $item_type }}) <br>
|
||||
{{ trans('mail.requested') }} {{ $requested_date }}
|
||||
@if ($item_quantity > 1)
|
||||
Quantity: {{ $item_quantity}}
|
||||
{{ trans('mail.quantity') }} {{ $item_quantity}}
|
||||
@endif
|
||||
</p>
|
||||
|
||||
@stop
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<h2>Password Reset</h2>
|
||||
<h2>{{ trans('mail.password_reset') }}</h2>
|
||||
|
||||
<div>
|
||||
To reset your {{ \App\Models\Setting::getSettings()->site_name }} password, complete this form: {{ URL::to('password/reset', array($token)) }}.
|
||||
{{ trans('mail.to_reset', ['web' => \App\Models\Setting::getSettings()->site_name]) }} {{ URL::to('password/reset', array($token)) }}.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
@extends('emails/layouts/default')
|
||||
|
||||
@section('content')
|
||||
<p>Hello {{ $first_name }},</p>
|
||||
<p>{{ trans('mail.hello') }} {{ $first_name }},</p>
|
||||
|
||||
|
||||
<p>The following item has been checked in:
|
||||
<p>{{ trans('mail.the_following_item') }}
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="background-color:#ccc">
|
||||
Asset Name:
|
||||
{{ trans('mail.asset_name') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $item_name }}</strong>
|
||||
|
@ -18,7 +18,7 @@
|
|||
@if ($item_tag)
|
||||
<tr>
|
||||
<td style="background-color:#ccc">
|
||||
Asset Tag:
|
||||
{{ trans('mail.asset_tag') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $item_tag }}</strong>
|
||||
|
@ -27,7 +27,7 @@
|
|||
@endif
|
||||
<tr>
|
||||
<td style="background-color:#ccc">
|
||||
Checkin Date:
|
||||
{{ trans('mail.checkin_date') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $checkin_date }}</strong>
|
||||
|
@ -36,7 +36,7 @@
|
|||
@if ($note)
|
||||
<tr>
|
||||
<td style="background-color:#ccc">
|
||||
Additional Notes:
|
||||
{{ trans('mail.additional_notes') }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>{{ $note }}</strong>
|
||||
|
|
|
@ -2,17 +2,16 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<p>There are {{ $count }} asset(s) with warrantees expiring in the next 60 days.</p>
|
||||
|
||||
<p>{{ trans_choice('mail.There_are',$count) }} {{ $count }} {{ trans_choice('mail.assets_warrantee_expiring',$count) }}</p>
|
||||
|
||||
<table style="border: 1px solid black; padding: 5px;" width="100%" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td><strong>Name</strong></td>
|
||||
<td><strong>Tag</strong></td>
|
||||
<td><strong>Expires</strong></td>
|
||||
<td><strong>Days</strong></td>
|
||||
<td><strong>Supplier</strong></td>
|
||||
<td><strong>Assigned To</strong></td>
|
||||
<td><strong>{{ trans('mail.name') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.tag') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.expires') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.Days') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.supplier') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.assigned_to') }}</strong></td>
|
||||
</tr>
|
||||
|
||||
{!! $email_content !!}
|
||||
|
|
|
@ -2,14 +2,13 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<p>There are {{ $count }} license(s) expiring next 60 days.</p>
|
||||
|
||||
<p>{{ trans_choice('mail.There_are',$count) }} {{ $count }} {{ trans_choice('mail.licenses_expiring',$count) }}</p>
|
||||
|
||||
<table style="border: 1px solid black; padding: 5px;" width="100%" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td><strong>Name</strong></td>
|
||||
<td><strong>Expires</strong></td>
|
||||
<td><strong>Days</strong></td>
|
||||
<td><strong>{{ trans('mail.name') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.expires') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.Days') }}</strong></td>
|
||||
</tr>
|
||||
|
||||
{!! $email_content !!}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Hi {{ $first_name }},
|
||||
{{ trans('mail.hi') }} {{ $first_name }},
|
||||
|
||||
Login to your new Snipe-IT installation using the credentials below:
|
||||
{{ trans('mail.login_first_admin') }}
|
||||
|
||||
URL: {{ config('app.url') }}
|
||||
Username: {{ $username }}
|
||||
Password: {{ $password }}
|
||||
{{ trans('mail.username') }} {{ $username }}
|
||||
{{ trans('mail.password') }} {{ $password }}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
@extends('emails/layouts/default')
|
||||
|
||||
@section('content')
|
||||
<p>Hello {{ $user->first_name }},</p>
|
||||
<p>{{ trans('mail.hello') }} {{ $user->first_name }},</p>
|
||||
|
||||
<p>Please click on the following link to update your {{ \App\Models\Setting::getSettings()->site_name }} password:</p>
|
||||
<p>{{ trans('mail.link_to_update_password', ['web' => \App\Models\Setting::getSettings()->site_name]) }} </p>
|
||||
|
||||
<p><a href="{{ $forgotPasswordUrl }}">{{ $forgotPasswordUrl }}</a></p>
|
||||
|
||||
<p>Best regards,</p>
|
||||
<p>{{ trans('mail.best_regards') }}</p>
|
||||
|
||||
<p>{{ \App\Models\Setting::getSettings()->site_name }}</p>
|
||||
@stop
|
||||
|
|
|
@ -2,29 +2,30 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<p>There are {{ $count }} items that are below minimum inventory or will soon be low.</p>
|
||||
<p>{{ trans_choice('mail.There_are',$count) }} {{ $count }} {{ trans_choice('mail.items_below_minimum',$count) }}</p>
|
||||
|
||||
<table style="border: 1px solid black; padding: 5px;" width="100%" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td><strong>{{ trans('mail.name') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.type') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.current_QTY') }}</strong></td>
|
||||
<td><strong>{{ trans('mail.min_QTY') }}</strong></td>
|
||||
</tr>
|
||||
|
||||
@for($i=0; $count > $i; $i++)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ config('app.url') }}/admin/{{ $data[$i]['type'] }}/{{ $data[$i]['id'] }}/view">{{ $data[$i]['name'] }}</a>
|
||||
</td>
|
||||
<td>{{ $data[$i]['type'] }}</td>
|
||||
<td>{{ $data[$i]['remaining'] }}</td>
|
||||
<td>{{ $data[$i]['min_amt'] }}</td>
|
||||
</tr>
|
||||
|
||||
@endfor
|
||||
|
||||
|
||||
<table style="border: 1px solid black; padding: 5px;" width="100%" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td><strong>Name</strong></td>
|
||||
<td><strong>Type</strong></td>
|
||||
<td><strong>Current QTY</strong></td>
|
||||
<td><strong>Min QTY</strong></td>
|
||||
</tr>
|
||||
|
||||
@for($i=0; $count > $i; $i++)
|
||||
<tr>
|
||||
<td><a href="{{ config('app.url') }}/admin/{{ $data[$i]['type'] }}/{{ $data[$i]['id'] }}/view">{{ $data[$i]['name'] }}</a></td>
|
||||
<td>{{ $data[$i]['type'] }}</td>
|
||||
<td>{{ $data[$i]['remaining'] }}</td>
|
||||
<td>{{ $data[$i]['min_amt'] }}</td>
|
||||
</tr>
|
||||
|
||||
@endfor
|
||||
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
|
||||
@stop
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
@extends('emails/layouts/default')
|
||||
|
||||
@section('content')
|
||||
<p>Hello {{ $user->first_name }},</p>
|
||||
<p>{{ trans('mail.hello') }} {{ $user->first_name }},</p>
|
||||
|
||||
<p>Welcome to {{ \App\Models\Setting::getSettings()->site_name }}! Please click on the following link to confirm your {{ \App\Models\Setting::getSettings()->site_name }} account:</p>
|
||||
<p>{{ trans('mail.welcome_to', ['web' => \App\Models\Setting::getSettings()->site_name]) }} {{ trans('mail.click_to_confirm', ['web' => \App\Models\Setting::getSettings()->site_name]) }}</p>
|
||||
|
||||
<p><a href="{{ $activationUrl }}">{{ $activationUrl }}</a></p>
|
||||
|
||||
<p>Best regards,</p>
|
||||
<p>{{ trans('mail.best_regards') }}</p>
|
||||
|
||||
<p>{{ \App\Models\Setting::getSettings()->site_name }}</p>
|
||||
@stop
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
@extends('emails/layouts/default')
|
||||
|
||||
@section('content')
|
||||
<p>Hello {{ $first_name }},</p>
|
||||
<p>{{ trans('mail.hello') }} {{ $first_name }},</p>
|
||||
|
||||
<p>An administrator has created an account for you on the {{ \App\Models\Setting::getSettings()->site_name }} website. </p>
|
||||
<p>{{ trans('mail.admin_has_created', ['web' => \App\Models\Setting::getSettings()->site_name]) }} </p>
|
||||
|
||||
<p>URL: <a href="{{ config('app.url') }}">{{ config('app.url') }}</a><br>
|
||||
Login: {{ $username }} <br>
|
||||
Password: {{ $password }}
|
||||
{{ trans('mail.login') }} {{ $username }} <br>
|
||||
{{ trans('mail.password') }} {{ $password }}
|
||||
</p>
|
||||
|
||||
<p>Best regards,</p>
|
||||
<p>{{ trans('mail.best_regards') }}</p>
|
||||
|
||||
<p>{{ \App\Models\Setting::getSettings()->site_name }}</p>
|
||||
@stop
|
||||
|
|
|
@ -1 +1 @@
|
|||
This is a test from the Snipe-IT Asset Management System. If you got this, mail is working :)
|
||||
{{ trans('mail.test_mail_text') }}
|
||||
|
|
Loading…
Reference in a new issue