Compare commits
261 Commits
v2.0.3
...
v2.0.5-pre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af5c221385 | ||
|
|
feb74806a8 | ||
|
|
14ba5a3b77 | ||
|
|
bc8c8e4225 | ||
|
|
dc64ad55ee | ||
|
|
7e2b4183f6 | ||
|
|
0a843fa856 | ||
|
|
5a687f280f | ||
|
|
4b2e7b9b06 | ||
|
|
1ac41a72ec | ||
|
|
6e117efebd | ||
|
|
17207ddea1 | ||
|
|
130b1b4f4a | ||
|
|
8a7981a4ae | ||
|
|
90513b06f5 | ||
|
|
750fc84592 | ||
|
|
2a43491792 | ||
|
|
f4331f4498 | ||
|
|
a587b72c71 | ||
|
|
0b0b55619b | ||
|
|
a760a7575a | ||
|
|
a86f0e6178 | ||
|
|
577c193661 | ||
|
|
f147a0ff02 | ||
|
|
0745ec1502 | ||
|
|
5bed0482b6 | ||
|
|
9731727095 | ||
|
|
769fb13282 | ||
|
|
a9e1283a17 | ||
|
|
5bb94c4b4e | ||
|
|
67a113cbf4 | ||
|
|
d0eed67c42 | ||
|
|
9cc542aea9 | ||
|
|
725ca04ac8 | ||
|
|
e07dcf2598 | ||
|
|
712e415f4d | ||
|
|
c8551367cb | ||
|
|
5c820d49a6 | ||
|
|
fbd79fc943 | ||
|
|
b39944b2d7 | ||
|
|
e0fccc8fc9 | ||
|
|
76968f7d48 | ||
|
|
5436d54aa0 | ||
|
|
b6f4080b97 | ||
|
|
09bcb137c4 | ||
|
|
8ec6b7e03a | ||
|
|
efddda8665 | ||
|
|
48e6ebe306 | ||
|
|
eb1335405b | ||
|
|
8a1ffb9014 | ||
|
|
ec4b2f114d | ||
|
|
9a5edb3db7 | ||
|
|
f0557f8e1c | ||
|
|
2953b395f2 | ||
|
|
e9050826ec | ||
|
|
20e7888bd9 | ||
|
|
e93b53ad4c | ||
|
|
0a3843393d | ||
|
|
60f403f555 | ||
|
|
cf49920564 | ||
|
|
aaf2c6fbce | ||
|
|
9a63cbbd6c | ||
|
|
0aeab1ab7e | ||
|
|
4c3a5a99df | ||
|
|
60370b9627 | ||
|
|
df986c7cfe | ||
|
|
a3f5dc331d | ||
|
|
af6a3dcccd | ||
|
|
7901b49503 | ||
|
|
8ea40d4e6d | ||
|
|
1bdd5886e6 | ||
|
|
9c71d34761 | ||
|
|
79a69d7633 | ||
|
|
27799dc78a | ||
|
|
4cb19d1aae | ||
|
|
c91113ac95 | ||
|
|
eb5649d0b3 | ||
|
|
f06af97364 | ||
|
|
b1d5812ae2 | ||
|
|
2e044bf0a3 | ||
|
|
bd418d1422 | ||
|
|
440bc1a4b4 | ||
|
|
dba7983189 | ||
|
|
5ff75e7f42 | ||
|
|
69c95f1f73 | ||
|
|
30bbc9ad46 | ||
|
|
059993b064 | ||
|
|
ed612287ee | ||
|
|
ba7b56f5d7 | ||
|
|
5b5d262d3c | ||
|
|
9d6608c8f1 | ||
|
|
28fcd2b8ab | ||
|
|
7087e86ca5 | ||
|
|
bf32e89e0c | ||
|
|
7a306cd0f0 | ||
|
|
95b033bdb8 | ||
|
|
ea4dfdd50c | ||
|
|
0b87357f3b | ||
|
|
9c914e7ef5 | ||
|
|
68e7941c21 | ||
|
|
f761b2e953 | ||
|
|
e03f07bb44 | ||
|
|
0c830fa564 | ||
|
|
8ad220701e | ||
|
|
7087a191c6 | ||
|
|
d1192095d0 | ||
|
|
348a566f89 | ||
|
|
9724d118e6 | ||
|
|
b18be5aee8 | ||
|
|
7dc0039c3b | ||
|
|
218c76592c | ||
|
|
b5b8865b36 | ||
|
|
a896bb0eff | ||
|
|
36a3d655ad | ||
|
|
e12e2f2c7c | ||
|
|
cab5dba7c2 | ||
|
|
b25b3321f9 | ||
|
|
4e3c196664 | ||
|
|
27735a8821 | ||
|
|
6800559596 | ||
|
|
47d6682098 | ||
|
|
def6b4ff50 | ||
|
|
d9ea718d51 | ||
|
|
cf7571d3a6 | ||
|
|
21982a1d51 | ||
|
|
87adb5e0ca | ||
|
|
dfca1386ac | ||
|
|
03e36736c2 | ||
|
|
644cfee086 | ||
|
|
c346dbaff6 | ||
|
|
fc458e571b | ||
|
|
d61983efdf | ||
|
|
07f1c5774e | ||
|
|
f96e4ebd4c | ||
|
|
de0e1627c7 | ||
|
|
46a02b25da | ||
|
|
3095af4a8e | ||
|
|
a90f7218de | ||
|
|
84c12e5f01 | ||
|
|
8f02e0e26f | ||
|
|
50abb87276 | ||
|
|
ca625418fe | ||
|
|
4beb3b024d | ||
|
|
b39e617e96 | ||
|
|
93bd9120cc | ||
|
|
2171e668fe | ||
|
|
103c61d936 | ||
|
|
f4d882606a | ||
|
|
b56aba3cc2 | ||
|
|
377e4c06a1 | ||
|
|
58911cd10e | ||
|
|
9264e7bdc4 | ||
|
|
78143cbd1c | ||
|
|
01f00cfe51 | ||
|
|
b492ac4950 | ||
|
|
2dcb59dd8f | ||
|
|
e7f14f66dc | ||
|
|
d0aab3e2c7 | ||
|
|
58f323721c | ||
|
|
cf767d255d | ||
|
|
daa6943cfc | ||
|
|
a7ea98ad93 | ||
|
|
52a60bd6a5 | ||
|
|
e75cebafeb | ||
|
|
58c497adb7 | ||
|
|
c4f85fb74d | ||
|
|
71b85732b0 | ||
|
|
0db075cb13 | ||
|
|
a6586b5919 | ||
|
|
485b34b66e | ||
|
|
e9e04e86da | ||
|
|
66fd0c2315 | ||
|
|
73d4c65daf | ||
|
|
0287821d44 | ||
|
|
00b93883e4 | ||
|
|
89816d90b4 | ||
|
|
4f74ad077a | ||
|
|
75af50def1 | ||
|
|
ec80c99a48 | ||
|
|
f6b57adda3 | ||
|
|
76dc518846 | ||
|
|
d149fb1a0f | ||
|
|
3ecfff94ef | ||
|
|
d15ef5c79d | ||
|
|
10909a21cd | ||
|
|
141c77fed7 | ||
|
|
9027ed8864 | ||
|
|
4c662b7136 | ||
|
|
9ba2779e5f | ||
|
|
6500af5125 | ||
|
|
ff6fe331f3 | ||
|
|
567cd4847b | ||
|
|
97d0d789f0 | ||
|
|
ba9f00365a | ||
|
|
6f6427a298 | ||
|
|
b943ace21b | ||
|
|
4abe93ae2e | ||
|
|
64c5ea033c | ||
|
|
bedb97c0d8 | ||
|
|
586c04354e | ||
|
|
e13bbb1b6b | ||
|
|
999b237ed7 | ||
|
|
505d46d49f | ||
|
|
515e70b97c | ||
|
|
53b5ec64e0 | ||
|
|
2df8c6a3d1 | ||
|
|
49a20c75ed | ||
|
|
49a8b7b83c | ||
|
|
6bfa5837c5 | ||
|
|
d41c3fde10 | ||
|
|
8fcf907050 | ||
|
|
0cb4b9e00b | ||
|
|
0511b0777f | ||
|
|
f3e7f06dc5 | ||
|
|
0074e1abcc | ||
|
|
3f5dad7789 | ||
|
|
a365cdc2cc | ||
|
|
2aac977d57 | ||
|
|
5aff3d9380 | ||
|
|
a1c6ea798a | ||
|
|
e0bf6ee390 | ||
|
|
93fe9a2799 | ||
|
|
611f59b507 | ||
|
|
899e543173 | ||
|
|
132f17b0af | ||
|
|
5568f7fc5f | ||
|
|
d35f8e6244 | ||
|
|
6a2016685e | ||
|
|
567ad6c3bb | ||
|
|
920708fb6c | ||
|
|
ccc20cbf18 | ||
|
|
fd9cf29459 | ||
|
|
b9e3dd10b4 | ||
|
|
75c073ee51 | ||
|
|
0fcf33ed8c | ||
|
|
0cf3ae95d4 | ||
|
|
78e0af383d | ||
|
|
8bedaf7439 | ||
|
|
032d79593a | ||
|
|
f152841e81 | ||
|
|
e66ea4dcd1 | ||
|
|
c513007b36 | ||
|
|
43af451709 | ||
|
|
9122b49ecc | ||
|
|
35f97cceb7 | ||
|
|
6c3d9048cf | ||
|
|
2507c1aa70 | ||
|
|
679b9f6def | ||
|
|
87cd77b4df | ||
|
|
d235ae19dc | ||
|
|
ed02d7daae | ||
|
|
4af635df28 | ||
|
|
a6d4b30df8 | ||
|
|
4a51ff9ba5 | ||
|
|
22be076504 | ||
|
|
b85e9bb97f | ||
|
|
5eedd7810f | ||
|
|
1ba798a35d | ||
|
|
fc22c3884b | ||
|
|
0dc2a0ffac | ||
|
|
ae91f829e1 |
7
.gitignore
vendored
7
.gitignore
vendored
@@ -10,6 +10,7 @@ composer.phar
|
||||
/app/config/*/session.php
|
||||
/app/config/*/database.php
|
||||
/app/config/*/app.php
|
||||
/app/config/*/ldap.php
|
||||
public/packages/*
|
||||
public/uploads/models/*
|
||||
public/uploads/avatars/*
|
||||
@@ -25,10 +26,6 @@ public/uploads/logo.png
|
||||
public/assets/.siteflow
|
||||
app/config/local/session.php
|
||||
.couscous
|
||||
app/storage/dumps/*
|
||||
tests/_support/_generated/*
|
||||
tests/_data/scenarios
|
||||
nbproject/*
|
||||
app/config/local/ldap.php
|
||||
app/storage/dumps/*
|
||||
app/config/packages/schickling/backup/config.php
|
||||
app/config/app.backup.php
|
||||
|
||||
@@ -33,12 +33,10 @@ RUN a2enmod rewrite
|
||||
|
||||
############ INITIAL APPLICATION SETUP #####################
|
||||
|
||||
COPY docker/app_start.patch /tmp/app_start.patch
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
#Patch bootstrap file
|
||||
RUN patch -p1 < /tmp/app_start.patch
|
||||
#Append to bootstrap file (less brittle than 'patch')
|
||||
RUN sed -i 's/return $app;/$env="production";\nreturn $app;/' bootstrap/start.php
|
||||
|
||||
#copy all configuration files
|
||||
COPY docker/*.php /var/www/html/app/config/production/
|
||||
|
||||
@@ -9,7 +9,7 @@ This is a FOSS project for asset management in IT Operations. Knowing who has wh
|
||||
|
||||
It is built on [Laravel 4.2](http://laravel.com) and uses the [Sentry 2](https://github.com/cartalyst/sentry) package.
|
||||
|
||||
This project is being actively developed and we're [releasing quite frequently](https://github.com/snipe/snipe-it/releases). ([Check out the live demo here](http://snipeitapp.com/demo/).)
|
||||
This project is being actively developed and we're [releasing quite frequently](https://github.com/snipe/snipe-it/releases). ([Check out the live demo here](https://snipeitapp.com/demo/).)
|
||||
|
||||
__This is web-based software__. This means there there is no executable file (aka no .exe files), and it must be run on a web server and accessed through a web browser. It runs on any Mac OSX, flavor of Linux, as well as Windows.
|
||||
|
||||
|
||||
@@ -77,66 +77,80 @@ class AssetImportCommand extends Command {
|
||||
$user_email = '';
|
||||
}
|
||||
|
||||
// Asset Category
|
||||
// User's email
|
||||
if (array_key_exists('2',$row)) {
|
||||
$user_asset_category = trim($row[2]);
|
||||
$user_username = trim($row[2]);
|
||||
} else {
|
||||
$user_username = '';
|
||||
}
|
||||
|
||||
// Asset Name
|
||||
if (array_key_exists('3',$row)) {
|
||||
$user_asset_asset_name = trim($row[3]);
|
||||
} else {
|
||||
$user_asset_asset_name = '';
|
||||
}
|
||||
|
||||
// Asset Category
|
||||
if (array_key_exists('4',$row)) {
|
||||
$user_asset_category = trim($row[4]);
|
||||
} else {
|
||||
$user_asset_category = '';
|
||||
}
|
||||
|
||||
// Asset Name
|
||||
if (array_key_exists('3',$row)) {
|
||||
$user_asset_name = trim($row[3]);
|
||||
if (array_key_exists('5',$row)) {
|
||||
$user_asset_name = trim($row[5]);
|
||||
} else {
|
||||
$user_asset_name = '';
|
||||
}
|
||||
|
||||
// Asset Manufacturer
|
||||
if (array_key_exists('4',$row)) {
|
||||
$user_asset_mfgr = trim($row[4]);
|
||||
if (array_key_exists('6',$row)) {
|
||||
$user_asset_mfgr = trim($row[6]);
|
||||
} else {
|
||||
$user_asset_mfgr = '';
|
||||
}
|
||||
|
||||
// Asset model number
|
||||
if (array_key_exists('5',$row)) {
|
||||
$user_asset_modelno = trim($row[5]);
|
||||
if (array_key_exists('7',$row)) {
|
||||
$user_asset_modelno = trim($row[7]);
|
||||
} else {
|
||||
$user_asset_modelno = '';
|
||||
}
|
||||
|
||||
// Asset serial number
|
||||
if (array_key_exists('6',$row)) {
|
||||
$user_asset_serial = trim($row[6]);
|
||||
if (array_key_exists('8',$row)) {
|
||||
$user_asset_serial = trim($row[8]);
|
||||
} else {
|
||||
$user_asset_serial = '';
|
||||
}
|
||||
|
||||
// Asset tag
|
||||
if (array_key_exists('7',$row)) {
|
||||
$user_asset_tag = trim($row[7]);
|
||||
if (array_key_exists('9',$row)) {
|
||||
$user_asset_tag = trim($row[9]);
|
||||
} else {
|
||||
$user_asset_tag = '';
|
||||
}
|
||||
|
||||
// Asset location
|
||||
if (array_key_exists('8',$row)) {
|
||||
$user_asset_location = trim($row[8]);
|
||||
if (array_key_exists('10',$row)) {
|
||||
$user_asset_location = trim($row[10]);
|
||||
} else {
|
||||
$user_asset_location = '';
|
||||
}
|
||||
|
||||
// Asset notes
|
||||
if (array_key_exists('9',$row)) {
|
||||
$user_asset_notes = trim($row[9]);
|
||||
if (array_key_exists('11',$row)) {
|
||||
$user_asset_notes = trim($row[11]);
|
||||
} else {
|
||||
$user_asset_notes = '';
|
||||
}
|
||||
|
||||
// Asset purchase date
|
||||
if (array_key_exists('10',$row)) {
|
||||
if ($row[10]!='') {
|
||||
$user_asset_purchase_date = date("Y-m-d 00:00:01", strtotime($row[10]));
|
||||
if (array_key_exists('12',$row)) {
|
||||
if ($row[12]!='') {
|
||||
$user_asset_purchase_date = date("Y-m-d 00:00:01", strtotime($row[12]));
|
||||
} else {
|
||||
$user_asset_purchase_date = '';
|
||||
}
|
||||
@@ -145,9 +159,9 @@ class AssetImportCommand extends Command {
|
||||
}
|
||||
|
||||
// Asset purchase cost
|
||||
if (array_key_exists('11',$row)) {
|
||||
if ($row[11]!='') {
|
||||
$user_asset_purchase_cost = trim($row[11]);
|
||||
if (array_key_exists('13',$row)) {
|
||||
if ($row[13]!='') {
|
||||
$user_asset_purchase_cost = trim($row[13]);
|
||||
} else {
|
||||
$user_asset_purchase_cost = '';
|
||||
}
|
||||
@@ -168,46 +182,24 @@ class AssetImportCommand extends Command {
|
||||
$user_username = '';
|
||||
|
||||
} else {
|
||||
$user_email_array = User::generateFormattedNameFromFullName($this->option('email_format'), $user_name);
|
||||
$first_name = $user_email_array['first_name'];
|
||||
$last_name = $user_email_array['last_name'];
|
||||
|
||||
$name = explode(" ", $user_name);
|
||||
$first_name = $name[0];
|
||||
$email_last_name = '';
|
||||
$email_prefix = $first_name;
|
||||
if ($user_email=='') {
|
||||
$user_email = $user_email_array['username'].'@'.Config::get('app.domain');
|
||||
}
|
||||
|
||||
if (!array_key_exists(1, $name)) {
|
||||
$last_name='';
|
||||
$email_last_name = $last_name;
|
||||
$email_prefix = $first_name;
|
||||
if ($user_username=='') {
|
||||
if ($this->option('username_format')=='email') {
|
||||
$user_username = $user_email;
|
||||
} else {
|
||||
$last_name = str_replace($first_name,'',$user_name);
|
||||
|
||||
if ($this->option('email_format')=='filastname') {
|
||||
$email_last_name.=str_replace(' ','',$last_name);
|
||||
$email_prefix = $first_name[0].$email_last_name;
|
||||
|
||||
} elseif ($this->option('email_format')=='firstname.lastname') {
|
||||
$email_last_name.=str_replace(' ','',$last_name);
|
||||
$email_prefix = $first_name.'.'.$email_last_name;
|
||||
|
||||
} elseif ($this->option('email_format')=='firstname') {
|
||||
$email_last_name.=str_replace(' ','',$last_name);
|
||||
$email_prefix = $first_name;
|
||||
}
|
||||
|
||||
|
||||
$user_name_array = User::generateFormattedNameFromFullName($this->option('username_format'), $user_name);
|
||||
$user_username = $user_name_array['username'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$user_username = $email_prefix;
|
||||
|
||||
// Generate an email based on their name if no email address is given
|
||||
if ($user_email=='') {
|
||||
if ($first_name=='Unknown') {
|
||||
$status_id = 7;
|
||||
}
|
||||
$email = strtolower($email_prefix).'@'.$this->option('domain');
|
||||
$user_email = str_replace("'",'',$email);
|
||||
}
|
||||
}
|
||||
|
||||
$this->comment('Full Name: '.$user_name);
|
||||
@@ -229,7 +221,8 @@ class AssetImportCommand extends Command {
|
||||
$this->comment('------------- Action Summary ----------------');
|
||||
|
||||
if ($user_username!='') {
|
||||
if ($user = User::where('username', $user_username)->whereNotNull('username')->first()) {
|
||||
if ($user = User::MatchEmailOrUsername($user_username, $user_email)
|
||||
->whereNotNull('username')->first()) {
|
||||
$this->comment('User '.$user_username.' already exists');
|
||||
} else {
|
||||
// Create the user
|
||||
@@ -238,7 +231,7 @@ class AssetImportCommand extends Command {
|
||||
'last_name' => $last_name,
|
||||
'email' => $user_email,
|
||||
'username' => $user_username,
|
||||
'password' => substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 10),
|
||||
'password' => substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 12),
|
||||
'activated' => true,
|
||||
'permissions' => array(
|
||||
'admin' => 0,
|
||||
@@ -262,24 +255,32 @@ class AssetImportCommand extends Command {
|
||||
if ($location = Location::where('name', $user_asset_location)->first()) {
|
||||
$this->comment('Location '.$user_asset_location.' already exists');
|
||||
} else {
|
||||
$location = new Location();
|
||||
$location->name = e($user_asset_location);
|
||||
$location->address = '';
|
||||
$location->city = '';
|
||||
$location->state = '';
|
||||
$location->country = '';
|
||||
$location->user_id = 1;
|
||||
|
||||
if (!$this->option('testrun')=='true') {
|
||||
$location = new Location();
|
||||
|
||||
if ($location->save()) {
|
||||
$this->comment('Location '.$user_asset_location.' was created');
|
||||
} else {
|
||||
$this->comment('Something went wrong! Location '.$user_asset_location.' was NOT created');
|
||||
if ($user_asset_location!='') {
|
||||
|
||||
|
||||
$location->name = e($user_asset_location);
|
||||
$location->address = '';
|
||||
$location->city = '';
|
||||
$location->state = '';
|
||||
$location->country = '';
|
||||
$location->user_id = 1;
|
||||
|
||||
if (!$this->option('testrun')=='true') {
|
||||
|
||||
if ($location->save()) {
|
||||
$this->comment('Location '.$user_asset_location.' was created');
|
||||
} else {
|
||||
$this->comment('Something went wrong! Location '.$user_asset_location.' was NOT created');
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->comment('Location '.$user_asset_location.' was (not) created - test run only');
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->comment('Location '.$user_asset_location.' was (not) created - test run only');
|
||||
$this->comment('No location given, so none created.');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -339,7 +340,7 @@ class AssetImportCommand extends Command {
|
||||
// Check for the asset match and create it if it doesn't exist
|
||||
|
||||
$asset = new Asset();
|
||||
$asset->name = e($user_asset_name);
|
||||
$asset->name = e($user_asset_asset_name);
|
||||
if ($user_asset_purchase_date!='') {
|
||||
$asset->purchase_date = $user_asset_purchase_date;
|
||||
} else {
|
||||
@@ -400,11 +401,11 @@ class AssetImportCommand extends Command {
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
return array(
|
||||
array('domain', null, InputOption::VALUE_REQUIRED, 'Email domain for generated email addresses.', null),
|
||||
array('email_format', null, InputOption::VALUE_REQUIRED, 'The format of the email addresses that should be generated. Options are firstname.lastname, firstname, filastname', null),
|
||||
array('testrun', null, InputOption::VALUE_REQUIRED, 'Test the output without writing to the database or not.', null),
|
||||
);
|
||||
return array(
|
||||
array('email_format', null, InputOption::VALUE_REQUIRED, 'The format of the email addresses that should be generated. Options are firstname.lastname, firstname, filastname', null),
|
||||
array('username_format', null, InputOption::VALUE_REQUIRED, 'The format of the username that should be generated. Options are firstname.lastname, firstname, filastname, email', null),
|
||||
array('testrun', null, InputOption::VALUE_REQUIRED, 'Test the output without writing to the database or not.', null),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -28,6 +28,19 @@ return array(
|
||||
|
||||
'url' => 'http://snipe-it-laravel.local:8888',
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Organization Domain Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The domain name of the organization, used when generating email addresses
|
||||
| through the import tools.
|
||||
|
|
||||
*/
|
||||
|
||||
'domain' => 'yourserver.com',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
@@ -37,7 +50,7 @@ return array(
|
||||
| to a random, 32 character string, otherwise these encrypted strings
|
||||
| will not be safe. Please do this before deploying an application!
|
||||
|
|
||||
| Run a php artisan key:generate to create a random one
|
||||
| Run a php artisan key:generate --env=staging to create a random one
|
||||
*/
|
||||
|
||||
'key' => 'Change_this_key_or_snipe_will_get_ya',
|
||||
|
||||
@@ -28,6 +28,19 @@ return array(
|
||||
|
||||
'url' => 'https://production.yourserver.com',
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Organization Domain Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The domain name of the organization, used when generating email addresses
|
||||
| through the import tools.
|
||||
|
|
||||
*/
|
||||
|
||||
'domain' => 'yourserver.com',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|
||||
@@ -13,7 +13,7 @@ return array(
|
||||
|
|
||||
*/
|
||||
|
||||
'debug' => true,
|
||||
'debug' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -28,6 +28,19 @@ return array(
|
||||
|
||||
'url' => 'http://staging.yourserver.com',
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Organization Domain Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The domain name of the organization, used when generating email addresses
|
||||
| through the import tools.
|
||||
|
|
||||
*/
|
||||
|
||||
'domain' => 'yourserver.com',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
return array (
|
||||
'app_version' => 'v2.0-125',
|
||||
'hash_version' => 'v2.0-125-g9b04954',
|
||||
'app_version' => 'v2.0-394',
|
||||
'hash_version' => 'v2.0-394-g14ba5a3',
|
||||
);
|
||||
@@ -22,11 +22,14 @@ class AuthController extends BaseController
|
||||
/**
|
||||
* Authenticates a user to LDAP
|
||||
*
|
||||
* @return true if the username and/or password provided are valid
|
||||
* false if the username and/or password provided are invalid
|
||||
*
|
||||
* @param $username
|
||||
* @param $password
|
||||
* @param bool|false $returnUser
|
||||
* @return bool true if the username and/or password provided are valid
|
||||
* false if the username and/or password provided are invalid
|
||||
* array of ldap_attributes if $returnUser is true
|
||||
*/
|
||||
function ldap($username, $password) {
|
||||
function ldap($username, $password, $returnUser = false) {
|
||||
|
||||
$ldaphost = Config::get('ldap.url');
|
||||
$ldaprdn = Config::get('ldap.username');
|
||||
@@ -35,21 +38,23 @@ class AuthController extends BaseController
|
||||
$filterQuery = Config::get('ldap.authentication.filter.query') . $username;
|
||||
$ldapversion = Config::get('ldap.version');
|
||||
|
||||
// Connecting to LDAP
|
||||
$connection = ldap_connect($ldaphost) or die("Could not connect to {$ldaphost}");
|
||||
// Needed for AD
|
||||
ldap_set_option($connection, LDAP_OPT_REFERRALS, 0);
|
||||
ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION,$ldapversion);
|
||||
// Connecting to LDAP
|
||||
$connection = ldap_connect($ldaphost) or die("Could not connect to {$ldaphost}");
|
||||
// Needed for AD
|
||||
ldap_set_option($connection, LDAP_OPT_REFERRALS, 0);
|
||||
ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION,$ldapversion);
|
||||
|
||||
try {
|
||||
if ($connection) {
|
||||
// binding to ldap server
|
||||
$ldapbind = ldap_bind($connection, $ldaprdn, $ldappass);
|
||||
if ( ($results = @ldap_search($connection, $baseDn, $filterQuery)) !==false ) {
|
||||
if ( ($results = @ldap_search($connection, $baseDn, $filterQuery)) != false ) {
|
||||
$entry = ldap_first_entry($connection, $results);
|
||||
if ( ($userDn = @ldap_get_dn($connection, $entry)) !== false ) {
|
||||
if( ($isBound = ldap_bind($connection, $userDn, $password)) == "true") {
|
||||
return true;
|
||||
return $returnUser ?
|
||||
array_change_key_case(ldap_get_attributes($connection, $entry),CASE_LOWER)
|
||||
: true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,6 +66,65 @@ class AuthController extends BaseController
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create user from LDAP attributes
|
||||
*
|
||||
* @param $ldapatttibutes
|
||||
* @return array|bool
|
||||
*/
|
||||
function createUserFromLdap($ldapatttibutes){
|
||||
//Get LDAP attribute config
|
||||
$ldap_result_username = Config::get('ldap.result.username');
|
||||
$ldap_result_emp_num = Config::get('ldap.result.emp.num');
|
||||
$ldap_result_last_name = Config::get('ldap.result.last.name');
|
||||
$ldap_result_first_name = Config::get('ldap.result.first.name');
|
||||
$ldap_result_email = Config::get('ldap.result.email');
|
||||
|
||||
//Get LDAP user data
|
||||
$item = array();
|
||||
$item["username"] = isset( $ldapatttibutes[$ldap_result_username][0] ) ? $ldapatttibutes[$ldap_result_username][0] : "";
|
||||
$item["employee_number"] = isset( $ldapatttibutes[$ldap_result_emp_num][0] ) ? $ldapatttibutes[$ldap_result_emp_num][0] : "";
|
||||
$item["lastname"] = isset( $ldapatttibutes[$ldap_result_last_name][0] ) ? $ldapatttibutes[$ldap_result_last_name][0] : "";
|
||||
$item["firstname"] = isset( $ldapatttibutes[$ldap_result_first_name][0] ) ? $ldapatttibutes[$ldap_result_first_name][0] : "";
|
||||
$item["email"] = isset( $ldapatttibutes[$ldap_result_email][0] ) ? $ldapatttibutes[$ldap_result_email][0] : "" ;
|
||||
|
||||
//create user
|
||||
if(!empty($item["username"]) && !empty($item['email'])) {
|
||||
$pass = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 10);
|
||||
|
||||
$newuser = array(
|
||||
'first_name' => $item["firstname"],
|
||||
'last_name' => $item["lastname"],
|
||||
'username' => $item["username"],
|
||||
'email' => $item["email"],
|
||||
'employee_num' => $item["employee_number"],
|
||||
'password' => $pass,
|
||||
'activated' => 1,
|
||||
'location_id' => null,
|
||||
'permissions' => '{"user":1}',
|
||||
'notes' => 'Imported from LDAP'
|
||||
);
|
||||
|
||||
DB::table('users')->insert($newuser);
|
||||
$updateuser = Sentry::findUserByLogin($item["username"]);
|
||||
|
||||
// Update the user details
|
||||
$updateuser->password = $pass;
|
||||
|
||||
// Update the user
|
||||
$updateuser->save();
|
||||
} else {
|
||||
throw new Cartalyst\Sentry\Users\UserNotFoundException();
|
||||
}
|
||||
|
||||
//$item["note"] = "<strong>created</strong>";
|
||||
$credentials = array(
|
||||
'username' => $item["username"],
|
||||
'password' => $pass,
|
||||
);
|
||||
return $credentials;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Account sign in form processing.
|
||||
@@ -83,7 +147,6 @@ class AuthController extends BaseController
|
||||
// Ooops.. something went wrong
|
||||
return Redirect::back()->withInput()->withErrors($validator);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
/**
|
||||
@@ -93,8 +156,18 @@ class AuthController extends BaseController
|
||||
|
||||
// Try to get the user from the database.
|
||||
$user = (array) DB::table('users')->where('username', Input::get('username'))->first();
|
||||
//If user does not exist and authenticates sucessfully with LDAP we will create it onf the fly and sign in with default permissions
|
||||
if(!$user){
|
||||
if($userattr = $this->ldap(Input::get('username'), Input::get('password'),true) ){
|
||||
LOG::debug("Creating LDAP authenticated user.");
|
||||
$credentials = $this->createUserFromLdap($userattr);
|
||||
Sentry::authenticate($credentials, Input::get('remember-me', 0));
|
||||
|
||||
if ($user && strpos($user["notes"],'LDAP') !== false) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
else if ($user && strpos($user["notes"],'LDAP') !== false) {
|
||||
LOG::debug("Authenticating user against LDAP.");
|
||||
if( $this->ldap(Input::get('username'), Input::get('password')) ) {
|
||||
LOG::debug("valid login");
|
||||
|
||||
@@ -208,11 +208,12 @@ class ViewAssetsController extends AuthorizedController
|
||||
$log = $logaction->logaction($logaction_msg);
|
||||
|
||||
$update_checkout = DB::table('asset_logs')
|
||||
->where('id',$findlog->id)
|
||||
->update(array('accepted_id' => $logaction->id));
|
||||
$affected_asset=$logaction->assetlog;
|
||||
$affected_asset->accepted=$accepted;
|
||||
$affected_asset->save();
|
||||
->where('id',$findlog->id)
|
||||
->update(array('accepted_id' => $logaction->id));
|
||||
|
||||
$affected_asset=$logaction->assetlog;
|
||||
$affected_asset->accepted=$accepted;
|
||||
$affected_asset->save();
|
||||
|
||||
if ($update_checkout ) {
|
||||
return Redirect::to('account/view-assets')->with('success', $return_msg);
|
||||
|
||||
@@ -68,6 +68,20 @@ class AccessoriesController extends AdminController
|
||||
// Update the accessory data
|
||||
$accessory->name = e(Input::get('name'));
|
||||
$accessory->category_id = e(Input::get('category_id'));
|
||||
$accessory->order_number = e(Input::get('order_number'));
|
||||
|
||||
if (e(Input::get('purchase_date')) == '') {
|
||||
$accessory->purchase_date = NULL;
|
||||
} else {
|
||||
$accessory->purchase_date = e(Input::get('purchase_date'));
|
||||
}
|
||||
|
||||
if (e(Input::get('purchase_cost')) == '0.00') {
|
||||
$accessory->purchase_cost = NULL;
|
||||
} else {
|
||||
$accessory->purchase_cost = ParseFloat(e(Input::get('purchase_cost')));
|
||||
}
|
||||
|
||||
$accessory->qty = e(Input::get('qty'));
|
||||
$accessory->user_id = Sentry::getId();
|
||||
|
||||
@@ -136,6 +150,20 @@ class AccessoriesController extends AdminController
|
||||
// Update the accessory data
|
||||
$accessory->name = e(Input::get('name'));
|
||||
$accessory->category_id = e(Input::get('category_id'));
|
||||
$accessory->order_number = e(Input::get('order_number'));
|
||||
|
||||
if (e(Input::get('purchase_date')) == '') {
|
||||
$accessory->purchase_date = NULL;
|
||||
} else {
|
||||
$accessory->purchase_date = e(Input::get('purchase_date'));
|
||||
}
|
||||
|
||||
if (e(Input::get('purchase_cost')) == '0.00') {
|
||||
$accessory->purchase_cost = NULL;
|
||||
} else {
|
||||
$accessory->purchase_cost = ParseFloat(e(Input::get('purchase_cost')));
|
||||
}
|
||||
|
||||
$accessory->qty = e(Input::get('qty'));
|
||||
|
||||
// Was the accessory created?
|
||||
@@ -432,7 +460,7 @@ class AccessoriesController extends AdminController
|
||||
|
||||
|
||||
$log = $logaction->logaction('checkin from');
|
||||
|
||||
|
||||
if(!is_null($accessory_user->assigned_to)) {
|
||||
$user = User::find($accessory_user->assigned_to);
|
||||
}
|
||||
@@ -465,52 +493,77 @@ class AccessoriesController extends AdminController
|
||||
|
||||
public function getDatatable()
|
||||
{
|
||||
$accessories = Accessory::select(array('id','name','qty'))
|
||||
->whereNull('deleted_at')
|
||||
->orderBy('created_at', 'DESC');
|
||||
$accessories = Accessory::with('category')
|
||||
->whereNull('deleted_at');
|
||||
|
||||
$accessories = $accessories->get();
|
||||
if (Input::has('search')) {
|
||||
$accessories = $accessories->TextSearch(Input::get('search'));
|
||||
}
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions',function($accessories)
|
||||
{
|
||||
return '<a href="'.route('checkout/accessory', $accessories->id).'" style="margin-right:5px;" class="btn btn-info btn-sm" '.(($accessories->numRemaining() > 0 ) ? '' : ' disabled').'>'.Lang::get('general.checkout').'</a><a href="'.route('update/accessory', $accessories->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/accessory', $accessories->id).'" data-content="'.Lang::get('admin/accessories/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($accessories->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
});
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
return Datatable::collection($accessories)
|
||||
->addColumn('name',function($accessories)
|
||||
{
|
||||
return link_to('admin/accessories/'.$accessories->id.'/view', $accessories->name);
|
||||
})
|
||||
->addColumn('qty',function($accessories)
|
||||
{
|
||||
return $accessories->qty;
|
||||
})
|
||||
->addColumn('numRemaining',function($accessories)
|
||||
{
|
||||
return $accessories->numRemaining();
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name','qty','numRemaining','actions')
|
||||
->orderColumns('name','qty','numRemaining','actions')
|
||||
->make();
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
|
||||
$allowed_columns = ['name','order_number','purchase_date','purchase_cost'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$accessories = $accessories->orderBy($sort, $order);
|
||||
|
||||
$accessCount = $accessories->count();
|
||||
$accessories = $accessories->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach ($accessories as $accessory) {
|
||||
$actions = '<a href="'.route('checkout/accessory', $accessory->id).'" style="margin-right:5px;" class="btn btn-info btn-sm" '.(($accessory->numRemaining() > 0 ) ? '' : ' disabled').'>'.Lang::get('general.checkout').'</a><a href="'.route('update/accessory', $accessory->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/accessory', $accessory->id).'" data-content="'.Lang::get('admin/accessories/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($accessory->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
|
||||
$rows[] = array(
|
||||
'name' => link_to('admin/accessories/'.$accessory->id.'/view', $accessory->name),
|
||||
'category' => $accessory->category->name,
|
||||
'qty' => $accessory->qty,
|
||||
'order_number' => $accessory->order_number,
|
||||
'purchase_date' => $accessory->purchase_date,
|
||||
'purchase_cost' => $accessory->purchase_cost,
|
||||
'numRemaining' => $accessory->numRemaining(),
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total'=>$accessCount, 'rows'=>$rows);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getDataView($accessoryID)
|
||||
{
|
||||
$accessory = Accessory::find($accessoryID);
|
||||
$accessory_users = $accessory->users;
|
||||
$count = $accessory_users->count();
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions',function($accessory_users){
|
||||
return '<a href="'.route('checkin/accessory', $accessory_users->pivot->id).'" class="btn-flat info">Checkin</a>';
|
||||
});
|
||||
$rows = array();
|
||||
|
||||
return Datatable::collection($accessory_users)
|
||||
->addColumn('name',function($accessory_users)
|
||||
{
|
||||
return link_to('/admin/users/'.$accessory_users->id.'/view', $accessory_users->fullName());
|
||||
})
|
||||
->addColumn($actions)
|
||||
->make();
|
||||
foreach ($accessory_users as $user) {
|
||||
$actions = '<a href="'.route('checkin/accessory', $user->pivot->id).'" class="btn-flat info">Checkin</a>';
|
||||
|
||||
$rows[] = array(
|
||||
'name' => link_to('/admin/users/'.$user->id.'/view', $user->fullName()),
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total'=>$count, 'rows'=>$rows);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
use AdminController;
|
||||
use AssetMaintenance;
|
||||
use Carbon\Carbon;
|
||||
use Datatable;
|
||||
use DB;
|
||||
use Input;
|
||||
use Lang;
|
||||
@@ -20,6 +19,7 @@
|
||||
use TCPDF;
|
||||
use Validator;
|
||||
use View;
|
||||
use Setting;
|
||||
|
||||
class AssetMaintenancesController extends AdminController
|
||||
{
|
||||
@@ -45,71 +45,72 @@
|
||||
* @author Vincent Sposato <vincent.sposato@gmail.com>
|
||||
* @version v1.0
|
||||
*/
|
||||
public function getDatatable()
|
||||
{
|
||||
|
||||
$assetMaintenances = AssetMaintenance::orderBy( 'created_at', 'DESC' )
|
||||
->get();
|
||||
public function getDatatable()
|
||||
{
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn( 'actions', function ( $assetMaintenances ) {
|
||||
|
||||
return '<a href="' . route( 'update/asset_maintenance', $assetMaintenances->id )
|
||||
. '" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'
|
||||
. route( 'delete/asset_maintenance', $assetMaintenances->id ) . '" data-content="'
|
||||
. Lang::get( 'admin/asset_maintenances/message.delete.confirm' ) . '" data-title="'
|
||||
. Lang::get( 'general.delete' ) . ' ' . htmlspecialchars( $assetMaintenances->title )
|
||||
. '?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
} );
|
||||
$maintenances = AssetMaintenance::with('asset','supplier')
|
||||
->whereNull('deleted_at');
|
||||
|
||||
return Datatable::collection( $assetMaintenances )
|
||||
->addColumn( 'asset', function ( $assetMaintenances ) {
|
||||
if (Input::has('search')) {
|
||||
$maintenances = $maintenances->TextSearch(e(Input::get('search')));
|
||||
}
|
||||
|
||||
return link_to( '/hardware/' . $assetMaintenances->asset_id . '/view',
|
||||
mb_strimwidth( $assetMaintenances->asset->name, 0, 50, "..." ) );
|
||||
} )
|
||||
->addColumn( 'supplier', function ( $assetMaintenances ) {
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
return link_to( '/admin/settings/suppliers/' . $assetMaintenances->supplier_id
|
||||
. '/view',
|
||||
mb_strimwidth( $assetMaintenances->supplier->name, 0, 50, "..." ) );
|
||||
} )
|
||||
->addColumn( 'asset_maintenance_type', function ( $assetMaintenances ) {
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
return $assetMaintenances->asset_maintenance_type;
|
||||
} )
|
||||
->addColumn( 'title', function ( $assetMaintenances ) {
|
||||
$allowed_columns = ['id','title','asset_maintenance_time','asset_maintenance_type','cost','start_date','completion_date','notes'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
return link_to( '/admin/asset_maintenances/' . $assetMaintenances->id . '/view',
|
||||
mb_strimwidth( $assetMaintenances->title, 0, 50, "..." ) );
|
||||
} )
|
||||
->addColumn( 'start_date', function ( $assetMaintenances ) {
|
||||
$maintenances->orderBy($sort, $order);
|
||||
|
||||
return $assetMaintenances->start_date;
|
||||
} )
|
||||
->addColumn( 'completion_date', function ( $assetMaintenances ) {
|
||||
$maintenancesCount = $maintenances->count();
|
||||
$maintenances = $maintenances->skip($offset)->take($limit)->get();
|
||||
|
||||
return $assetMaintenances->completion_date;
|
||||
} )
|
||||
->addColumn( 'asset_maintenance_time', function ( $assetMaintenances ) {
|
||||
$rows = array();
|
||||
$settings = Setting::getSettings();
|
||||
|
||||
if (is_null( $assetMaintenances->asset_maintenance_time )) {
|
||||
$assetMaintenances->asset_maintenance_time = Carbon::now()
|
||||
->diffInDays( Carbon::parse( $assetMaintenances->start_date ) );
|
||||
}
|
||||
foreach($maintenances as $maintenance) {
|
||||
|
||||
return intval( $assetMaintenances->asset_maintenance_time );
|
||||
} )
|
||||
->addColumn( 'cost', function ( $assetMaintenances ) {
|
||||
$actions = '<a href="'.route('update/location', $maintenance->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/statuslabel', $maintenance->id).'" data-content="'.Lang::get('admin/asset_maintenances/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($maintenance->title).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
|
||||
return sprintf( Lang::get( 'general.currency' ) . '%01.2f', $assetMaintenances->cost );
|
||||
} )
|
||||
->addColumn( $actions )
|
||||
->searchColumns( 'asset', 'supplier', 'asset_maintenance_type', 'title', 'start_date',
|
||||
'completion_date', 'asset_maintenance_time', 'cost', 'actions' )
|
||||
->orderColumns( 'asset', 'supplier', 'asset_maintenance_type', 'title', 'start_date',
|
||||
'completion_date', 'asset_maintenance_time', 'cost', 'actions' )
|
||||
->make();
|
||||
}
|
||||
if (($maintenance->cost) && ($maintenance->asset->assetloc) && ($maintenance->asset->assetloc->currency!='')) {
|
||||
$maintenance_cost = $maintenance->asset->assetloc->currency.$maintenance->cost;
|
||||
} else {
|
||||
$maintenance_cost = $settings->default_currency.$maintenance->cost;
|
||||
}
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $maintenance->id,
|
||||
'asset_name' => link_to('/hardware/'.$maintenance->asset->id.'/view', $maintenance->asset->showAssetName()) ,
|
||||
'title' => $maintenance->title,
|
||||
'notes' => $maintenance->notes,
|
||||
'supplier' => $maintenance->supplier->name,
|
||||
'cost' => $maintenance_cost,
|
||||
'asset_maintenance_type' => e($maintenance->asset_maintenance_type),
|
||||
'start_date' => $maintenance->start_date,
|
||||
'time' => $maintenance->asset_maintenance_time,
|
||||
'completion_date' => $maintenance->completion_date,
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $maintenancesCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* getCreate
|
||||
@@ -461,4 +462,4 @@
|
||||
return View::make( 'backend/asset_maintenances/view')->with('assetMaintenance', $assetMaintenance);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,10 +23,13 @@ use Config;
|
||||
use Location;
|
||||
use Log;
|
||||
use Mail;
|
||||
use Datatable;
|
||||
use TCPDF;
|
||||
use Slack;
|
||||
use Paginator;
|
||||
use Manufacturer; //for embedded-create
|
||||
use Artisan;
|
||||
use Symfony\Component\Console\Output\BufferedOutput;
|
||||
|
||||
|
||||
class AssetsController extends AdminController
|
||||
{
|
||||
@@ -203,7 +206,6 @@ class AssetsController extends AdminController
|
||||
// Redirect to the asset management page
|
||||
return Redirect::to('hardware')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
|
||||
}
|
||||
|
||||
// Grab the dropdown lists
|
||||
$model_list = modelList();
|
||||
$statuslabel_list = statusLabelList();
|
||||
@@ -413,13 +415,13 @@ class AssetsController extends AdminController
|
||||
if (Input::get('checkout_at')!= date("Y-m-d")){
|
||||
$checkout_at = e(Input::get('checkout_at')).' 00:00:00';
|
||||
} else {
|
||||
$checkout_at = date("Y-m-d h:i:s");
|
||||
$checkout_at = date("Y-m-d H:i:s");
|
||||
}
|
||||
|
||||
if (Input::has('expected_checkin')) {
|
||||
if (Input::get('expected_checkin')!= date("Y-m-d")){
|
||||
$expected_checkin = e(Input::get('expected_checkin')).' 00:00:00';
|
||||
}
|
||||
$expected_checkin = e(Input::get('expected_checkin'));
|
||||
}
|
||||
} else {
|
||||
$expected_checkin = null;
|
||||
}
|
||||
@@ -492,7 +494,7 @@ class AssetsController extends AdminController
|
||||
if (Input::has('checkin_at')) {
|
||||
|
||||
if (!strtotime(Input::get('checkin_at'))) {
|
||||
$logaction->created_at = date("Y-m-d h:i:s");
|
||||
$logaction->created_at = date("Y-m-d H:i:s");
|
||||
} elseif (Input::get('checkin_at')!= date("Y-m-d")) {
|
||||
$logaction->created_at = e(Input::get('checkin_at')).' 00:00:00';
|
||||
}
|
||||
@@ -575,17 +577,34 @@ class AssetsController extends AdminController
|
||||
public function getView($assetId = null)
|
||||
{
|
||||
$asset = Asset::withTrashed()->find($assetId);
|
||||
$settings = Setting::getSettings();
|
||||
|
||||
|
||||
if ($asset->userloc) {
|
||||
$use_currency = $asset->userloc->currency;
|
||||
} elseif ($asset->assetloc) {
|
||||
$use_currency = $asset->assetloc->currency;
|
||||
} else {
|
||||
$default_currency = Setting::first()->default_currency;
|
||||
|
||||
if ($settings->default_currency!='') {
|
||||
$use_currency = $settings->default_currency;
|
||||
} else {
|
||||
$use_currency = Lang::get('general.currency');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (isset($asset->id)) {
|
||||
|
||||
$settings = Setting::getSettings();
|
||||
|
||||
|
||||
$qr_code = (object) array(
|
||||
'display' => $settings->qr_code == '1',
|
||||
'url' => route('qr_code/hardware', $asset->id)
|
||||
);
|
||||
|
||||
return View::make('backend/hardware/view', compact('asset', 'qr_code'));
|
||||
return View::make('backend/hardware/view', compact('asset', 'qr_code','settings'))->with('use_currency',$use_currency);
|
||||
} else {
|
||||
// Prepare the error message
|
||||
$error = Lang::get('admin/hardware/message.does_not_exist', compact('id'));
|
||||
@@ -619,6 +638,102 @@ class AssetsController extends AdminController
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function getImportUpload() {
|
||||
|
||||
$path = app_path().'/private_uploads/imports/assets';
|
||||
$files = array();
|
||||
|
||||
if ($handle = opendir($path)) {
|
||||
|
||||
/* This is the correct way to loop over the directory. */
|
||||
while (false !== ($entry = readdir($handle))) {
|
||||
clearstatcache();
|
||||
if (substr(strrchr($entry,'.'),1)=='csv') {
|
||||
$files[] = array(
|
||||
'filename' => $entry,
|
||||
'filesize' => Setting::fileSizeConvert(filesize($path.'/'.$entry)),
|
||||
'modified' => filemtime($path.'/'.$entry)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
closedir($handle);
|
||||
$files = array_reverse($files);
|
||||
}
|
||||
|
||||
return View::make('backend/hardware/import')->with('files',$files);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function postAPIImportUpload() {
|
||||
|
||||
if (!Config::get('app.lock_passwords')) {
|
||||
|
||||
$rules = array(
|
||||
'files' => 'required'
|
||||
);
|
||||
|
||||
$validator = Validator::make(Input::all(), $rules);
|
||||
|
||||
if ($validator->fails()) {
|
||||
$messages = $validator->messages();
|
||||
$results['error']=$messages->first('files');
|
||||
return $results;
|
||||
|
||||
} else {
|
||||
$files = Input::file('files');
|
||||
$path = app_path().'/private_uploads/imports/assets';
|
||||
$results = array();
|
||||
|
||||
foreach ($files as $file) {
|
||||
|
||||
if (!in_array($file->getMimeType(), array(
|
||||
'application/vnd.ms-excel',
|
||||
'text/csv',
|
||||
'text/plain',
|
||||
'text/comma-separated-values',
|
||||
'text/tsv'))) {
|
||||
$results['error']='File type must be CSV';
|
||||
return $results;
|
||||
}
|
||||
|
||||
$fixed_filename = str_replace(' ','-',$file->getClientOriginalName());
|
||||
$file->move($path, date('Y-m-d-his').'-'.$file->getClientOriginalName());
|
||||
$name = date('Y-m-d-his').'-'.$fixed_filename;
|
||||
$filesize = Setting::fileSizeConvert(filesize($path.'/'.$name));
|
||||
$results[] = compact('name', 'filesize');
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
$results['error']=Lang::get('general.feature_disabled');
|
||||
return $results;
|
||||
}
|
||||
|
||||
return array(
|
||||
'files' => $results
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function getProcessImportFile($filename) {
|
||||
// php artisan asset-import:csv path/to/your/file.csv --domain=yourdomain.com --email_format=firstname.lastname
|
||||
|
||||
$output = new BufferedOutput;
|
||||
Artisan::call('asset-import:csv', ['filename'=> app_path().'/private_uploads/imports/assets/'.$filename, '--email_format'=>'firstname.lastname', '--username_format'=>'firstname.lastname'], $output);
|
||||
$display_output = $output->fetch();
|
||||
$file = app_path().'/private_uploads/imports/assets/'.str_replace('.csv','',$filename).'-output-'.date("Y-m-d-his").'.txt';
|
||||
file_put_contents($file, $display_output);
|
||||
|
||||
|
||||
return View::make('backend/hardware/import-status');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Asset clone.
|
||||
*
|
||||
@@ -725,7 +840,7 @@ class AssetsController extends AdminController
|
||||
$logaction->user_id = Sentry::getUser()->id;
|
||||
$logaction->note = e(Input::get('notes'));
|
||||
$logaction->checkedout_to = NULL;
|
||||
$logaction->created_at = date("Y-m-d h:i:s");
|
||||
$logaction->created_at = date("Y-m-d H:i:s");
|
||||
$logaction->filename = $filename;
|
||||
$log = $logaction->logaction('uploaded');
|
||||
} else {
|
||||
@@ -805,9 +920,23 @@ class AssetsController extends AdminController
|
||||
|
||||
// the asset is valid
|
||||
if (isset($asset->id)) {
|
||||
$log = Actionlog::find($fileId);
|
||||
$file = $log->get_src();
|
||||
return Response::download($file);
|
||||
|
||||
$log = Actionlog::find($fileId);
|
||||
$file = $log->get_src();
|
||||
|
||||
$filetype = Asset::checkUploadIsImage($file);
|
||||
|
||||
if ($filetype) {
|
||||
|
||||
$contents = file_get_contents($file);
|
||||
$response = Response::make($contents);
|
||||
$response->header('Content-Type', $filetype);
|
||||
return $response;
|
||||
|
||||
} else {
|
||||
return Response::download($file);
|
||||
}
|
||||
|
||||
} else {
|
||||
// Prepare the error message
|
||||
$error = Lang::get('admin/hardware/message.does_not_exist', compact('id'));
|
||||
@@ -936,7 +1065,7 @@ class AssetsController extends AdminController
|
||||
$logaction = new Actionlog();
|
||||
$logaction->asset_id = $key;
|
||||
$logaction->asset_type = 'hardware';
|
||||
$logaction->created_at = date("Y-m-d h:i:s");
|
||||
$logaction->created_at = date("Y-m-d H:i:s");
|
||||
|
||||
if (Input::has('rtd_location_id')) {
|
||||
$logaction->location_id = e(Input::get('rtd_location_id'));
|
||||
@@ -967,8 +1096,29 @@ class AssetsController extends AdminController
|
||||
public function getDatatable($status = null)
|
||||
{
|
||||
|
||||
$assets = Asset::with('model','assigneduser','assigneduser.userloc','assetstatus','defaultLoc','assetlog','model','model.category')->Hardware()->select(array('id', 'name','model_id','assigned_to','asset_tag','serial','status_id','purchase_date','deleted_at','rtd_location_id','notes','order_number','mac_address','warranty_months'));
|
||||
|
||||
$assets = Asset::with('model','assigneduser','assigneduser.userloc','assetstatus','defaultLoc','assetlog','model','model.category','assetstatus','assetloc')
|
||||
->Hardware();
|
||||
|
||||
if (Input::has('search')) {
|
||||
$assets = $assets->TextSearch(Input::get('search'));
|
||||
}
|
||||
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
if (Input::has('order_number')) {
|
||||
$assets->where('order_number','=',e(Input::get('order_number')));
|
||||
}
|
||||
|
||||
switch ($status) {
|
||||
case 'Deleted':
|
||||
@@ -995,127 +1145,88 @@ class AssetsController extends AdminController
|
||||
|
||||
}
|
||||
|
||||
if (Input::has('order_number')) {
|
||||
$assets->where('order_number','=',e(Input::get('order_number')));
|
||||
$allowed_columns = [
|
||||
'id',
|
||||
'name',
|
||||
'asset_tag',
|
||||
'serial',
|
||||
'model',
|
||||
'last_checkout',
|
||||
'category',
|
||||
'notes',
|
||||
'expected_checkin',
|
||||
'order_number',
|
||||
'location'
|
||||
];
|
||||
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'asset_tag';
|
||||
|
||||
switch ($sort)
|
||||
{
|
||||
case 'model':
|
||||
$assets = $assets->OrderModels($order);
|
||||
break;
|
||||
case 'category':
|
||||
$assets = $assets->OrderCategory($order);
|
||||
break;
|
||||
case 'location':
|
||||
$assets = $assets->OrderLocation($order);
|
||||
break;
|
||||
case 'status':
|
||||
$assets = $assets->OrderCategory($order);
|
||||
break;
|
||||
default:
|
||||
$assets = $assets->orderBy($sort, $order);
|
||||
break;
|
||||
}
|
||||
|
||||
$assetCount = $assets->count();
|
||||
$assets = $assets->skip($offset)->take($limit)->get();
|
||||
|
||||
|
||||
$rows = array();
|
||||
foreach ($assets as $asset) {
|
||||
$inout = '';
|
||||
$actions = '';
|
||||
if ($asset->deleted_at=='') {
|
||||
$actions = '<div style=" white-space: nowrap;"><a href="'.route('clone/hardware', $asset->id).'" class="btn btn-info btn-sm" title="Clone asset"><i class="fa fa-files-o"></i></a> <a href="'.route('update/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> <a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/hardware', $asset->id).'" data-content="'.Lang::get('admin/hardware/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($asset->asset_tag).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></div>';
|
||||
} elseif ($asset->model->deleted_at=='') {
|
||||
$actions = '<a href="'.route('restore/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
|
||||
}
|
||||
|
||||
if ($asset->assetstatus) {
|
||||
if ($asset->assetstatus->deployable != 0) {
|
||||
if (($asset->assigned_to !='') && ($asset->assigned_to > 0)) {
|
||||
$inout = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
|
||||
} else {
|
||||
$inout = '<a href="'.route('checkout/hardware', $asset->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$rows[] = array(
|
||||
'checkbox' =>'<div class="text-center"><input type="checkbox" name="edit_asset['.$asset->id.']" class="one_required"></div>',
|
||||
'id' => $asset->id,
|
||||
'name' => '<a title="'.$asset->name.'" href="hardware/'.$asset->id.'/view">'.$asset->name.'</a>',
|
||||
'asset_tag' => '<a title="'.$asset->asset_tag.'" href="hardware/'.$asset->id.'/view">'.$asset->asset_tag.'</a>',
|
||||
'serial' => $asset->serial,
|
||||
'model' => ($asset->model) ? $asset->model->name : 'No model',
|
||||
'status' => ($asset->assigneduser) ? link_to('../admin/users/'.$asset->assigned_to.'/view', $asset->assigneduser->fullName()) : (($asset->assetstatus) ? $asset->assetstatus->name : ''),
|
||||
'location' => (($asset->assigneduser) && ($asset->assigneduser->userloc!='')) ? link_to('admin/settings/locations/'.$asset->assigneduser->userloc->id.'/edit', $asset->assigneduser->userloc->name) : (($asset->defaultLoc!='') ? link_to('admin/settings/locations/'.$asset->defaultLoc->id.'/edit', $asset->defaultLoc->name) : ''),
|
||||
'category' => (($asset->model) && ($asset->model->category)) ? $asset->model->category->name : '',
|
||||
'eol' => ($asset->eol_date()) ? $asset->eol_date() : '',
|
||||
'notes' => $asset->notes,
|
||||
'order_number' => ($asset->order_number!='') ? '<a href="../hardware/?order_number='.$asset->order_number.'">'.$asset->order_number.'</a>' : '',
|
||||
'last_checkout' => ($asset->last_checkout!='') ? $asset->last_checkout : '',
|
||||
'expected_checkin' => ($asset->expected_checkin!='') ? $asset->expected_checkin : '',
|
||||
'change' => ($inout) ? $inout : '',
|
||||
'actions' => ($actions) ? $actions : ''
|
||||
);
|
||||
}
|
||||
|
||||
$assets = $assets->orderBy('asset_tag', 'ASC')->get();
|
||||
$data = array('total'=>$assetCount, 'rows'=>$rows);
|
||||
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions', function ($assets)
|
||||
{
|
||||
if ($assets->deleted_at=='') {
|
||||
return '<div style=" white-space: nowrap;"><a href="'.route('clone/hardware', $assets->id).'" class="btn btn-info btn-sm" title="Clone asset"><i class="fa fa-files-o"></i></a> <a href="'.route('update/hardware', $assets->id).'" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> <a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/hardware', $assets->id).'" data-content="'.Lang::get('admin/hardware/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($assets->asset_tag).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></div>';
|
||||
} elseif ($assets->deleted_at!='') {
|
||||
return '<a href="'.route('restore/hardware', $assets->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$inout = new \Chumper\Datatable\Columns\FunctionColumn('inout', function ($assets)
|
||||
{
|
||||
|
||||
if ($assets->assetstatus) {
|
||||
|
||||
if ($assets->assetstatus->deployable != 0) {
|
||||
if (($assets->assigned_to !='') && ($assets->assigned_to > 0)) {
|
||||
return '<a href="'.route('checkin/hardware', $assets->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
|
||||
} else {
|
||||
return '<a href="'.route('checkout/hardware', $assets->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
return Datatable::collection($assets)
|
||||
->addColumn('',function($assets)
|
||||
{
|
||||
return '<div class="text-center"><input type="checkbox" name="edit_asset['.$assets->id.']" class="one_required"></div>';
|
||||
})
|
||||
->addColumn('name',function($assets)
|
||||
{
|
||||
return '<a title="'.$assets->name.'" href="hardware/'.$assets->id.'/view">'.$assets->name.'</a>';
|
||||
})
|
||||
->addColumn('asset_tag',function($assets)
|
||||
{
|
||||
return '<a title="'.$assets->asset_tag.'" href="hardware/'.$assets->id.'/view">'.$assets->asset_tag.'</a>';
|
||||
})
|
||||
|
||||
->showColumns('serial')
|
||||
|
||||
->addColumn('model',function($assets)
|
||||
{
|
||||
if ($assets->model) {
|
||||
return $assets->model->name;
|
||||
} else {
|
||||
return 'No model';
|
||||
}
|
||||
})
|
||||
|
||||
->addColumn('status',function($assets)
|
||||
{
|
||||
if ($assets->assigned_to!='') {
|
||||
return link_to(Config::get('app.url').'/admin/users/'.$assets->assigned_to.'/view', $assets->assigneduser->fullName());
|
||||
} else {
|
||||
if ($assets->assetstatus) {
|
||||
return $assets->assetstatus->name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
->addColumn('location',function($assets)
|
||||
{
|
||||
if ($assets->assigned_to && ($assets->assigneduser->userloc!='')) {
|
||||
return link_to('admin/settings/locations/'.$assets->assigneduser->userloc->id.'/edit', $assets->assigneduser->userloc->name);
|
||||
} elseif ($assets->defaultLoc){
|
||||
return link_to('admin/settings/locations/'.$assets->defaultLoc->id.'/edit', $assets->defaultLoc->name);
|
||||
}
|
||||
})
|
||||
->addColumn('category',function($assets)
|
||||
{
|
||||
if (isset($assets->model->category)) {
|
||||
return $assets->model->category->name;
|
||||
} else {
|
||||
return 'No category';
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
->addColumn('eol',function($assets)
|
||||
{
|
||||
return $assets->eol_date();
|
||||
})
|
||||
|
||||
->addColumn('notes',function($assets)
|
||||
{
|
||||
return $assets->notes;
|
||||
})
|
||||
->addColumn('mac_address',function($assets)
|
||||
{
|
||||
return $assets->mac_address;
|
||||
})
|
||||
|
||||
->addColumn('order_number',function($assets)
|
||||
{
|
||||
return '<a href="../hardware/?order_number='.$assets->order_number.'">'.$assets->order_number.'';
|
||||
})
|
||||
|
||||
|
||||
->addColumn('checkout_date',function($assets)
|
||||
{
|
||||
if (($assets->assigned_to!='') && ($assets->assetlog->first())) {
|
||||
return $assets->assetlog->first()->created_at->format('Y-m-d');
|
||||
}
|
||||
|
||||
})
|
||||
->addColumn($inout)
|
||||
->addColumn($actions)
|
||||
->searchColumns('name', 'asset_tag', 'serial', 'model', 'status','location','eol','checkout_date', 'inout','category','notes','order_number','mac_address')
|
||||
->orderColumns('name', 'asset_tag', 'serial', 'model', 'status','location','eol','notes','order_number','checkout_date', 'inout','mac_address')
|
||||
->make();
|
||||
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ use Sentry;
|
||||
use Str;
|
||||
use Validator;
|
||||
use View;
|
||||
use Datatable;
|
||||
|
||||
class CategoriesController extends AdminController
|
||||
{
|
||||
@@ -218,61 +217,120 @@ class CategoriesController extends AdminController
|
||||
public function getDatatable()
|
||||
{
|
||||
// Grab all the categories
|
||||
$categories = Category::orderBy('created_at', 'DESC')->get();
|
||||
$categories = Category::with('assets', 'accessories');
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions', function($categories) {
|
||||
return '<a href="'.route('update/category', $categories->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/category', $categories->id).'" data-content="'.Lang::get('admin/categories/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($categories->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
});
|
||||
if (Input::has('search')) {
|
||||
$categories = $categories->TextSearch(e(Input::get('search')));
|
||||
}
|
||||
|
||||
return Datatable::collection($categories)
|
||||
->showColumns('name')
|
||||
->addColumn('category_type', function($categories) {
|
||||
return ucwords($categories->category_type);
|
||||
})
|
||||
->addColumn('count', function($categories) {
|
||||
return ($categories->category_type=='asset') ? link_to('/admin/settings/categories/'.$categories->id.'/view', $categories->assetscount()) : $categories->accessoriescount();
|
||||
})
|
||||
->addColumn('acceptance', function($categories) {
|
||||
return ($categories->require_acceptance=='1') ? '<i class="fa fa-check" style="margin-right:50%;margin-left:50%;"></i>' : '';
|
||||
})
|
||||
->addColumn('eula', function($categories) {
|
||||
return ($categories->getEula()) ? '<i class="fa fa-check" style="margin-right:50%;margin-left:50%;"></i></a>' : '';
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name','category_type','count','acceptance','eula','actions')
|
||||
->orderColumns('name','category_type','count','acceptance','eula','actions')
|
||||
->make();
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
|
||||
$allowed_columns = ['id','name','category_type'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$categories = $categories->orderBy($sort, $order);
|
||||
|
||||
$catCount = $categories->count();
|
||||
$categories = $categories->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach ($categories as $category) {
|
||||
$actions = '<a href="'.route('update/category', $category->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/category', $category->id).'" data-content="'.Lang::get('admin/categories/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($category->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $category->id,
|
||||
'name' => link_to('/admin/settings/categories/'.$category->id.'/view', $category->name) ,
|
||||
'category_type' => ucwords($category->category_type),
|
||||
'count' => ($category->category_type=='asset') ? $category->assetscount() : $category->accessoriescount(),
|
||||
'acceptance' => ($category->require_acceptance=='1') ? '<i class="fa fa-check"></i>' : '',
|
||||
//EULA is still not working correctly
|
||||
'eula' => ($category->getEula()) ? '<i class="fa fa-check"></i>' : '',
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $catCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getDataView($categoryID) {
|
||||
$category = Category::find($categoryID);
|
||||
$categoryassets = $category->assets;
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions', function ($categoryassets)
|
||||
{
|
||||
if (($categoryassets->assigned_to !='') && ($categoryassets->assigned_to > 0)) {
|
||||
return '<a href="'.route('checkin/hardware', $categoryassets->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
|
||||
$category = Category::find($categoryID);
|
||||
$category_assets = $category->assets;
|
||||
|
||||
if (Input::has('search')) {
|
||||
$category_assets = $category_assets->TextSearch(e(Input::get('search')));
|
||||
}
|
||||
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
|
||||
$allowed_columns = ['id','name','serial','asset_tag'];
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
$count = $category_assets->count();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach ($category_assets as $asset) {
|
||||
|
||||
$actions = '';
|
||||
if ($asset->deleted_at=='') {
|
||||
$actions = '<div style=" white-space: nowrap;"><a href="'.route('clone/hardware', $asset->id).'" class="btn btn-info btn-sm" title="Clone asset"><i class="fa fa-files-o"></i></a> <a href="'.route('update/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> <a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/hardware', $asset->id).'" data-content="'.Lang::get('admin/hardware/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($asset->asset_tag).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></div>';
|
||||
} elseif ($asset->deleted_at!='') {
|
||||
$actions = '<a href="'.route('restore/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
|
||||
}
|
||||
|
||||
if ($asset->assetstatus) {
|
||||
if ($asset->assetstatus->deployable != 0) {
|
||||
if (($asset->assigned_to !='') && ($asset->assigned_to > 0)) {
|
||||
$inout = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
|
||||
} else {
|
||||
return '<a href="'.route('checkout/hardware', $categoryassets->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
|
||||
$inout = '<a href="'.route('checkout/hardware', $asset->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
|
||||
}
|
||||
});
|
||||
|
||||
return Datatable::collection($categoryassets)
|
||||
->addColumn('name', function ($categoryassets) {
|
||||
return link_to('/hardware/'.$categoryassets->id.'/view', $categoryassets->name);
|
||||
})
|
||||
->addColumn('asset_tag', function ($categoryassets) {
|
||||
return link_to('/hardware/'.$categoryassets->id.'/view', $categoryassets->asset_tag);
|
||||
})
|
||||
->addColumn('assigned_to', function ($categoryassets) {
|
||||
if ($categoryassets->assigned_to) {
|
||||
return link_to('/admin/users/'.$categoryassets->assigned_to.'/view', $categoryassets->assigneduser->fullName());
|
||||
}
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name','asset_tag','assigned_to','actions')
|
||||
->orderColumns('name','asset_tag','assigned_to','actions')
|
||||
->make();
|
||||
}
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $asset->id,
|
||||
'name' => link_to('/hardware/'.$asset->id.'/view', $asset->showAssetName()),
|
||||
'model' => $asset->model->name,
|
||||
'asset_tag' => $asset->asset_tag,
|
||||
'serial' => $asset->serial,
|
||||
'assigned_to' => ($asset->assigneduser) ? link_to('/admin/users/'.$asset->assigneduser->id.'/view', $asset->assigneduser->fullName()): '',
|
||||
'change' => $inout,
|
||||
'actions' => $actions,
|
||||
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $count, 'rows' => $rows);
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -66,10 +66,24 @@ class ConsumablesController extends AdminController
|
||||
else{
|
||||
|
||||
// Update the consumable data
|
||||
$consumable->name = e(Input::get('name'));
|
||||
$consumable->category_id = e(Input::get('category_id'));
|
||||
$consumable->qty = e(Input::get('qty'));
|
||||
$consumable->user_id = Sentry::getId();
|
||||
$consumable->name = e(Input::get('name'));
|
||||
$consumable->category_id = e(Input::get('category_id'));
|
||||
$consumable->order_number = e(Input::get('order_number'));
|
||||
|
||||
if (e(Input::get('purchase_date')) == '') {
|
||||
$consumable->purchase_date = NULL;
|
||||
} else {
|
||||
$consumable->purchase_date = e(Input::get('purchase_date'));
|
||||
}
|
||||
|
||||
if (e(Input::get('purchase_cost')) == '0.00') {
|
||||
$consumable->purchase_cost = NULL;
|
||||
} else {
|
||||
$consumable->purchase_cost = ParseFloat(e(Input::get('purchase_cost')));
|
||||
}
|
||||
|
||||
$consumable->qty = e(Input::get('qty'));
|
||||
$consumable->user_id = Sentry::getId();
|
||||
|
||||
// Was the consumable created?
|
||||
if($consumable->save()) {
|
||||
@@ -134,9 +148,23 @@ class ConsumablesController extends AdminController
|
||||
else {
|
||||
|
||||
// Update the consumable data
|
||||
$consumable->name = e(Input::get('name'));
|
||||
$consumable->category_id = e(Input::get('category_id'));
|
||||
$consumable->qty = e(Input::get('qty'));
|
||||
$consumable->name = e(Input::get('name'));
|
||||
$consumable->category_id = e(Input::get('category_id'));
|
||||
$consumable->order_number = e(Input::get('order_number'));
|
||||
|
||||
if (e(Input::get('purchase_date')) == '') {
|
||||
$consumable->purchase_date = NULL;
|
||||
} else {
|
||||
$consumable->purchase_date = e(Input::get('purchase_date'));
|
||||
}
|
||||
|
||||
if (e(Input::get('purchase_cost')) == '0.00') {
|
||||
$consumable->purchase_cost = NULL;
|
||||
} else {
|
||||
$consumable->purchase_cost = ParseFloat(e(Input::get('purchase_cost')));
|
||||
}
|
||||
|
||||
$consumable->qty = e(Input::get('qty'));
|
||||
|
||||
// Was the consumable created?
|
||||
if($consumable->save()) {
|
||||
@@ -164,21 +192,11 @@ class ConsumablesController extends AdminController
|
||||
return Redirect::to('admin/consumables')->with('error', Lang::get('admin/consumables/message.not_found'));
|
||||
}
|
||||
|
||||
|
||||
if ($consumable->hasUsers() > 0) {
|
||||
return Redirect::to('admin/consumables')->with('error', Lang::get('admin/consumables/message.assoc_users', array('count'=> $consumable->hasUsers())));
|
||||
} else {
|
||||
$consumable->delete();
|
||||
|
||||
// Redirect to the locations management page
|
||||
return Redirect::to('admin/consumables')->with('success', Lang::get('admin/consumables/message.delete.success'));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -348,47 +366,70 @@ class ConsumablesController extends AdminController
|
||||
public function getDatatable()
|
||||
{
|
||||
$consumables = Consumable::select(array('id','name','qty'))
|
||||
->whereNull('deleted_at')
|
||||
->orderBy('created_at', 'DESC');
|
||||
->whereNull('deleted_at');
|
||||
|
||||
$consumables = $consumables->get();
|
||||
if (Input::has('search')) {
|
||||
$consumables = $consumables->TextSearch(Input::get('search'));
|
||||
}
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions',function($consumables)
|
||||
{
|
||||
return '<a href="'.route('checkout/consumable', $consumables->id).'" style="margin-right:5px;" class="btn btn-info btn-sm" '.(($consumables->numRemaining() > 0 ) ? '' : ' disabled').'>'.Lang::get('general.checkout').'</a><a href="'.route('update/consumable', $consumables->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/consumable', $consumables->id).'" data-content="'.Lang::get('admin/consumables/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($consumables->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
});
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$allowed_columns = ['id','name'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$consumables->orderBy($sort, $order);
|
||||
|
||||
$consumCount = $consumables->count();
|
||||
$consumables = $consumables->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach($consumables as $consumable) {
|
||||
$actions = '<a href="'.route('checkout/consumable', $consumable->id).'" style="margin-right:5px;" class="btn btn-info btn-sm" '.(($consumable->numRemaining() > 0 ) ? '' : ' disabled').'>'.Lang::get('general.checkout').'</a><a href="'.route('update/consumable', $consumable->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/consumable', $consumable->id).'" data-content="'.Lang::get('admin/consumables/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($consumable->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $consumable->id,
|
||||
'name' => link_to('admin/consumables/'.$consumable->id.'/view', $consumable->name),
|
||||
'qty' => $consumable->qty,
|
||||
'numRemaining' => $consumable->numRemaining(),
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $consumCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
|
||||
return Datatable::collection($consumables)
|
||||
->addColumn('name',function($consumables)
|
||||
{
|
||||
return link_to('admin/consumables/'.$consumables->id.'/view', $consumables->name);
|
||||
})
|
||||
->addColumn('qty',function($consumables)
|
||||
{
|
||||
return $consumables->qty;
|
||||
})
|
||||
->addColumn('numRemaining',function($consumables)
|
||||
{
|
||||
return $consumables->numRemaining();
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name','qty','numRemaining','actions')
|
||||
->orderColumns('name','qty','numRemaining','actions')
|
||||
->make();
|
||||
}
|
||||
|
||||
public function getDataView($consumableID)
|
||||
{
|
||||
$consumable = Consumable::find($consumableID);
|
||||
$consumable_users = $consumable->users;
|
||||
$count = $consumable_users->count();
|
||||
|
||||
$rows = array();
|
||||
|
||||
return Datatable::collection($consumable_users)
|
||||
->addColumn('name',function($consumable_users)
|
||||
{
|
||||
return link_to('/admin/users/'.$consumable_users->id.'/view', $consumable_users->fullName());
|
||||
})
|
||||
->make();
|
||||
foreach ($consumable_users as $user) {
|
||||
$rows[] = array(
|
||||
'name' => link_to('/admin/users/'.$user->id.'/view', $user->fullName())
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $count, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,9 +22,6 @@ class DepreciationsController extends AdminController
|
||||
|
||||
public function getIndex()
|
||||
{
|
||||
// Grab all the depreciations
|
||||
$depreciations = Depreciation::orderBy('created_at', 'DESC')->get();
|
||||
|
||||
// Show the page
|
||||
return View::make('backend/depreciations/index', compact('depreciations'));
|
||||
}
|
||||
@@ -123,7 +120,7 @@ class DepreciationsController extends AdminController
|
||||
|
||||
if ($validator->fails())
|
||||
{
|
||||
// The given data did not pass validation
|
||||
// The given data did not pass validation
|
||||
return Redirect::back()->withInput()->withErrors($validator->messages());
|
||||
}
|
||||
// attempt validation
|
||||
@@ -137,7 +134,7 @@ class DepreciationsController extends AdminController
|
||||
// Redirect to the depreciation page
|
||||
return Redirect::to("admin/settings/depreciations/")->with('success', Lang::get('admin/depreciations/message.update.success'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Redirect to the depreciation management page
|
||||
return Redirect::to("admin/settings/depreciations/$depreciationId/edit")->with('error', Lang::get('admin/depreciations/message.update.error'));
|
||||
@@ -174,5 +171,55 @@ class DepreciationsController extends AdminController
|
||||
}
|
||||
|
||||
|
||||
public function getDatatable()
|
||||
{
|
||||
$depreciations = Depreciation::select(array('id','name','months'));
|
||||
|
||||
if (Input::has('search')) {
|
||||
$depreciations = $depreciations->TextSearch(e(Input::get('search')));
|
||||
}
|
||||
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$allowed_columns = ['id','name','months'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$depreciations->orderBy($sort, $order);
|
||||
|
||||
$depreciationsCount = $depreciations->count();
|
||||
$depreciations = $depreciations->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach($depreciations as $depreciation) {
|
||||
$actions = '<a href="'.route('update/depreciations', $depreciation->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/depreciations', $depreciation->id).'" data-content="'.Lang::get('admin/depreciations/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($depreciation->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $depreciation->id,
|
||||
'name' => $depreciation->name,
|
||||
'months' => $depreciation->months,
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $depreciationsCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -887,35 +887,40 @@ class LicensesController extends AdminController
|
||||
}
|
||||
|
||||
public function getDatatable() {
|
||||
$licenses = License::orderBy('created_at', 'DESC')->get();
|
||||
$licenses = License::select('id','name','serial','purchase_date','seats');
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions', function($licenses) {
|
||||
return '<span style="white-space: nowrap;"><a href="'.route('freecheckout/license', $licenses->id).'" class="btn btn-primary btn-sm" style="margin-right:5px;" '.(($licenses->remaincount() > 0) ? '' : 'disabled').'>'.Lang::get('general.checkout').'</a> <a href="'.route('clone/license', $licenses->id).'" class="btn btn-info btn-sm" style="margin-right:5px;" title="Clone asset"><i class="fa fa-files-o"></i></a><a href="'.route('update/license', $licenses->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/license', $licenses->id).'" data-content="'.Lang::get('admin/licenses/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($licenses->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></span>';
|
||||
});
|
||||
if (Input::has('search')) {
|
||||
$licenses = $licenses->TextSearch(Input::get('search'));
|
||||
}
|
||||
|
||||
return Datatable::collection($licenses)
|
||||
->addColumn('name', function($licenses) {
|
||||
return link_to('/admin/licenses/'.$licenses->id.'/view', $licenses->name);
|
||||
})
|
||||
->addColumn('serial', function($licenses) {
|
||||
return link_to('/admin/licenses/'.$licenses->id.'/view', mb_strimwidth($licenses->serial, 0, 50, "..."));
|
||||
})
|
||||
->addColumn('totalSeats', function($licenses) {
|
||||
return $licenses->totalSeatsByLicenseID();
|
||||
})
|
||||
->addColumn('remaining', function($licenses) {
|
||||
return $licenses->remaincount();
|
||||
})
|
||||
->addColumn('purchase_date', function($licenses) {
|
||||
return $licenses->purchase_date;
|
||||
})
|
||||
->addColumn('notes', function($licenses) {
|
||||
return $licenses->notes;
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name','serial','totalSeats','remaining','purchase_date','actions','notes')
|
||||
->orderColumns('name','serial','totalSeats','remaining','purchase_date','actions','notes')
|
||||
->make();
|
||||
$allowed_columns = ['id','name'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$licenses = $licenses->orderBy($sort, $order);
|
||||
|
||||
$licenseCount = $licenses->count();
|
||||
$licenses = $licenses->skip(Input::get('offset'))->take(Input::get('limit'))->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach ($licenses as $license) {
|
||||
$actions = '<span style="white-space: nowrap;"><a href="'.route('freecheckout/license', $license->id).'" class="btn btn-primary btn-sm" style="margin-right:5px;" '.(($license->remaincount() > 0) ? '' : 'disabled').'>'.Lang::get('general.checkout').'</a> <a href="'.route('clone/license', $license->id).'" class="btn btn-info btn-sm" style="margin-right:5px;" title="Clone asset"><i class="fa fa-files-o"></i></a><a href="'.route('update/license', $license->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/license', $license->id).'" data-content="'.Lang::get('admin/licenses/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($license->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></span>';
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $license->id,
|
||||
'name' => link_to('/admin/licenses/'.$license->id.'/view', $license->name),
|
||||
'serial' => link_to('/admin/licenses/'.$license->id.'/view', mb_strimwidth($license->serial, 0, 50, "...")),
|
||||
'totalSeats' => $license->totalSeatsByLicenseID(),
|
||||
'remaining' => $license->remaincount(),
|
||||
'purchase_date' => ($license->purchase_date) ? $license->purchase_date : '',
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $licenseCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getFreeLicense($licenseId) {
|
||||
|
||||
@@ -255,5 +255,159 @@ class LocationsController extends AdminController
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the location page detail page
|
||||
*
|
||||
* @param int $locationID
|
||||
* @return View
|
||||
**/
|
||||
public function getView($locationId = null)
|
||||
{
|
||||
$location = Location::find($locationId);
|
||||
|
||||
if (isset($location->id)) {
|
||||
return View::make('backend/locations/view', compact('location'));
|
||||
} else {
|
||||
// Prepare the error message
|
||||
$error = Lang::get('admin/locations/message.does_not_exist', compact('id'));
|
||||
|
||||
// Redirect to the user management page
|
||||
return Redirect::route('locations')->with('error', $error);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the locations API information to present to the location view page
|
||||
*
|
||||
* @param int $locationID
|
||||
* @return JSON
|
||||
**/
|
||||
public function getDatatable()
|
||||
{
|
||||
$locations = Location::select(array('locations.id','locations.name','locations.address','locations.address2','locations.city','locations.state','locations.zip','locations.country','locations.parent_id','locations.currency'))->with('assets');
|
||||
|
||||
|
||||
if (Input::has('search')) {
|
||||
$locations = $locations->TextSearch(e(Input::get('search')));
|
||||
}
|
||||
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
|
||||
|
||||
|
||||
switch (Input::get('sort'))
|
||||
{
|
||||
case 'parent':
|
||||
$locations = $locations->OrderParent($order);
|
||||
break;
|
||||
default:
|
||||
$allowed_columns = ['id','name','address','city','state','country','currency'];
|
||||
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
$locations = $locations->orderBy($sort, $order);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
$locationsCount = $locations->count();
|
||||
$locations = $locations->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach($locations as $location) {
|
||||
$actions = '<nobr><a href="'.route('update/location', $location->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/location', $location->id).'" data-content="'.Lang::get('admin/locations/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($location->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></nobr>';
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $location->id,
|
||||
'name' => link_to('admin/settings/locations/'.$location->id.'/view', $location->name),
|
||||
'parent' => ($location->parent) ? $location->parent->name : '',
|
||||
// 'assets' => ($location->assets->count() + $location->assignedassets->count()),
|
||||
'assets_default' => $location->assignedassets->count(),
|
||||
'assets_checkedout' => $location->assets->count(),
|
||||
'address' => ($location->address) ? $location->address: '',
|
||||
'city' => $location->city,
|
||||
'state' => $location->state,
|
||||
'country' => $location->country,
|
||||
'currency' => $location->currency,
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $locationsCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the location user listing information to present to the location details page
|
||||
*
|
||||
* @param int $locationID
|
||||
* @return JSON
|
||||
**/
|
||||
public function getDataViewUsers($locationID)
|
||||
{
|
||||
$location = Location::find($locationID);
|
||||
$location_users = $location->users;
|
||||
$count = $location_users->count();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach ($location_users as $user) {
|
||||
$rows[] = array(
|
||||
'name' => link_to('/admin/users/'.$user->id.'/view', $user->fullName())
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $count, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the location asset information to present to the location details page
|
||||
*
|
||||
* @param int $locationID
|
||||
* @return JSON
|
||||
**/
|
||||
public function getDataViewAssets($locationID)
|
||||
{
|
||||
$location = Location::find($locationID);
|
||||
$count = $location->assets->count();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach ($location->assets as $asset) {
|
||||
$rows[] = array(
|
||||
'name' => link_to('/hardware/'.$asset->id.'/view', $asset->showAssetName()),
|
||||
'asset_tag' => $asset->asset_tag,
|
||||
'serial' => $asset->serial,
|
||||
'model' => $asset->model->name,
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $count, 'rows' => $rows);
|
||||
return $data;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -20,9 +20,6 @@ class ManufacturersController extends AdminController
|
||||
*/
|
||||
public function getIndex()
|
||||
{
|
||||
// Grab all the manufacturers
|
||||
$manufacturers = Manufacturer::orderBy('created_at', 'DESC')->get();
|
||||
|
||||
// Show the page
|
||||
return View::make('backend/manufacturers/index', compact('manufacturers'));
|
||||
}
|
||||
@@ -192,7 +189,122 @@ class ManufacturersController extends AdminController
|
||||
|
||||
}
|
||||
|
||||
public function getDatatable()
|
||||
{
|
||||
$manufacturers = Manufacturer::select(array('id','name'))->with('assets')
|
||||
->whereNull('deleted_at');
|
||||
|
||||
if (Input::has('search')) {
|
||||
$manufacturers = $manufacturers->TextSearch(e(Input::get('search')));
|
||||
}
|
||||
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$allowed_columns = ['id','name'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$manufacturers->orderBy($sort, $order);
|
||||
|
||||
$manufacturersCount = $manufacturers->count();
|
||||
$manufacturers = $manufacturers->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach($manufacturers as $manufacturer) {
|
||||
$actions = '<a href="'.route('update/manufacturer', $manufacturer->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/location', $manufacturer->id).'" data-content="'.Lang::get('admin/manufacturers/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($manufacturer->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $manufacturer->id,
|
||||
'name' => link_to('admin/settings/manufacturers/'.$manufacturer->id.'/view', $manufacturer->name),
|
||||
'assets' => $manufacturer->assetscount(),
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $manufacturersCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function getDataView($manufacturerID) {
|
||||
|
||||
$manufacturer = Manufacturer::find($manufacturerID);
|
||||
$manufacturer_assets = $manufacturer->assets;
|
||||
|
||||
if (Input::has('search')) {
|
||||
$manufacturer_assets = $manufacturer_assets->TextSearch(e(Input::get('search')));
|
||||
}
|
||||
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
|
||||
$allowed_columns = ['id','name','serial','asset_tag'];
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
$count = $manufacturer_assets->count();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach ($manufacturer_assets as $asset) {
|
||||
|
||||
$actions = '';
|
||||
if ($asset->deleted_at=='') {
|
||||
$actions = '<div style=" white-space: nowrap;"><a href="'.route('clone/hardware', $asset->id).'" class="btn btn-info btn-sm" title="Clone asset"><i class="fa fa-files-o"></i></a> <a href="'.route('update/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> <a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/hardware', $asset->id).'" data-content="'.Lang::get('admin/hardware/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($asset->asset_tag).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></div>';
|
||||
} elseif ($asset->deleted_at!='') {
|
||||
$actions = '<a href="'.route('restore/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
|
||||
}
|
||||
|
||||
if ($asset->assetstatus) {
|
||||
if ($asset->assetstatus->deployable != 0) {
|
||||
if (($asset->assigned_to !='') && ($asset->assigned_to > 0)) {
|
||||
$inout = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
|
||||
} else {
|
||||
$inout = '<a href="'.route('checkout/hardware', $asset->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $asset->id,
|
||||
'name' => link_to('/hardware/'.$asset->id.'/view', $asset->showAssetName()),
|
||||
'model' => $asset->model->name,
|
||||
'asset_tag' => $asset->asset_tag,
|
||||
'serial' => $asset->serial,
|
||||
'assigned_to' => ($asset->assigneduser) ? link_to('/admin/users/'.$asset->assigneduser->id.'/view', $asset->assigneduser->fullName()): '',
|
||||
'change' => $inout,
|
||||
'actions' => $actions,
|
||||
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $count, 'rows' => $rows);
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ use Str;
|
||||
use Validator;
|
||||
use View;
|
||||
use Datatable;
|
||||
use Asset;
|
||||
|
||||
//use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
@@ -317,7 +318,7 @@ class ModelsController extends AdminController
|
||||
|
||||
|
||||
/**
|
||||
* Get the asset information to present to the model view page
|
||||
* Get the model information to present to the model view page
|
||||
*
|
||||
* @param int $assetId
|
||||
* @return View
|
||||
@@ -339,7 +340,14 @@ class ModelsController extends AdminController
|
||||
|
||||
}
|
||||
|
||||
public function getClone($modelId = null)
|
||||
/**
|
||||
* Get the clone page to clone a model
|
||||
*
|
||||
* @param int $modelId
|
||||
* @return View
|
||||
**/
|
||||
|
||||
public function getClone($modelId = null)
|
||||
{
|
||||
// Check if the model exists
|
||||
if (is_null($model_to_clone = Model::find($modelId))) {
|
||||
@@ -364,79 +372,131 @@ class ModelsController extends AdminController
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the JSON response for the bootstrap table list view
|
||||
*
|
||||
* @param string $status
|
||||
* @return JSON
|
||||
**/
|
||||
|
||||
public function getDatatable($status = null)
|
||||
{
|
||||
$models = Model::orderBy('created_at', 'DESC')->with('category','assets','depreciation');
|
||||
$models = Model::with('category','assets','depreciation');
|
||||
($status != 'Deleted') ?: $models->withTrashed()->Deleted();;
|
||||
$models = $models->get();
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions', function($models) {
|
||||
if($models->deleted_at=='') {
|
||||
return '<a href="'.route('update/model', $models->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/model', $models->id).'" data-content="'.Lang::get('admin/models/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($models->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
if (Input::has('search')) {
|
||||
$models = $models->TextSearch(Input::get('search'));
|
||||
}
|
||||
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
|
||||
$allowed_columns = ['id','name','modelno'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$models = $models->orderBy($sort, $order);
|
||||
|
||||
$modelCount = $models->count();
|
||||
$models = $models->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach ($models as $model) {
|
||||
if ($model->deleted_at == '') {
|
||||
$actions = '<div style=" white-space: nowrap;"><a href="'.route('update/model', $model->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/model', $model->id).'" data-content="'.Lang::get('admin/models/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($model->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></div>';
|
||||
} else {
|
||||
return '<a href="'.route('restore/model', $models->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
|
||||
$actions = '<a href="'.route('restore/model', $model->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
|
||||
}
|
||||
});
|
||||
|
||||
return Datatable::collection($models)
|
||||
->addColumn('manufacturer', function($models) {
|
||||
return $models->manufacturer->name;
|
||||
})
|
||||
->addColumn('name', function ($models) {
|
||||
return link_to('/hardware/models/'.$models->id.'/view', $models->name);
|
||||
})
|
||||
->showColumns('modelno')
|
||||
->addColumn('asset_count', function($models) {
|
||||
return $models->assets->count();
|
||||
})
|
||||
->addColumn('depreciation', function($models) {
|
||||
return (($models->depreciation)&&($models->depreciation->id > 0)) ? $models->depreciation->name.' ('.$models->depreciation->months.')' : Lang::get('general.no_depreciation');
|
||||
})
|
||||
->addColumn('category', function($models) {
|
||||
return ($models->category) ? $models->category->name : '';
|
||||
})
|
||||
->addColumn('eol', function($models) {
|
||||
return ($models->eol) ? $models->eol.' '.Lang::get('general.months') : '';
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name','modelno','asset_count','depreciation','category','eol','actions')
|
||||
->orderColumns('name','modelno','asset_count','depreciation','category','eol','actions')
|
||||
->make();
|
||||
$rows[] = array(
|
||||
'id' => $model->id,
|
||||
'manufacturer' => link_to('/admin/settings/manufacturers/'.$model->manufacturer->id.'/view', $model->manufacturer->name),
|
||||
'name' => link_to('/hardware/models/'.$model->id.'/view', $model->name),
|
||||
'modelnumber' => $model->modelno,
|
||||
'numassets' => $model->assets->count(),
|
||||
'depreciation' => (($model->depreciation)&&($model->depreciation->id > 0)) ? $model->depreciation->name.' ('.$model->depreciation->months.')' : Lang::get('general.no_depreciation'),
|
||||
'category' => ($model->category) ? $model->category->name : '',
|
||||
'eol' => ($model->eol) ? $model->eol.' '.Lang::get('general.months') : '',
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $modelCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the asset information to present to the model view page
|
||||
*
|
||||
* @param int $modelID
|
||||
* @return View
|
||||
**/
|
||||
public function getDataView($modelID)
|
||||
{
|
||||
$model = Model::withTrashed()->find($modelID);
|
||||
$modelassets = $model->assets;
|
||||
$assets = Asset::where('model_id','=',$modelID)->withTrashed();
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions', function ($modelassets)
|
||||
{
|
||||
if (($modelassets->assigned_to !='') && ($modelassets->assigned_to > 0)) {
|
||||
return '<a href="'.route('checkin/hardware', $modelassets->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
|
||||
} else {
|
||||
return '<a href="'.route('checkout/hardware', $modelassets->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
|
||||
}
|
||||
});
|
||||
if (Input::has('search')) {
|
||||
$assets = $assets->TextSearch(Input::get('search'));
|
||||
}
|
||||
|
||||
return Datatable::collection($modelassets)
|
||||
->addColumn('name', function ($modelassets) {
|
||||
return link_to('/hardware/'.$modelassets->id.'/view', $modelassets->showAssetName());
|
||||
// return $modelassets->name;
|
||||
})
|
||||
->addColumn('asset_tag', function ($modelassets) {
|
||||
return link_to('/hardware/'.$modelassets->id.'/view', $modelassets->asset_tag);
|
||||
})
|
||||
->showColumns('serial')
|
||||
->addColumn('assigned_to', function ($modelassets) {
|
||||
if ($modelassets->assigned_to) {
|
||||
return link_to('/admin/users/'.$modelassets->assigned_to.'/view', $modelassets->assigneduser->fullName());
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
|
||||
$allowed_columns = ['name', 'serial','asset_tag'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$assets = $assets->orderBy($sort, $order);
|
||||
|
||||
$assetsCount = $assets->count();
|
||||
$assets = $assets->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach ($assets as $asset) {
|
||||
if (($asset->assigned_to !='') && ($asset->assigned_to > 0)) {
|
||||
$actions = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
|
||||
} else {
|
||||
$actions = '<a href="'.route('checkout/hardware', $asset->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
|
||||
}
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name','asset_tag','serial','assigned_to','actions')
|
||||
->orderColumns('name','asset_tag','serial','assigned_to','actions')
|
||||
->make();
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $asset->id,
|
||||
'name' => link_to('/hardware/'.$asset->id.'/view', $asset->showAssetName()),
|
||||
'asset_tag' => link_to('hardware/'.$asset->id.'/view', $asset->asset_tag),
|
||||
'serial' => $asset->serial,
|
||||
'assigned_to' => ($asset->assigned_to) ? link_to('/admin/users/'.$asset->assigned_to.'/view', $asset->assigneduser->fullName()) : '',
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $assetsCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -405,7 +405,7 @@ class ReportsController extends AdminController
|
||||
if (e( Input::get( 'purchase_date' ) ) == '1') {
|
||||
$header[] = 'Purchase Date';
|
||||
}
|
||||
if (( e( Input::get( 'purchase_cost' ) ) == '1' ) && ( e( Input::get( 'depreciation' ) ) == '0' )) {
|
||||
if (( e( Input::get( 'purchase_cost' ) ) == '1' ) && ( e( Input::get( 'depreciation' ) ) != '1' )) {
|
||||
$header[] = 'Purchase Cost';
|
||||
}
|
||||
if (e( Input::get( 'order' ) ) == '1') {
|
||||
@@ -461,7 +461,7 @@ class ReportsController extends AdminController
|
||||
if (e( Input::get( 'purchase_date' ) ) == '1') {
|
||||
$row[] = $asset->purchase_date;
|
||||
}
|
||||
if (e( Input::get( 'purchase_cost' ) ) == '1') {
|
||||
if (e( Input::get( 'purchase_cost' ) ) == '1' && ( e( Input::get( 'depreciation' ) ) != '1' )) {
|
||||
$row[] = '"' . number_format( $asset->purchase_cost ) . '"';
|
||||
}
|
||||
if (e( Input::get( 'order' ) ) == '1') {
|
||||
|
||||
@@ -68,7 +68,8 @@ class SettingsController extends AdminController
|
||||
// Declare the rules for the form validation
|
||||
|
||||
$rules = array(
|
||||
"per_page" => 'required|min:1|numeric',
|
||||
"brand" => 'required|min:1|numeric',
|
||||
"per_page" => 'required|min:1|numeric',
|
||||
"qr_text" => 'min:1|max:31',
|
||||
"logo" => 'mimes:jpeg,bmp,png,gif',
|
||||
"custom_css" => 'alpha_space',
|
||||
@@ -115,6 +116,7 @@ class SettingsController extends AdminController
|
||||
|
||||
if (Config::get('app.lock_passwords')==false) {
|
||||
$setting->site_name = e(Input::get('site_name'));
|
||||
$setting->brand = e(Input::get('brand'));
|
||||
$setting->custom_css = e(Input::get('custom_css'));
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,6 @@ class StatuslabelsController extends AdminController
|
||||
|
||||
public function getIndex()
|
||||
{
|
||||
// Grab all the statuslabels
|
||||
$statuslabels = Statuslabel::orderBy('created_at', 'DESC')->get();
|
||||
|
||||
// Show the page
|
||||
return View::make('backend/statuslabels/index', compact('statuslabels'));
|
||||
}
|
||||
@@ -230,5 +227,67 @@ class StatuslabelsController extends AdminController
|
||||
}
|
||||
|
||||
|
||||
public function getDatatable()
|
||||
{
|
||||
$statuslabels = Statuslabel::select(array('id','name','deployable','pending','archived'))
|
||||
->whereNull('deleted_at');
|
||||
|
||||
if (Input::has('search')) {
|
||||
$statuslabels = $statuslabels->TextSearch(e(Input::get('search')));
|
||||
}
|
||||
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$allowed_columns = ['id','name'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$statuslabels->orderBy($sort, $order);
|
||||
|
||||
$statuslabelsCount = $statuslabels->count();
|
||||
$statuslabels = $statuslabels->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach($statuslabels as $statuslabel) {
|
||||
|
||||
if ($statuslabel->deployable == 1) {
|
||||
$label_type = Lang::get('admin/statuslabels/table.deployable');
|
||||
} elseif ($statuslabel->pending == 1) {
|
||||
$label_type = Lang::get('admin/statuslabels/table.pending');
|
||||
} elseif ($statuslabel->archived == 1) {
|
||||
$label_type = Lang::get('admin/statuslabels/table.archived');
|
||||
} else {
|
||||
$label_type = Lang::get('admin/statuslabels/table.undeployable');
|
||||
}
|
||||
|
||||
$actions = '<a href="'.route('update/statuslabel', $statuslabel->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/statuslabel', $statuslabel->id).'" data-content="'.Lang::get('admin/statuslabels/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($statuslabel->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $statuslabel->id,
|
||||
'type' => $label_type,
|
||||
'name' => e($statuslabel->name),
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $statuslabelsCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ class SuppliersController extends AdminController
|
||||
return Redirect::to('admin/settings/suppliers/create')->with('error', Lang::get('admin/suppliers/message.create.error'));
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function store()
|
||||
{
|
||||
$supplier=new Supplier;
|
||||
@@ -115,7 +115,7 @@ class SuppliersController extends AdminController
|
||||
//$supplier->fill($new);
|
||||
$supplier->name=$new['name'];
|
||||
$supplier->user_id = Sentry::getId();
|
||||
|
||||
|
||||
if($supplier->save()) {
|
||||
return JsonResponse::create($supplier);
|
||||
} else {
|
||||
@@ -163,7 +163,7 @@ class SuppliersController extends AdminController
|
||||
|
||||
if ($validator->fails())
|
||||
{
|
||||
// The given data did not pass validation
|
||||
// The given data did not pass validation
|
||||
return Redirect::back()->withInput()->withErrors($validator->messages());
|
||||
}
|
||||
// attempt validation
|
||||
@@ -204,7 +204,7 @@ class SuppliersController extends AdminController
|
||||
// Redirect to the new supplier page
|
||||
return Redirect::to("admin/settings/suppliers")->with('success', Lang::get('admin/suppliers/message.update.success'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Redirect to the supplier management page
|
||||
return Redirect::to("admin/settings/suppliers/$supplierId/edit")->with('error', Lang::get('admin/suppliers/message.update.error'));
|
||||
@@ -264,6 +264,61 @@ class SuppliersController extends AdminController
|
||||
|
||||
}
|
||||
|
||||
public function getDatatable()
|
||||
{
|
||||
$suppliers = Supplier::select(array('id','name','address','address2','city','state','country','fax', 'phone','email','contact'))
|
||||
->whereNull('deleted_at');
|
||||
|
||||
if (Input::has('search')) {
|
||||
$suppliers = $suppliers->TextSearch(e(Input::get('search')));
|
||||
}
|
||||
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$allowed_columns = ['id','name','address','phone','contact','fax','email'];
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
|
||||
|
||||
$suppliers->orderBy($sort, $order);
|
||||
|
||||
$suppliersCount = $suppliers->count();
|
||||
$suppliers = $suppliers->skip($offset)->take($limit)->get();
|
||||
|
||||
$rows = array();
|
||||
|
||||
foreach($suppliers as $supplier) {
|
||||
$actions = '<a href="'.route('update/supplier', $supplier->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/location', $supplier->id).'" data-content="'.Lang::get('admin/suppliers/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($supplier->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
|
||||
|
||||
$rows[] = array(
|
||||
'id' => $supplier->id,
|
||||
'name' => link_to('admin/settings/suppliers/'.$supplier->id.'/view', $supplier->name),
|
||||
'contact' => $supplier->contact,
|
||||
'address' => $supplier->address.' '.$supplier->address2.' '.$supplier->city.' '.$supplier->state.' '.$supplier->country,
|
||||
'phone' => $supplier->phone,
|
||||
'fax' => $supplier->fax,
|
||||
'email' => ($supplier->email!='') ? '<a href="mailto:'.$supplier->email.'">'.$supplier->email.'</a>' : '',
|
||||
'assets' => $supplier->num_assets(),
|
||||
'licenses' => $supplier->num_licenses(),
|
||||
'actions' => $actions
|
||||
);
|
||||
}
|
||||
|
||||
$data = array('total' => $suppliersCount, 'rows' => $rows);
|
||||
|
||||
return $data;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -530,7 +530,7 @@ class UsersController extends AdminController {
|
||||
$update_assets = Asset::whereIn('id', $asset_array)->update(
|
||||
array(
|
||||
'status_id' => e(Input::get('status_id')),
|
||||
'assigned_to' => '',
|
||||
'assigned_to' => null,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -545,9 +545,9 @@ class UsersController extends AdminController {
|
||||
$logaction->note = 'Bulk checkin';
|
||||
$log = $logaction->logaction('checkin from');
|
||||
|
||||
$update_assets = DB::table('accessories_users')->whereIn('id', $accessory_array)->update(
|
||||
$update_accessories = DB::table('accessories_users')->whereIn('id', $accessory_array)->update(
|
||||
array(
|
||||
'assigned_to' => '',
|
||||
'assigned_to' => null,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -824,94 +824,115 @@ class UsersController extends AdminController {
|
||||
return Redirect::route('users')->with('duplicates', $duplicates)->with('success', 'Success');
|
||||
}
|
||||
|
||||
public function getDatatable($status = null) {
|
||||
public function getDatatable($status = null)
|
||||
{
|
||||
|
||||
$users = User::with('assets', 'accessories', 'consumables', 'licenses', 'manager', 'sentryThrottle', 'groups', 'userloc');
|
||||
|
||||
switch ($status) {
|
||||
case 'deleted':
|
||||
$users->GetDeleted();
|
||||
break;
|
||||
case '':
|
||||
$users->GetNotDeleted();
|
||||
break;
|
||||
if (Input::has('offset')) {
|
||||
$offset = e(Input::get('offset'));
|
||||
} else {
|
||||
$offset = 0;
|
||||
}
|
||||
|
||||
$users = $users->orderBy('created_at', 'DESC')->get();
|
||||
if (Input::has('limit')) {
|
||||
$limit = e(Input::get('limit'));
|
||||
} else {
|
||||
$limit = 50;
|
||||
}
|
||||
|
||||
$actions = new \Chumper\Datatable\Columns\FunctionColumn('actions', function ($users) {
|
||||
$action_buttons = '';
|
||||
if (Input::get('sort')=='name') {
|
||||
$sort = 'first_name';
|
||||
} else {
|
||||
$sort = e(Input::get('sort'));
|
||||
}
|
||||
|
||||
$users = User::select(array('users.id','users.email','users.username','users.location_id','users.manager_id','users.first_name','users.last_name','users.created_at','users.notes'))->with('assets', 'accessories', 'consumables', 'licenses', 'manager', 'sentryThrottle', 'groups', 'userloc');
|
||||
|
||||
switch ($status) {
|
||||
case 'deleted':
|
||||
$users = $users->withTrashed()->Deleted();
|
||||
break;
|
||||
}
|
||||
|
||||
if (Input::has('search')) {
|
||||
$users = $users->TextSearch(Input::get('search'));
|
||||
}
|
||||
|
||||
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
|
||||
|
||||
switch (Input::get('sort'))
|
||||
{
|
||||
case 'manager':
|
||||
$users = $users->OrderManager($order);
|
||||
break;
|
||||
default:
|
||||
$allowed_columns =
|
||||
[
|
||||
'last_name','first_name','email','username','location',
|
||||
'assets','accessories', 'consumables','licenses','groups'
|
||||
];
|
||||
|
||||
$sort = in_array($sort, $allowed_columns) ? $sort : 'first_name';
|
||||
$users = $users->orderBy($sort, $order);
|
||||
break;
|
||||
}
|
||||
|
||||
$userCount = $users->count();
|
||||
$users = $users->skip($offset)->take($limit)->get();
|
||||
$rows = array();
|
||||
|
||||
foreach ($users as $user)
|
||||
{
|
||||
|
||||
$group_names = '';
|
||||
$inout = '';
|
||||
$actions = '<nobr>';
|
||||
|
||||
foreach ($user->groups as $group) {
|
||||
$group_names .= '<a href="' . Config::get('app.url') . '/admin/groups/' . $group->id . '/edit" class="label label-default">' . $group->name . '</a> ';
|
||||
}
|
||||
|
||||
|
||||
if (!is_null($users->deleted_at)) {
|
||||
$action_buttons .= '<a href="' . route('restore/user', $users->id) . '" class="btn btn-warning btn-sm"><i class="fa fa-share icon-white"></i></a> ';
|
||||
if (!is_null($user->deleted_at)) {
|
||||
|
||||
$actions .= '<a href="' . route('restore/user', $user->id) . '" class="btn btn-warning btn-sm"><i class="fa fa-share icon-white"></i></a> ';
|
||||
} else {
|
||||
if ($users->accountStatus() == 'suspended') {
|
||||
$action_buttons .= '<a href="' . route('unsuspend/user', $users->id) . '" class="btn btn-default btn-sm"><span class="fa fa-clock-o"></span></a> ';
|
||||
|
||||
if ($user->accountStatus() == 'suspended') {
|
||||
$actions .= '<a href="' . route('unsuspend/user', $user->id) . '" class="btn btn-default btn-sm"><span class="fa fa-clock-o"></span></a> ';
|
||||
}
|
||||
|
||||
$action_buttons .= '<a href="' . route('update/user', $users->id) . '" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> ';
|
||||
$actions .= '<a href="' . route('update/user', $user->id) . '" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> ';
|
||||
|
||||
if ((Sentry::getId() !== $users->id) && (!Config::get('app.lock_passwords'))) {
|
||||
$action_buttons .= '<a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="' . route('delete/user', $users->id) . '" data-content="Are you sure you wish to delete this user?" data-title="Delete ' . htmlspecialchars($users->first_name) . '?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a> ';
|
||||
if ((Sentry::getId() !== $user->id) && (!Config::get('app.lock_passwords'))) {
|
||||
$actions .= '<a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="' . route('delete/user', $user->id) . '" data-content="Are you sure you wish to delete this user?" data-title="Delete ' . htmlspecialchars($user->first_name) . '?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a> ';
|
||||
} else {
|
||||
$action_buttons .= ' <span class="btn delete-asset btn-danger btn-sm disabled"><i class="fa fa-trash icon-white"></i></span>';
|
||||
$actions .= ' <span class="btn delete-asset btn-danger btn-sm disabled"><i class="fa fa-trash icon-white"></i></span>';
|
||||
}
|
||||
}
|
||||
return $action_buttons;
|
||||
});
|
||||
$actions .= '</nobr>';
|
||||
|
||||
$rows[] = array(
|
||||
'checkbox' =>'<div class="text-center hidden-xs hidden-sm"><input type="checkbox" name="edit_user['.$user->id.']" class="one_required"></div>',
|
||||
'name' => '<a title="'.$user->fullName().'" href="../admin/users/'.$user->id.'/view">'.$user->fullName().'</a>',
|
||||
'email' => ($user->email!='') ?
|
||||
'<a href="mailto:'.$user->email.'" class="hidden-md hidden-lg">'.$user->email.'</a>'
|
||||
.'<a href="mailto:'.$user->email.'" class="hidden-xs hidden-sm"><i class="fa fa-envelope"></i></a>'
|
||||
.'</span>' : '',
|
||||
'username' => $user->username,
|
||||
'location' => ($user->userloc) ? $user->userloc->name : '',
|
||||
'manager' => ($user->manager) ? '<a title="' . $user->manager->fullName() . '" href="users/' . $user->manager->id . '/view">' . $user->manager->fullName() . '</a>' : '',
|
||||
'assets' => $user->assets->count(),
|
||||
'licenses' => $user->licenses->count(),
|
||||
'accessories' => $user->accessories->count(),
|
||||
'consumables' => $user->consumables->count(),
|
||||
'groups' => $group_names,
|
||||
'notes' => $user->notes,
|
||||
'actions' => ($actions) ? $actions : ''
|
||||
);
|
||||
}
|
||||
|
||||
return Datatable::collection($users)
|
||||
->addColumn('', function($users) {
|
||||
return '<div class="text-center"><input type="checkbox" name="edit_user[]" value="' . $users->id . '" class="one_required"></div>';
|
||||
})
|
||||
->addColumn('name', function($users) {
|
||||
return '<a title="' . $users->fullName() . '" href="users/' . $users->id . '/view">' . $users->fullName() . '</a>';
|
||||
})
|
||||
->addColumn('email', function($users) {
|
||||
if ($users->email) {
|
||||
return '<div class="text-center"><a title="' . $users->email . '" href="mailto:' . $users->email . '"><i class="fa fa-envelope fa-lg"></i></div>';
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
})
|
||||
->addColumn('username', function($users) {
|
||||
return $users->username;
|
||||
})
|
||||
->addColumn('manager', function($users) {
|
||||
if ($users->manager) {
|
||||
return '<a title="' . $users->manager->fullName() . '" href="users/' . $users->manager->id . '/view">' . $users->manager->fullName() . '</a>';
|
||||
}
|
||||
})
|
||||
->addColumn('location', function($users) {
|
||||
if ($users->userloc) {
|
||||
return $users->userloc->name;
|
||||
}
|
||||
})
|
||||
->addColumn('assets', function($users) {
|
||||
return $users->assets->count();
|
||||
})
|
||||
->addColumn('licenses', function($users) {
|
||||
return $users->licenses->count();
|
||||
})
|
||||
->addColumn('accessories', function($users) {
|
||||
return $users->accessories->count();
|
||||
})
|
||||
->addColumn('consumables', function($users) {
|
||||
return $users->consumables->count();
|
||||
})
|
||||
->addColumn('groups', function($users) {
|
||||
$group_names = '';
|
||||
foreach ($users->groups as $group) {
|
||||
$group_names .= '<a href="' . Config::get('app.url') . '/admin/groups/' . $group->id . '/edit" class="label label-default">' . $group->name . '</a> ';
|
||||
}
|
||||
return $group_names;
|
||||
})
|
||||
->addColumn($actions)
|
||||
->searchColumns('name', 'email', 'username', 'manager', 'activated', 'groups', 'location')
|
||||
->orderColumns('name', 'email', 'username', 'manager', 'activated', 'licenses', 'assets', 'accessories', 'consumables', 'groups', 'location')
|
||||
->make();
|
||||
$data = array('total'=>$userCount, 'rows'=>$rows);
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class FixDefaultPurchaseOrder extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'licenses` MODIFY `purchase_order` varchar(255) DEFAULT NULL;');
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'licenses` MODIFY `purchase_order` varchar(255);');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddAccessoryConsumablePriceInfo extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('accessories', function ($table) {
|
||||
$table->date('purchase_date')->nullable();
|
||||
$table->decimal('purchase_cost', 13, 4)->nullable();
|
||||
$table->string('order_number');
|
||||
});
|
||||
|
||||
Schema::table('consumables', function ($table) {
|
||||
$table->date('purchase_date')->nullable();
|
||||
$table->decimal('purchase_cost', 13, 4)->nullable();
|
||||
$table->string('order_number');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('accessories', function ($table) {
|
||||
$table->dropColumn('purchase_date');
|
||||
$table->dropColumn('purchase_cost');
|
||||
$table->dropColumn('order_number');
|
||||
});
|
||||
|
||||
Schema::table('consumables', function ($table) {
|
||||
$table->dropColumn('purchase_date');
|
||||
$table->dropColumn('purchase_cost');
|
||||
$table->dropColumn('order_number');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddBrandToSettings extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('settings', function(Blueprint $table)
|
||||
{
|
||||
$table->tinyInteger('brand')->default(1);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('settings', function(Blueprint $table)
|
||||
{
|
||||
$table->dropColumn('brand');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class FixDefaultsAccessories extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'accessories` MODIFY `order_number` varchar(255) DEFAULT NULL;');
|
||||
|
||||
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'consumables` MODIFY `order_number` varchar(255) DEFAULT NULL;');
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'accessories` MODIFY `order_number` varchar(255);');
|
||||
DB::statement('ALTER TABLE `'.DB::getTablePrefix().'consumables` MODIFY `order_number` varchar(255);');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddCheckoutTimeAndExpectedCheckoutDateToAssets extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('assets', function(Blueprint $table)
|
||||
{
|
||||
//
|
||||
$answer=$table->dateTime('last_checkout')->nullable();
|
||||
$table->date('expected_checkin')->nullable();
|
||||
});
|
||||
DB::statement("UPDATE assets SET last_checkout=(SELECT MAX(created_at) FROM asset_logs WHERE asset_logs.id=assets.id AND action_type='checkout') WHERE assigned_to IS NOT NULL");
|
||||
DB::statement("UPDATE assets SET expected_checkin=(SELECT expected_checkin FROM asset_logs WHERE asset_logs.id=assets.id AND action_type='checkout' ORDER BY id DESC limit 1) WHERE assigned_to IS NOT NULL");
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('assets', function(Blueprint $table)
|
||||
{
|
||||
//
|
||||
$table->dropColumn('last_checkout');
|
||||
$table->dropColumn('expected_checkin');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -30,7 +30,7 @@ class ActionlogSeeder extends Seeder
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '1',
|
||||
'location_id' => NULL,
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'asset_type' => 'hardware',
|
||||
'note' => NULL,
|
||||
'filename' => NULL,
|
||||
|
||||
@@ -18,6 +18,7 @@ class AssetMaintenancesSeeder extends Seeder
|
||||
'title' => 'Test Maintenance',
|
||||
'start_date' => $date->modify('-10 day'),
|
||||
'cost' => '200.99',
|
||||
'is_warranty' => '0',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
);
|
||||
|
||||
@@ -17,6 +17,7 @@ class LocationsSeeder extends Seeder
|
||||
'state' => 'NY',
|
||||
'country' => 'US',
|
||||
'zip' => '10004',
|
||||
'currency' => '$',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
'user_id' => 1,
|
||||
@@ -31,6 +32,7 @@ class LocationsSeeder extends Seeder
|
||||
'state' => 'NY',
|
||||
'country' => 'US',
|
||||
'zip' => '10004',
|
||||
'currency' => '$',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
'user_id' => 1,
|
||||
@@ -45,6 +47,7 @@ class LocationsSeeder extends Seeder
|
||||
'state' => 'CA',
|
||||
'country' => 'US',
|
||||
'zip' => '94111',
|
||||
'currency' => '$',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
'user_id' => 1,
|
||||
@@ -59,6 +62,7 @@ class LocationsSeeder extends Seeder
|
||||
'state' => 'CA',
|
||||
'country' => 'US',
|
||||
'zip' => '90028',
|
||||
'currency' => '$',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
'user_id' => 1,
|
||||
|
||||
@@ -15,12 +15,14 @@ class SuppliersSeeder extends Seeder
|
||||
'name' => 'New Egg',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
'user_id' => 1,
|
||||
);
|
||||
|
||||
$supplier[] = array(
|
||||
'name' => 'Microsoft',
|
||||
'created_at' => $date->modify('-10 day'),
|
||||
'updated_at' => $date->modify('-3 day'),
|
||||
'user_id' => 1,
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -5,11 +5,14 @@ return array(
|
||||
'about_accessories_text' => 'الملحقات هي أي شيء تقوم بتسليمه للمستخدمين لكنه لا يحتوي على رقم تسلسلي (أو أنك لست بحاجة إلى تتبعه بشكل خاص). مثال: فأرة الحاسوب أو لوحة المفاتيح.',
|
||||
'accessory_category' => 'فئة الملحق',
|
||||
'accessory_name' => 'اسم الملحق',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Create Accessory',
|
||||
'date' => 'Purchase Date',
|
||||
'eula_text' => 'إنشاء اتفاقية جديدة',
|
||||
'eula_text_help' => 'يسمح لك هذا الحقل بتخصيص الاتفاقيات لأنواع معينة من الأصول. اذا كنت تمتلك اتفاقية واحدة لجميع أصولك يمكنك أن تقوم بتأشير المربع في الأسفل لاستخدام الاتفاقية الافتراضية.',
|
||||
'require_acceptance' => 'مطالبة المستخدمين بتأكيد قبولهم الأصول في هذه الفئة.',
|
||||
'no_default_eula' => 'ليس هناك اتفاقيات. قم باضافة واحدة من "الاعدادات".',
|
||||
'order' => 'Order Number',
|
||||
'qty' => 'الكمية',
|
||||
'total' => 'المجموع',
|
||||
'remaining' => 'المتاح',
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'asset_maintenance_type' => 'Asset Maintenance Type',
|
||||
'asset_maintenance_type' => 'Maintenance Type',
|
||||
'title' => 'Title',
|
||||
'start_date' => 'Start Date',
|
||||
'completion_date' => 'Completion Date',
|
||||
'start_date' => 'Started',
|
||||
'completion_date' => 'Completed',
|
||||
'cost' => 'Cost',
|
||||
'is_warranty' => 'Warranty Improvement',
|
||||
'asset_maintenance_time' => 'Asset Maintenance Time (in days)',
|
||||
'asset_maintenance_time' => 'Days',
|
||||
'notes' => 'Notes',
|
||||
'update' => 'Update Asset Maintenance',
|
||||
'create' => 'Create Asset Maintenance'
|
||||
'update' => 'Update',
|
||||
'create' => 'Create'
|
||||
];
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
return [
|
||||
'title' => 'Asset Maintenance',
|
||||
'asset_name' => 'Asset Name',
|
||||
'supplier_name' => 'Supplier Name',
|
||||
'asset_name' => 'Asset',
|
||||
'supplier_name' => 'Supplier',
|
||||
'is_warranty' => 'Warranty',
|
||||
'dl_csv' => 'Download CSV'
|
||||
];
|
||||
];
|
||||
|
||||
@@ -4,7 +4,10 @@ return array(
|
||||
'about_consumables_title' => 'About Consumables',
|
||||
'about_consumables_text' => 'Consumables are anything purchased that will be used up over time. For example, printer ink or copier paper.',
|
||||
'consumable_name' => 'Consumable Name',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Create Consumable',
|
||||
'date' => 'Purchase Date',
|
||||
'order' => 'Order Number',
|
||||
'remaining' => 'Remaining',
|
||||
'total' => 'Total',
|
||||
'update' => 'Update Consumable',
|
||||
|
||||
@@ -15,9 +15,9 @@ return array(
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this accessory?',
|
||||
'confirm' => 'Are you sure you wish to delete this consumable?',
|
||||
'error' => 'There was an issue deleting the consumable. Please try again.',
|
||||
'success' => 'The accessory was deleted successfully.'
|
||||
'success' => 'The consumable was deleted successfully.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'assets_rtd' => 'Assets RTD',
|
||||
'assets_checkedout' => 'Assets Assigned',
|
||||
'id' => 'ID',
|
||||
'city' => 'City',
|
||||
'state' => 'State',
|
||||
@@ -13,5 +14,5 @@ return array(
|
||||
'zip' => 'Postal Code',
|
||||
'locations' => 'Locations',
|
||||
'parent' => 'Parent',
|
||||
'currency' => 'Location Currency', // this is deprecated
|
||||
'currency' => 'Location Currency',
|
||||
);
|
||||
|
||||
@@ -26,7 +26,8 @@ return array(
|
||||
'header_color' => 'Header Color',
|
||||
'info' => 'These settings let you customize certain aspects of your installation.',
|
||||
'laravel' => 'Laravel Version',
|
||||
'load_remote' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'load_remote_text' => 'Remote Scripts',
|
||||
'load_remote_help_text' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'logo' => 'Logo',
|
||||
'optional' => 'optional',
|
||||
'per_page' => 'Results Per Page',
|
||||
@@ -47,4 +48,7 @@ return array(
|
||||
'system' => 'System Information',
|
||||
'update' => 'Update Settings',
|
||||
'value' => 'Value',
|
||||
'brand' => 'Branding',
|
||||
'about_settings_title' => 'About Settings',
|
||||
'about_settings_text' => 'These settings let you customize certain aspects of your installation.',
|
||||
);
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
'date' => 'التاريخ',
|
||||
'delete' => 'حذف',
|
||||
'deleted' => 'تم حذفها',
|
||||
'delete_seats' => 'Deleted Seats',
|
||||
'deployed' => 'مُوزعة',
|
||||
'depreciation_report' => 'تقرير الإستهلاك',
|
||||
'download' => 'Download',
|
||||
|
||||
@@ -5,11 +5,14 @@ return array(
|
||||
'about_accessories_text' => 'Аксесоарите са всички неща, които се изписват на потребителите, но нямат сериен номер (или няма нужда да бъдат конкретно проследявани). Например, това са мишки, клавиатури и др.',
|
||||
'accessory_category' => 'Категория аксесоари',
|
||||
'accessory_name' => 'Аксесоар',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Създаване на аксесоар',
|
||||
'date' => 'Purchase Date',
|
||||
'eula_text' => 'EULA на категорията',
|
||||
'eula_text_help' => 'Това поле позволява да задавате различни EULA за всеки тип активи. Ако имате обща EULA за всички активи, можете да използвате кутийката по-долу за да използвате една обща по подразбиране.',
|
||||
'require_acceptance' => 'Задължаване на потребителите да потвърждават приемането на активи от тази категория.',
|
||||
'no_default_eula' => 'Няма EULA по подразбиране. Добавете я в Настройки.',
|
||||
'order' => 'Order Number',
|
||||
'qty' => 'Количество',
|
||||
'total' => 'Oбщо',
|
||||
'remaining' => 'Наличност',
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
'supplier_name' => 'Доставчик',
|
||||
'is_warranty' => 'Гаранция',
|
||||
'dl_csv' => 'Сваляне на CSV'
|
||||
];
|
||||
];
|
||||
|
||||
@@ -4,7 +4,10 @@ return array(
|
||||
'about_consumables_title' => 'Относно консумативите',
|
||||
'about_consumables_text' => 'Консумативите са всички неща, купувани във времето. Например тонер за принтер или хартия.',
|
||||
'consumable_name' => 'Консуматив',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Създаване на консуматив',
|
||||
'date' => 'Purchase Date',
|
||||
'order' => 'Order Number',
|
||||
'remaining' => 'Остава',
|
||||
'total' => 'Oбщо',
|
||||
'update' => 'Обновяване на консуматив',
|
||||
|
||||
@@ -15,9 +15,9 @@ return array(
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Сигурни ли сте, че желаете да изтриете аксесоара?',
|
||||
'confirm' => 'Желаете ли изтриване на консуматива?',
|
||||
'error' => 'Проблем при изтриването на консуматива. Моля опитайте отново.',
|
||||
'success' => 'Аксесоарът беше изтрит успешно.'
|
||||
'success' => 'Консумативът изтрит успешно.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'assets_rtd' => 'Assets RTD',
|
||||
'assets_checkedout' => 'Assets Assigned',
|
||||
'id' => 'ID',
|
||||
'city' => 'Град',
|
||||
'state' => 'Област',
|
||||
@@ -13,5 +14,5 @@ return array(
|
||||
'zip' => 'Пощенски код',
|
||||
'locations' => 'Местоположения',
|
||||
'parent' => 'Присъединено към',
|
||||
'currency' => 'Валута на местоположението', // this is deprecated
|
||||
'currency' => 'Валута на местоположението',
|
||||
);
|
||||
|
||||
@@ -22,11 +22,12 @@ return array(
|
||||
'eula_settings' => 'Настройки на EULA',
|
||||
'eula_markdown' => 'Съдържанието на EULA може да бъде форматирано с <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>.',
|
||||
'general_settings' => 'Общи настройки',
|
||||
'generate_backup' => 'Generate Backup',
|
||||
'generate_backup' => 'Създаване на архив',
|
||||
'header_color' => 'Цвят на хедъра',
|
||||
'info' => 'Тези настройки позволяват да конфигурирате различни аспекти на Вашата инсталация.',
|
||||
'laravel' => 'Версия на Laravel',
|
||||
'load_remote' => 'Тази Snipe-IT инсталация може да зарежда и изпълнява външни скриптове.',
|
||||
'load_remote_text' => 'Remote Scripts',
|
||||
'load_remote_help_text' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'logo' => 'Лого',
|
||||
'optional' => 'незадължително',
|
||||
'per_page' => 'Резултати на страница',
|
||||
@@ -47,4 +48,7 @@ return array(
|
||||
'system' => 'Информация за системата',
|
||||
'update' => 'Обновяване на настройките',
|
||||
'value' => 'Стойност',
|
||||
'brand' => 'Branding',
|
||||
'about_settings_title' => 'About Settings',
|
||||
'about_settings_text' => 'These settings let you customize certain aspects of your installation.',
|
||||
);
|
||||
|
||||
@@ -19,24 +19,24 @@ return array(
|
||||
'delete' => 'Потребителят е изтрит.',
|
||||
'ban' => 'Потребителят беше забранен успешно.',
|
||||
'unban' => 'Потребителят възстановен успешно.',
|
||||
'suspend' => 'User was successfully suspended.',
|
||||
'unsuspend' => 'User was successfully unsuspended.',
|
||||
'suspend' => 'Потребителят бе временно спрян.',
|
||||
'unsuspend' => 'Потребителят активиран успешно.',
|
||||
'restored' => 'Потребителят е възстановен.',
|
||||
'import' => 'Users imported successfully.',
|
||||
'import' => 'Потребителите заредени успешно.',
|
||||
),
|
||||
|
||||
'error' => array(
|
||||
'create' => 'Възникна проблем при създаването на този потребител. Моля, опитайте отново.',
|
||||
'update' => 'Възникна проблем при обновяването на този потребител. Моля, опитайте отново.',
|
||||
'delete' => 'Възникна проблем при изтриването на този потребител. Моля, опитайте отново.',
|
||||
'unsuspend' => 'There was an issue unsuspending the user. Please try again.',
|
||||
'import' => 'There was an issue importing users. Please try again.',
|
||||
'unsuspend' => 'Проблем при активирането на потребителя. Моля опитайте отново.',
|
||||
'import' => 'Проблем при зареждането на потребителите. Моля опитайте отново.',
|
||||
'asset_already_accepted' => 'Този актив е вече приет.',
|
||||
'accept_or_decline' => 'Трябва да приемете или да откажете този актив.',
|
||||
'ldap_could_not_connect' => 'Could not connect to the LDAP server. Please check your LDAP server configuration in the LDAP config file. <br>Error from LDAP Server:',
|
||||
'ldap_could_not_bind' => 'Could not bind to the LDAP server. Please check your LDAP server configuration in the LDAP config file. <br>Error from LDAP Server: ',
|
||||
'ldap_could_not_search' => 'Could not search the LDAP server. Please check your LDAP server configuration in the LDAP config file. <br>Error from LDAP Server:',
|
||||
'ldap_could_not_get_entries' => 'Could not get entries from the LDAP server. Please check your LDAP server configuration in the LDAP config file. <br>Error from LDAP Server:',
|
||||
'ldap_could_not_connect' => 'Проблем при комуникацията с LDAP сървъра. Моля прегледайте конфигурацията на LDAP.<br/>Грешка от LDAP сървъра: ',
|
||||
'ldap_could_not_bind' => 'Проблем при връзката с LDAP сървъра. Моля прегледайте конфигурацията на LDAP.<br/>Грешка от LDAP сървъра: ',
|
||||
'ldap_could_not_search' => 'Проблем при търсенето в LDAP сървъра. Моля прегледайте конфигурацията на LDAP.<br/>Грешка от LDAP сървъра: ',
|
||||
'ldap_could_not_get_entries' => 'Проблем при извличането на резултат от LDAP сървъра. Моля прегледайте конфигурацията на LDAP.<br/>Грешка от LDAP сървъра:',
|
||||
),
|
||||
|
||||
'deletefile' => array(
|
||||
@@ -45,10 +45,10 @@ return array(
|
||||
),
|
||||
|
||||
'upload' => array(
|
||||
'error' => 'File(s) not uploaded. Please try again.',
|
||||
'success' => 'File(s) successfully uploaded.',
|
||||
'nofiles' => 'You did not select any files for upload',
|
||||
'invalidfiles' => 'One or more of your files is too large or is a filetype that is not allowed. Allowed filetypes are png, gif, jpg, doc, docx, pdf, and txt.',
|
||||
'error' => 'Проблем при качването на файл/овете. Моля опитайте отново.',
|
||||
'success' => 'Файл/овете качени успешно.',
|
||||
'nofiles' => 'Не сте избрали файлове за качване',
|
||||
'invalidfiles' => 'Един или повече файлове са твърде големи или с неразрешен тип. Разрешените типове файлове са png, gif, jpg, doc, docx, pdf, и txt.',
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
'date' => 'Дата',
|
||||
'delete' => 'Изтриване',
|
||||
'deleted' => 'Изтрито',
|
||||
'delete_seats' => 'Deleted Seats',
|
||||
'deployed' => 'Изписани',
|
||||
'depreciation_report' => 'Справка за амортизации',
|
||||
'download' => 'Изтегляне',
|
||||
@@ -90,53 +91,53 @@
|
||||
'no' => 'Не',
|
||||
'notes' => 'Бележки',
|
||||
'page_menu' => 'Показване на _MENU_ записа',
|
||||
'pagination_info' => 'Showing _START_ to _END_ of _TOTAL_ items',
|
||||
'pending' => 'Pending',
|
||||
'people' => 'People',
|
||||
'per_page' => 'Results Per Page',
|
||||
'pagination_info' => 'Показване на _START_ до _END_ от _TOTAL_ елемента',
|
||||
'pending' => 'Изчакване',
|
||||
'people' => 'Потребители',
|
||||
'per_page' => 'Резултати на страница',
|
||||
'previous' => 'Предишен',
|
||||
'processing' => 'Processing',
|
||||
'profile' => 'Your profile',
|
||||
'processing' => 'Обработка',
|
||||
'profile' => 'Вашият профил',
|
||||
'qty' => 'Количество',
|
||||
'quanitity' => 'Количество',
|
||||
'ready_to_deploy' => 'Ready to Deploy',
|
||||
'recent_activity' => 'Recent Activity',
|
||||
'reports' => 'Reports',
|
||||
'requested' => 'Requested',
|
||||
'ready_to_deploy' => 'Готово за предоставяне',
|
||||
'recent_activity' => 'Последни действия',
|
||||
'reports' => 'Справки',
|
||||
'requested' => 'Изискан',
|
||||
'save' => 'Запис',
|
||||
'select' => 'Select',
|
||||
'select' => 'Избор',
|
||||
'search' => 'Търсене',
|
||||
'select_depreciation' => 'Select a Depreciation Type',
|
||||
'select_location' => 'Select a Location',
|
||||
'select_manufacturer' => 'Select a Manufacturer',
|
||||
'select_model' => 'Select a Model',
|
||||
'select_supplier' => 'Select a Supplier',
|
||||
'select_user' => 'Select a User',
|
||||
'select_date' => 'Select Date',
|
||||
'select_statuslabel' => 'Select Status',
|
||||
'settings' => 'Settings',
|
||||
'sign_in' => 'Sign in',
|
||||
'site_name' => 'Site Name',
|
||||
'state' => 'State',
|
||||
'status_labels' => 'Status Labels',
|
||||
'status' => 'Status',
|
||||
'suppliers' => 'Suppliers',
|
||||
'total_assets' => 'total assets',
|
||||
'total_licenses' => 'total licenses',
|
||||
'type' => 'Type',
|
||||
'undeployable' => 'Un-deployable',
|
||||
'unknown_admin' => 'Unknown Admin',
|
||||
'update' => 'Update',
|
||||
'uploaded' => 'Uploaded',
|
||||
'user' => 'User',
|
||||
'accepted' => 'accepted',
|
||||
'declined' => 'declined',
|
||||
'unaccepted_asset_report' => 'Unaccepted Assets',
|
||||
'users' => 'Users',
|
||||
'viewassets' => 'View Assigned Assets',
|
||||
'website' => 'Website',
|
||||
'welcome' => 'Welcome, :name',
|
||||
'years' => 'years',
|
||||
'yes' => 'Yes',
|
||||
'zip' => 'Zip',
|
||||
'select_depreciation' => 'Избор на вид амортизация',
|
||||
'select_location' => 'Избор на местоположение',
|
||||
'select_manufacturer' => 'Избор на производител',
|
||||
'select_model' => 'Избор на модел',
|
||||
'select_supplier' => 'Избор на доставчик',
|
||||
'select_user' => 'Избор на потребител',
|
||||
'select_date' => 'Избор на дата',
|
||||
'select_statuslabel' => 'Избор на статус',
|
||||
'settings' => 'Настройки',
|
||||
'sign_in' => 'Вход',
|
||||
'site_name' => 'Име на системата',
|
||||
'state' => 'Област',
|
||||
'status_labels' => 'Статус етикети',
|
||||
'status' => 'Статус',
|
||||
'suppliers' => 'Доставчици',
|
||||
'total_assets' => 'общо активи',
|
||||
'total_licenses' => 'общо лицензи',
|
||||
'type' => 'Тип',
|
||||
'undeployable' => 'Не може да бъде предоставян',
|
||||
'unknown_admin' => 'Непознат администратор',
|
||||
'update' => 'Обновяване',
|
||||
'uploaded' => 'Качен',
|
||||
'user' => 'Потребител',
|
||||
'accepted' => 'приет',
|
||||
'declined' => 'отказан',
|
||||
'unaccepted_asset_report' => 'Неприети активи',
|
||||
'users' => 'Потребители',
|
||||
'viewassets' => 'Преглед на изписаните активи',
|
||||
'website' => 'Страница',
|
||||
'welcome' => 'Добре дошли, :name',
|
||||
'years' => 'години',
|
||||
'yes' => 'Да',
|
||||
'zip' => 'Пощенски код',
|
||||
];
|
||||
|
||||
@@ -5,11 +5,14 @@ return array(
|
||||
'about_accessories_text' => 'Příslušenství je cokoliv, co předáte uživatelům, ale nemá to sérivoé číslo (nebo to neevidujete). Např. myš, klávesnice.',
|
||||
'accessory_category' => 'Kategorie příslušenství',
|
||||
'accessory_name' => 'Název příslušenství',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Vytvoř příslušenství',
|
||||
'date' => 'Purchase Date',
|
||||
'eula_text' => 'Kategorie EULA',
|
||||
'eula_text_help' => 'Toto pole umožňuje upravit EULA pro různé druhy majetku. Pokud máte pouze jeden typ pro všechen majetek, můžete zaškrtnout položku níže pro použití jako výchozí.',
|
||||
'require_acceptance' => 'Požadovat potvrzení převzetí majetku v této kategorii.',
|
||||
'no_default_eula' => 'Žádná primární EULA. Přidat novou v Nastavení.',
|
||||
'order' => 'Order Number',
|
||||
'qty' => 'Množství',
|
||||
'total' => 'CELKEM',
|
||||
'remaining' => 'Dostupný',
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'asset_maintenance_type' => 'Asset Maintenance Type',
|
||||
'asset_maintenance_type' => 'Maintenance Type',
|
||||
'title' => 'Title',
|
||||
'start_date' => 'Začátek',
|
||||
'completion_date' => 'Completion Date',
|
||||
'completion_date' => 'Completed',
|
||||
'cost' => 'Cena',
|
||||
'is_warranty' => 'Warranty Improvement',
|
||||
'asset_maintenance_time' => 'Asset Maintenance Time (in days)',
|
||||
'asset_maintenance_time' => 'Days',
|
||||
'notes' => 'Poznámky',
|
||||
'update' => 'Update Asset Maintenance',
|
||||
'create' => 'Create Asset Maintenance'
|
||||
'update' => 'Update',
|
||||
'create' => 'Create'
|
||||
];
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
'supplier_name' => 'Dodavatel',
|
||||
'is_warranty' => 'Záruka',
|
||||
'dl_csv' => 'Stáhnout CSV'
|
||||
];
|
||||
];
|
||||
|
||||
@@ -4,7 +4,10 @@ return array(
|
||||
'about_consumables_title' => 'About Consumables',
|
||||
'about_consumables_text' => 'Consumables are anything purchased that will be used up over time. For example, printer ink or copier paper.',
|
||||
'consumable_name' => 'Consumable Name',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Create Consumable',
|
||||
'date' => 'Purchase Date',
|
||||
'order' => 'Order Number',
|
||||
'remaining' => 'Zbývá',
|
||||
'total' => 'Celkem',
|
||||
'update' => 'Update Consumable',
|
||||
|
||||
@@ -15,9 +15,9 @@ return array(
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this accessory?',
|
||||
'confirm' => 'Are you sure you wish to delete this consumable?',
|
||||
'error' => 'There was an issue deleting the consumable. Please try again.',
|
||||
'success' => 'The accessory was deleted successfully.'
|
||||
'success' => 'The consumable was deleted successfully.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'assets_rtd' => 'Assets RTD',
|
||||
'assets_checkedout' => 'Assets Assigned',
|
||||
'id' => 'ID',
|
||||
'city' => 'Město',
|
||||
'state' => 'Stát',
|
||||
@@ -13,5 +14,5 @@ return array(
|
||||
'zip' => 'PSČ',
|
||||
'locations' => 'Umístění',
|
||||
'parent' => 'Parent',
|
||||
'currency' => 'Location Currency', // this is deprecated
|
||||
'currency' => 'Location Currency',
|
||||
);
|
||||
|
||||
@@ -26,7 +26,8 @@ return array(
|
||||
'header_color' => 'Barva záhlaví',
|
||||
'info' => 'Tato nastavení umožňují zvolit určité prvky instalace.',
|
||||
'laravel' => 'Verze Laravel',
|
||||
'load_remote' => 'Tato instalace Snipe-IT může nahrávat skripty z vnějšího světa.',
|
||||
'load_remote_text' => 'Remote Scripts',
|
||||
'load_remote_help_text' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'logo' => 'Logo',
|
||||
'optional' => 'volitelný',
|
||||
'per_page' => 'Výsledků na stránku',
|
||||
@@ -47,4 +48,7 @@ return array(
|
||||
'system' => 'Systémové informace',
|
||||
'update' => 'Upravit nastavení',
|
||||
'value' => 'Hodnota',
|
||||
'brand' => 'Branding',
|
||||
'about_settings_title' => 'About Settings',
|
||||
'about_settings_text' => 'These settings let you customize certain aspects of your installation.',
|
||||
);
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
'date' => 'Datum',
|
||||
'delete' => 'Odstranit',
|
||||
'deleted' => 'Odstraněno',
|
||||
'delete_seats' => 'Deleted Seats',
|
||||
'deployed' => 'Vydané',
|
||||
'depreciation_report' => 'Report zastarání',
|
||||
'download' => 'Stáhnout',
|
||||
|
||||
@@ -5,11 +5,14 @@ return array(
|
||||
'about_accessories_text' => 'Tilbehør er alt du udleverer til brugere men som ikke har et serienummer (eller som du er ligeglad med følge præcist). For eksempel, computermus eller tastaturer.',
|
||||
'accessory_category' => 'Tilbehør Kategori',
|
||||
'accessory_name' => 'Tilbehør Navn',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Create Accessory',
|
||||
'date' => 'Purchase Date',
|
||||
'eula_text' => 'Slutbrugerlicenskategori',
|
||||
'eula_text_help' => 'Dette felt tillader dig at tilpasse din slutbrugerlicens til specifikke typer af tilbehør. Hvis du kun har en slutbrugerlicens for alle dine tilbehør, kan du afkrydse boksen nedenfor for at bruge den primære standardlicens.',
|
||||
'require_acceptance' => 'Kræver brugere at bekræfte accept af tilbehør i denne kategori.',
|
||||
'no_default_eula' => 'Ingen primær standard slutbrugerlicens blev fundet. Tilføj en under Indstillinger.',
|
||||
'order' => 'Order Number',
|
||||
'qty' => 'STK',
|
||||
'total' => 'I alt',
|
||||
'remaining' => 'Tilgængelig',
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'asset_maintenance_type' => 'Asset Maintenance Type',
|
||||
'asset_maintenance_type' => 'Maintenance Type',
|
||||
'title' => 'Title',
|
||||
'start_date' => 'Start Date',
|
||||
'completion_date' => 'Completion Date',
|
||||
'start_date' => 'Started',
|
||||
'completion_date' => 'Completed',
|
||||
'cost' => 'Cost',
|
||||
'is_warranty' => 'Warranty Improvement',
|
||||
'asset_maintenance_time' => 'Asset Maintenance Time (in days)',
|
||||
'asset_maintenance_time' => 'Days',
|
||||
'notes' => 'Notes',
|
||||
'update' => 'Update Asset Maintenance',
|
||||
'create' => 'Create Asset Maintenance'
|
||||
'update' => 'Update',
|
||||
'create' => 'Create'
|
||||
];
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
return [
|
||||
'title' => 'Asset Maintenance',
|
||||
'asset_name' => 'Asset Name',
|
||||
'supplier_name' => 'Supplier Name',
|
||||
'asset_name' => 'Asset',
|
||||
'supplier_name' => 'Supplier',
|
||||
'is_warranty' => 'Warranty',
|
||||
'dl_csv' => 'Download CSV'
|
||||
];
|
||||
];
|
||||
|
||||
@@ -4,7 +4,10 @@ return array(
|
||||
'about_consumables_title' => 'About Consumables',
|
||||
'about_consumables_text' => 'Consumables are anything purchased that will be used up over time. For example, printer ink or copier paper.',
|
||||
'consumable_name' => 'Consumable Name',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Create Consumable',
|
||||
'date' => 'Purchase Date',
|
||||
'order' => 'Order Number',
|
||||
'remaining' => 'Remaining',
|
||||
'total' => 'Total',
|
||||
'update' => 'Update Consumable',
|
||||
|
||||
@@ -15,9 +15,9 @@ return array(
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this accessory?',
|
||||
'confirm' => 'Are you sure you wish to delete this consumable?',
|
||||
'error' => 'There was an issue deleting the consumable. Please try again.',
|
||||
'success' => 'The accessory was deleted successfully.'
|
||||
'success' => 'The consumable was deleted successfully.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'assets_rtd' => 'Assets RTD',
|
||||
'assets_checkedout' => 'Assets Assigned',
|
||||
'id' => 'ID',
|
||||
'city' => 'City',
|
||||
'state' => 'State',
|
||||
@@ -13,5 +14,5 @@ return array(
|
||||
'zip' => 'Postal Code',
|
||||
'locations' => 'Locations',
|
||||
'parent' => 'Parent',
|
||||
'currency' => 'Location Currency', // this is deprecated
|
||||
'currency' => 'Location Currency',
|
||||
);
|
||||
|
||||
@@ -26,7 +26,8 @@ return array(
|
||||
'header_color' => 'Header Color',
|
||||
'info' => 'These settings let you customize certain aspects of your installation.',
|
||||
'laravel' => 'Laravel Version',
|
||||
'load_remote' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'load_remote_text' => 'Remote Scripts',
|
||||
'load_remote_help_text' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'logo' => 'Logo',
|
||||
'optional' => 'optional',
|
||||
'per_page' => 'Results Per Page',
|
||||
@@ -47,4 +48,7 @@ return array(
|
||||
'system' => 'System Information',
|
||||
'update' => 'Update Settings',
|
||||
'value' => 'Value',
|
||||
'brand' => 'Branding',
|
||||
'about_settings_title' => 'About Settings',
|
||||
'about_settings_text' => 'These settings let you customize certain aspects of your installation.',
|
||||
);
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
'date' => 'Dato',
|
||||
'delete' => 'Slet',
|
||||
'deleted' => 'Slettet',
|
||||
'delete_seats' => 'Deleted Seats',
|
||||
'deployed' => 'Implementeret',
|
||||
'depreciation_report' => 'Afskrivningsrapport',
|
||||
'download' => 'Hent',
|
||||
|
||||
@@ -5,11 +5,14 @@ return array(
|
||||
'about_accessories_text' => 'Ein Zubehör ist alles was Sie an einem Benutzer ausgeben können, jedoch keine Seriennummer besitzt (oder wo es keinen Sinn macht eben diese zu verwalten). Zum Beispiel: Computer Mäuse und Tastaturen.',
|
||||
'accessory_category' => 'Züberhor Kategorie',
|
||||
'accessory_name' => 'Zubehör Name',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Zubehör neu erstellen',
|
||||
'date' => 'Purchase Date',
|
||||
'eula_text' => 'Kategorie EULA',
|
||||
'eula_text_help' => 'Dieses Feld erlaubt Ihnen die EULA Ihren Bedürfnissen nach Asset Typ anzupassen.Wenn Sie nur eine EULA für alle Assets haben, aktivieren Sie die Checkbox unterhalb um die Standard EULA zu verwenden.',
|
||||
'require_acceptance' => 'Erfordert die Zustimmung der Assets in dieser Kategorie durch den Benutzer.',
|
||||
'no_default_eula' => 'Keine Standard EULA gefunden. Fügen Sie eine in den Einstellungen hinzu.',
|
||||
'order' => 'Order Number',
|
||||
'qty' => 'Anzahl',
|
||||
'total' => 'Gesamt',
|
||||
'remaining' => 'Verfügbar',
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
'supplier_name' => 'Hersteller',
|
||||
'is_warranty' => 'Garantie',
|
||||
'dl_csv' => 'Als CSV herunterladen'
|
||||
];
|
||||
];
|
||||
|
||||
@@ -4,7 +4,10 @@ return array(
|
||||
'about_consumables_title' => 'Details Verbrauchsmaterialien',
|
||||
'about_consumables_text' => 'Verbrauchsmaterialien sind alle Dinge, die gekauft und mit der Zeit aufgebraucht werden, wie z.B. Druckerpatronen oder Kopierpapier.',
|
||||
'consumable_name' => 'Name des Verbrauchsmaterials',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Verbrauchsmaterial erstellen',
|
||||
'date' => 'Purchase Date',
|
||||
'order' => 'Order Number',
|
||||
'remaining' => 'übrig',
|
||||
'total' => 'Gesamt',
|
||||
'update' => 'Verbrauchsmaterial überarbeiten',
|
||||
|
||||
@@ -15,9 +15,9 @@ return array(
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Wollen Sie dieses Zubehör wirklich löschen?',
|
||||
'confirm' => 'Sind Sie sicher, dass Sie dieses Verbrauchsmaterial löschen möchten?',
|
||||
'error' => 'Es gab Probleme das Verbrauchsmaterial zu löschen. Bitte versuchen Sie es noch einmal.',
|
||||
'success' => 'Zubehör wurde erfolgreich gelöscht.'
|
||||
'success' => 'Verbrauchsmaterial erfolgreich gelöscht.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'assets_rtd' => 'Assets RTD',
|
||||
'assets_checkedout' => 'Assets Assigned',
|
||||
'id' => 'ID',
|
||||
'city' => 'Stadt',
|
||||
'state' => 'Bundesland',
|
||||
@@ -13,5 +14,5 @@ return array(
|
||||
'zip' => 'Postleitzahl',
|
||||
'locations' => 'Standorte',
|
||||
'parent' => 'Hauptkategorie',
|
||||
'currency' => 'Landeswährung', // this is deprecated
|
||||
'currency' => 'Landeswährung',
|
||||
);
|
||||
|
||||
@@ -26,7 +26,8 @@ return array(
|
||||
'header_color' => 'Farbe der Kopfzeile',
|
||||
'info' => 'Mit diesen Einstellungen können Sie verschieden Aspekte Ihrer Installation bearbeiten.',
|
||||
'laravel' => 'Laravel Version',
|
||||
'load_remote' => 'Diese Installation von Snipe-IT kann Skripte aus der Aussenwelt laden.',
|
||||
'load_remote_text' => 'Remote Scripts',
|
||||
'load_remote_help_text' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'logo' => 'Logo',
|
||||
'optional' => 'optional',
|
||||
'per_page' => 'Ergebnisse pro Seite',
|
||||
@@ -47,4 +48,7 @@ return array(
|
||||
'system' => 'Systeminformationen',
|
||||
'update' => 'Einstellungen übernehmen',
|
||||
'value' => 'Wert',
|
||||
'brand' => 'Branding',
|
||||
'about_settings_title' => 'About Settings',
|
||||
'about_settings_text' => 'These settings let you customize certain aspects of your installation.',
|
||||
);
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
'date' => 'Purchase Date',
|
||||
'delete' => 'Löschen',
|
||||
'deleted' => 'Gelöscht',
|
||||
'delete_seats' => 'Deleted Seats',
|
||||
'deployed' => 'Herausgegeben',
|
||||
'depreciation_report' => 'Abschreibunsgreport',
|
||||
'download' => 'Download',
|
||||
|
||||
@@ -5,11 +5,14 @@ return array(
|
||||
'about_accessories_text' => 'Accessories are anything you issue to users but that do not have a serial number (or you do not care about tracking them uniquely). For example, computer mice or keyboards.',
|
||||
'accessory_category' => 'Accessory Category',
|
||||
'accessory_name' => 'Accessory Name',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Create Accessory',
|
||||
'date' => 'Purchase Date',
|
||||
'eula_text' => 'Category EULA',
|
||||
'eula_text_help' => 'This field allows you to customize your EULAs for specific types of assets. If you only have one EULA for all of your assets, you can check the box below to use the primary default.',
|
||||
'require_acceptance' => 'Require users to confirm acceptance of assets in this category.',
|
||||
'no_default_eula' => 'No primary default EULA found. Add one in Settings.',
|
||||
'order' => 'Order Number',
|
||||
'qty' => 'QTY',
|
||||
'total' => 'Total',
|
||||
'remaining' => 'Avail',
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
'supplier_name' => 'Supplier Name',
|
||||
'is_warranty' => 'Warranty',
|
||||
'dl_csv' => 'Download CSV'
|
||||
];
|
||||
];
|
||||
|
||||
@@ -4,7 +4,10 @@ return array(
|
||||
'about_consumables_title' => 'About Consumables',
|
||||
'about_consumables_text' => 'Consumables are anything purchased that will be used up over time. For example, printer ink or copier paper.',
|
||||
'consumable_name' => 'Consumable Name',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Create Consumable',
|
||||
'date' => 'Purchase Date',
|
||||
'order' => 'Order Number',
|
||||
'remaining' => 'Remaining',
|
||||
'total' => 'Total',
|
||||
'update' => 'Update Consumable',
|
||||
|
||||
@@ -15,9 +15,9 @@ return array(
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this accessory?',
|
||||
'confirm' => 'Are you sure you wish to delete this consumable?',
|
||||
'error' => 'There was an issue deleting the consumable. Please try again.',
|
||||
'success' => 'The accessory was deleted successfully.'
|
||||
'success' => 'The consumable was deleted successfully.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'assets_rtd' => 'Assets RTD',
|
||||
'assets_checkedout' => 'Assets Assigned',
|
||||
'id' => 'ID',
|
||||
'city' => 'City',
|
||||
'state' => 'State',
|
||||
@@ -13,5 +14,5 @@ return array(
|
||||
'zip' => 'Postal Code',
|
||||
'locations' => 'Locations',
|
||||
'parent' => 'Parent',
|
||||
'currency' => 'Location Currency', // this is deprecated
|
||||
'currency' => 'Location Currency',
|
||||
);
|
||||
|
||||
@@ -26,7 +26,8 @@ return array(
|
||||
'header_color' => 'Header Color',
|
||||
'info' => 'These settings let you customize certain aspects of your installation.',
|
||||
'laravel' => 'Laravel Version',
|
||||
'load_remote' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'load_remote_text' => 'Remote Scripts',
|
||||
'load_remote_help_text' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'logo' => 'Logo',
|
||||
'optional' => 'optional',
|
||||
'per_page' => 'Results Per Page',
|
||||
@@ -47,4 +48,7 @@ return array(
|
||||
'system' => 'System Information',
|
||||
'update' => 'Update Settings',
|
||||
'value' => 'Value',
|
||||
'brand' => 'Branding',
|
||||
'about_settings_title' => 'About Settings',
|
||||
'about_settings_text' => 'These settings let you customize certain aspects of your installation.',
|
||||
);
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
'date' => 'Date',
|
||||
'delete' => 'Delete',
|
||||
'deleted' => 'Deleted',
|
||||
'delete_seats' => 'Deleted Seats',
|
||||
'deployed' => 'Deployed',
|
||||
'depreciation_report' => 'Depreciation Report',
|
||||
'download' => 'Download',
|
||||
|
||||
@@ -1,20 +1,23 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'about_accessories_title' => 'About Accessories',
|
||||
'about_accessories_text' => 'Accessories are anything you issue to users but that do not have a serial number (or you do not care about tracking them uniquely). For example, computer mice or keyboards.',
|
||||
'accessory_category' => 'Accessory Category',
|
||||
'accessory_name' => 'Accessory Name',
|
||||
'create' => 'Create Accessory',
|
||||
'eula_text' => 'Category EULA',
|
||||
'eula_text_help' => 'This field allows you to customize your EULAs for specific types of assets. If you only have one EULA for all of your assets, you can check the box below to use the primary default.',
|
||||
'require_acceptance' => 'Require users to confirm acceptance of assets in this category.',
|
||||
'no_default_eula' => 'No primary default EULA found. Add one in Settings.',
|
||||
'about_accessories_title' => 'Tentang Aksesoris',
|
||||
'about_accessories_text' => 'Aksesoris adalah Aset yang tidak memiliki nomor seri (atau Anda tidak peduli tentang pelacakan mereka secara unik). Misalnya, mouse komputer atau keyboard.',
|
||||
'accessory_category' => 'Kategori Aksesoris',
|
||||
'accessory_name' => 'Nama Aksesoris',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Buat Aksesoris',
|
||||
'date' => 'Purchase Date',
|
||||
'eula_text' => 'Kategori EULA',
|
||||
'eula_text_help' => 'Bidang ini memungkinkan Anda untuk menyesuaikan EULA Anda untuk jenis tertentu dari aset. Jika Anda hanya memiliki satu EULA untuk semua aset Anda, Anda dapat memeriksa kotak di bawah untuk menggunakan default primer.',
|
||||
'require_acceptance' => 'Mengharuskan pengguna untuk mengkonfirmasi penerimaan aset dalam kategori ini.',
|
||||
'no_default_eula' => 'Tidak ada EULA standar utama yang ditemukan. Tambahkan satu di Settings.',
|
||||
'order' => 'Order Number',
|
||||
'qty' => 'QTY',
|
||||
'total' => 'Total',
|
||||
'remaining' => 'Avail',
|
||||
'update' => 'Update Accessory',
|
||||
'use_default_eula' => 'Use the <a href="#" data-toggle="modal" data-target="#eulaModal">primary default EULA</a> instead.',
|
||||
'use_default_eula_disabled' => '<del>Use the primary default EULA instead.</del> No primary default EULA is set. Please add one in Settings.',
|
||||
'remaining' => 'Tersedia',
|
||||
'update' => 'Perbarui Aksesoris',
|
||||
'use_default_eula' => 'Gunakan <a href="#" data-toggle="modal" data-target="#eulaModal"> standar primer EULA </a> gantinya.',
|
||||
'use_default_eula_disabled' => '<del> Gunakan EULA standar utama sebagai gantinya. </ del> Tidak ada standar utama EULA diatur. Silakan menambahkan satu di Settings.',
|
||||
|
||||
);
|
||||
|
||||
@@ -2,35 +2,35 @@
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Category does not exist.',
|
||||
'assoc_users' => 'This accessory currently has :count items checked out to users. Please check in the accessories and and try again. ',
|
||||
'does_not_exist' => 'Kategori tidak ada.',
|
||||
'assoc_users' => 'Aksesori saat ini memiliki :count item untuk pengguna. Silahkan cek di aksesoris dan dan coba lagi. ',
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Category was not created, please try again.',
|
||||
'success' => 'Category created successfully.'
|
||||
'error' => 'Kategori gagal dibuat, silakan coba lagi.',
|
||||
'success' => 'Kategori berhasil disimpan.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Category was not updated, please try again',
|
||||
'success' => 'Category updated successfully.'
|
||||
'error' => 'Kategori tidak terupdate, silakan coba lagi',
|
||||
'success' => 'Kategori berhasil diupdate.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this category?',
|
||||
'error' => 'There was an issue deleting the category. Please try again.',
|
||||
'success' => 'The category was deleted successfully.'
|
||||
'confirm' => 'Apakah Anda yakin ingin menghapus kategori ini?',
|
||||
'error' => 'Ada masalah menghapus kategori. Silakan coba lagi.',
|
||||
'success' => 'Kategori berhasil dihapus.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
'error' => 'Accessory was not checked out, please try again',
|
||||
'success' => 'Accessory checked out successfully.',
|
||||
'user_does_not_exist' => 'That user is invalid. Please try again.'
|
||||
'error' => 'Aksesori belum diperiksa, silakan coba lagi',
|
||||
'success' => 'Aksesori berhasil diperiksa.',
|
||||
'user_does_not_exist' => 'Pengguna yang tidak valid. Silakan coba lagi.'
|
||||
),
|
||||
|
||||
'checkin' => array(
|
||||
'error' => 'Accessory was not checked in, please try again',
|
||||
'success' => 'Accessory checked in successfully.',
|
||||
'user_does_not_exist' => 'That user is invalid. Please try again.'
|
||||
'error' => 'Aksesori belum diperiksa, silakan coba lagi',
|
||||
'success' => 'Aksesori berhasil diperiksa.',
|
||||
'user_does_not_exist' => 'Pengguna yang tidak valid. Silakan coba lagi.'
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'dl_csv' => 'Download CSV',
|
||||
'dl_csv' => 'Unduh CSV',
|
||||
'eula_text' => 'EULA',
|
||||
'id' => 'ID',
|
||||
'require_acceptance' => 'Acceptance',
|
||||
'title' => 'Accessory Name',
|
||||
'require_acceptance' => 'Penerimaan',
|
||||
'title' => 'Nama Aksesoris',
|
||||
|
||||
|
||||
);
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'asset_maintenance_type' => 'Asset Maintenance Type',
|
||||
'title' => 'Title',
|
||||
'start_date' => 'Start Date',
|
||||
'completion_date' => 'Completion Date',
|
||||
'cost' => 'Cost',
|
||||
'is_warranty' => 'Warranty Improvement',
|
||||
'asset_maintenance_time' => 'Asset Maintenance Time (in days)',
|
||||
'notes' => 'Notes',
|
||||
'update' => 'Update Asset Maintenance',
|
||||
'create' => 'Create Asset Maintenance'
|
||||
'asset_maintenance_type' => 'Jenis Pemeliharaan Aset',
|
||||
'title' => 'Judul',
|
||||
'start_date' => 'Tanggal Mulai',
|
||||
'completion_date' => 'Tanggal selesai',
|
||||
'cost' => 'Biaya',
|
||||
'is_warranty' => 'Peningkatan garansi',
|
||||
'asset_maintenance_time' => 'Waktu Maintenance aset (dalam hari)',
|
||||
'notes' => 'Catatan',
|
||||
'update' => 'Update Maintenance Aset',
|
||||
'create' => 'Buat Maintenance Aset'
|
||||
];
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'asset_maintenances' => 'Asset Maintenances',
|
||||
'edit' => 'Edit Asset Maintenance',
|
||||
'delete' => 'Delete Asset Maintenance',
|
||||
'view' => 'View Asset Maintenance Details',
|
||||
'repair' => 'Repair',
|
||||
'maintenance' => 'Maintenance',
|
||||
'upgrade' => 'Upgrade'
|
||||
'asset_maintenances' => 'Pemeliharaan Aset',
|
||||
'edit' => 'Edit Pemeliharaan Aset',
|
||||
'delete' => 'Hapus Pemeliharaan Aset',
|
||||
'view' => 'Tampilkan Detail Pemeliharaan Aet',
|
||||
'repair' => 'Perbaikan',
|
||||
'maintenance' => 'Pemeliharaan',
|
||||
'upgrade' => 'Perbarui'
|
||||
];
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'not_found' => 'Asset Maintenance you were looking for was not found!',
|
||||
'not_found' => 'Pemeliharaan Aset yang Anda cari tidak ditemukan!',
|
||||
'delete' => [
|
||||
'confirm' => 'Are you sure you wish to delete this asset maintenance?',
|
||||
'error' => 'There was an issue deleting the asset maintenance. Please try again.',
|
||||
'success' => 'The asset maintenance was deleted successfully.'
|
||||
'confirm' => 'Apakah Anda yakin ingin menghapus pemeliharaan aset ini?',
|
||||
'error' => 'Ada masalah menghapus pemeliharaan aset. Silakan coba lagi.',
|
||||
'success' => 'Pemeliharaan aset berhasil dihapus.'
|
||||
],
|
||||
'create' => [
|
||||
'error' => 'Asset Maintenance was not created, please try again.',
|
||||
'success' => 'Asset Maintenance created successfully.'
|
||||
'error' => 'Pemeliharaan Aset gagal dibuat, silakan coba lagi.',
|
||||
'success' => 'Pemeliharaan Aset berhasil dibuat.'
|
||||
],
|
||||
'asset_maintenance_incomplete' => 'Not Completed Yet',
|
||||
'warranty' => 'Warranty',
|
||||
'not_warranty' => 'Not Warranty',
|
||||
'asset_maintenance_incomplete' => 'Belum selesai',
|
||||
'warranty' => 'Jaminan',
|
||||
'not_warranty' => 'Tidak ada Jaminan',
|
||||
];
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'title' => 'Asset Maintenance',
|
||||
'asset_name' => 'Asset Name',
|
||||
'supplier_name' => 'Supplier Name',
|
||||
'is_warranty' => 'Warranty',
|
||||
'dl_csv' => 'Download CSV'
|
||||
];
|
||||
'title' => 'Pemeliharaan Aset',
|
||||
'asset_name' => 'Nama Aset',
|
||||
'supplier_name' => 'Nama Suplayer',
|
||||
'is_warranty' => 'Jaminan',
|
||||
'dl_csv' => 'Unduh CSV'
|
||||
];
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'about_asset_categories' => 'About Asset Categories',
|
||||
'about_categories' => 'Asset categories help you organize your assets. Some example categories might be "Desktops", "Laptops", "Mobile Phones", "Tablets", and so on, but you can use asset categories any way that makes sense for you.',
|
||||
'asset_categories' => 'Asset Categories',
|
||||
'category_name' => 'Category Name',
|
||||
'checkin_email' => 'Send email to user on checkin.',
|
||||
'clone' => 'Clone Category',
|
||||
'create' => 'Create Category',
|
||||
'edit' => 'Edit Category',
|
||||
'eula_text' => 'Category EULA',
|
||||
'eula_text_help' => 'This field allows you to customize your EULAs for specific types of assets. If you only have one EULA for all of your assets, you can check the box below to use the primary default.',
|
||||
'require_acceptance' => 'Require users to confirm acceptance of assets in this category.',
|
||||
'required_acceptance' => 'This user will be emailed with a link to confirm acceptance of this item.',
|
||||
'required_eula' => 'This user will be emailed a copy of the EULA',
|
||||
'no_default_eula' => 'No primary default EULA found. Add one in Settings.',
|
||||
'update' => 'Update Category',
|
||||
'use_default_eula' => 'Use the <a href="#" data-toggle="modal" data-target="#eulaModal">primary default EULA</a> instead.',
|
||||
'use_default_eula_disabled' => '<del>Use the primary default EULA instead.</del> No primary default EULA is set. Please add one in Settings.',
|
||||
'about_asset_categories' => 'Tentang Kategori Aset',
|
||||
'about_categories' => 'Kategori aset membantu Anda mengatur aset. Beberapa kategori contoh mungkin & quot; Desktop & quot;, & quot; Laptop & quot;, & quot; Mobile Phones & quot;, & quot; Tablet & quot;, dan sebagainya, tetapi Anda dapat menggunakan kategori aset dengan cara apapun yang masuk akal bagi Anda.',
|
||||
'asset_categories' => 'Kategori Aset',
|
||||
'category_name' => 'Nama Kategori',
|
||||
'checkin_email' => 'Kirim email ke pengguna saat pengecekan.',
|
||||
'clone' => 'Salin Kategori',
|
||||
'create' => 'Buat Kategori',
|
||||
'edit' => 'Edit Kategori',
|
||||
'eula_text' => 'Kategori EULA',
|
||||
'eula_text_help' => 'Bidang ini memungkinkan Anda untuk menyesuaikan EULA Anda untuk jenis tertentu dari aset. Jika Anda hanya memiliki satu EULA untuk semua aset Anda, Anda dapat memeriksa kotak di bawah untuk menggunakan default primer.',
|
||||
'require_acceptance' => 'Mengharuskan pengguna untuk mengkonfirmasi penerimaan aset dalam kategori ini.',
|
||||
'required_acceptance' => 'Pengguna ini akan dikirimkan melalui email dengan link untuk mengkonfirmasi penerimaan item ini.',
|
||||
'required_eula' => 'Pengguna ini akan dikirimkan melalui email salinan EULA',
|
||||
'no_default_eula' => 'Tidak ada EULA standar utama yang ditemukan. Tambahkan satu di Settings.',
|
||||
'update' => 'Update Kategori',
|
||||
'use_default_eula' => 'Gunakan <a href="#" data-toggle="modal" data-target="#eulaModal"> standar primer EULA </a> gantinya.',
|
||||
'use_default_eula_disabled' => '<del> Gunakan EULA standar utama sebagai gantinya. </ del> Tidak ada standar utama EULA diatur. Silakan menambahkan satu di Settings.',
|
||||
|
||||
);
|
||||
|
||||
@@ -2,23 +2,23 @@
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Category does not exist.',
|
||||
'assoc_users' => 'This category is currently associated with at least one model and cannot be deleted. Please update your models to no longer reference this category and try again. ',
|
||||
'does_not_exist' => 'Kategori tidak ada.',
|
||||
'assoc_users' => 'Kategori ini saat ini terkait dengan setidaknya satu model dan tidak dapat dihapus. Silahkan update model Anda untuk tidak lagi tereferensi dengan kategori ini dan coba lagi. ',
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Category was not created, please try again.',
|
||||
'success' => 'Category created successfully.'
|
||||
'error' => 'Kategori gagal dibuat, silahkan coba lagi.',
|
||||
'success' => 'Kategori Berhasil dibuat.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Category was not updated, please try again',
|
||||
'success' => 'Category updated successfully.'
|
||||
'error' => 'Kategori gagal diupdate, silahkan coba lagi',
|
||||
'success' => 'Kategori berhasil diupdate.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this category?',
|
||||
'error' => 'There was an issue deleting the category. Please try again.',
|
||||
'success' => 'The category was deleted successfully.'
|
||||
'confirm' => 'Apakah Anda yakin ingin menghapus kategori ini?',
|
||||
'error' => 'Ada masalah saat menghapus kategori. Silakan coba lagi.',
|
||||
'success' => 'Kategori berhasil dihapus.'
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
return array(
|
||||
'eula_text' => 'EULA',
|
||||
'id' => 'ID',
|
||||
'parent' => 'Parent',
|
||||
'require_acceptance' => 'Acceptance',
|
||||
'title' => 'Asset Category Name',
|
||||
'parent' => 'Induk',
|
||||
'require_acceptance' => 'Penerimaan',
|
||||
'title' => 'Nama Kategori Aset',
|
||||
|
||||
);
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'about_consumables_title' => 'About Consumables',
|
||||
'about_consumables_text' => 'Consumables are anything purchased that will be used up over time. For example, printer ink or copier paper.',
|
||||
'consumable_name' => 'Consumable Name',
|
||||
'create' => 'Create Consumable',
|
||||
'remaining' => 'Remaining',
|
||||
'about_consumables_title' => 'Tentang Consumables',
|
||||
'about_consumables_text' => 'Consumables adalah sesuatu yang dibeli yang akan digunakan dari waktu ke waktu. Misalnya, tinta printer atau kertas fotokopi.',
|
||||
'consumable_name' => 'Nama Consumable',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Buat Consumable',
|
||||
'date' => 'Purchase Date',
|
||||
'order' => 'Order Number',
|
||||
'remaining' => 'Tersisa',
|
||||
'total' => 'Total',
|
||||
'update' => 'Update Consumable',
|
||||
);
|
||||
|
||||
@@ -2,34 +2,34 @@
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Consumable does not exist.',
|
||||
'does_not_exist' => 'Consumable Tidak ada.',
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Consumable was not created, please try again.',
|
||||
'success' => 'Consumable created successfully.'
|
||||
'error' => 'Consumable gagal dibuat, silahkan coba lagi.',
|
||||
'success' => 'Consumable berhasil dibuat.'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Consumable was not updated, please try again',
|
||||
'success' => 'Consumable updated successfully.'
|
||||
'error' => 'Consumable gagal diupdate, silahkan coba lagi',
|
||||
'success' => 'Consumable berhasil diupdate.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this accessory?',
|
||||
'error' => 'There was an issue deleting the consumable. Please try again.',
|
||||
'success' => 'The accessory was deleted successfully.'
|
||||
'confirm' => 'Apakah Anda yakin ingin menghapus Consumable ini?',
|
||||
'error' => 'Ada masalah menghapus Consumable. Silakan coba lagi.',
|
||||
'success' => 'Consumable berhasil dihapus.'
|
||||
),
|
||||
|
||||
'checkout' => array(
|
||||
'error' => 'Consumable was not checked out, please try again',
|
||||
'success' => 'Consumable checked out successfully.',
|
||||
'user_does_not_exist' => 'That user is invalid. Please try again.'
|
||||
'error' => 'Consumable tidak diperiksa, silakan coba lagi',
|
||||
'success' => 'Consumable berhasil diperiksa.',
|
||||
'user_does_not_exist' => 'Pengguna tidak valid. Silakan coba lagi.'
|
||||
),
|
||||
|
||||
'checkin' => array(
|
||||
'error' => 'Consumable was not checked in, please try again',
|
||||
'success' => 'Consumable checked in successfully.',
|
||||
'user_does_not_exist' => 'That user is invalid. Please try again.'
|
||||
'error' => 'Consumable tidak diperiksa, silakan coba lagi',
|
||||
'success' => 'Consumable berhasil di-check in.',
|
||||
'user_does_not_exist' => 'Pengguna tidak valid. Silakan coba lagi.'
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'title' => 'Consumable Name',
|
||||
'title' => 'Nama Konsumable',
|
||||
);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'about_asset_depreciations' => 'About Asset Depreciations',
|
||||
'about_depreciations' => 'You can set up asset depreciations to depreciate assets based on straight-line depreciation.',
|
||||
'asset_depreciations' => 'Asset Depreciations',
|
||||
'create_depreciation' => 'Create Depreciation',
|
||||
'depreciation_name' => 'Depreciation Name',
|
||||
'number_of_months' => 'Number of Months',
|
||||
'update_depreciation' => 'Update Depreciation',
|
||||
'about_asset_depreciations' => 'Tentang Penyusutan Aset',
|
||||
'about_depreciations' => 'Anda dapat mengatur depresiasi aset berdasarkan straight-line depreciation.',
|
||||
'asset_depreciations' => 'Penyusutan Aset',
|
||||
'create_depreciation' => 'Buat Penyusutan',
|
||||
'depreciation_name' => 'Nama Penyusutan',
|
||||
'number_of_months' => 'Jumlah Bulan',
|
||||
'update_depreciation' => 'Update Penyusutan',
|
||||
|
||||
);
|
||||
|
||||
@@ -2,24 +2,24 @@
|
||||
|
||||
return array(
|
||||
|
||||
'does_not_exist' => 'Depreciation class does not exist.',
|
||||
'assoc_users' => 'This depreciation is currently associated with one or more models and cannot be deleted. Please delete the models, and then try deleting again. ',
|
||||
'does_not_exist' => 'Kelas penyusutan tidak ada.',
|
||||
'assoc_users' => 'Penyusutan ini terkait dengan satu atau lebih model dan tidak dapat dihapus. Hapus model, dan kemudian coba hapus lagi. ',
|
||||
|
||||
|
||||
'create' => array(
|
||||
'error' => 'Depreciation class was not created, please try again. :(',
|
||||
'success' => 'Depreciation class created successfully. :)'
|
||||
'error' => 'Kelas depresiasi gagal dibuat, silakan coba lagi. :(',
|
||||
'success' => 'Kelas penyusutan berhasil dibuat. :)'
|
||||
),
|
||||
|
||||
'update' => array(
|
||||
'error' => 'Depreciation class was not updated, please try again',
|
||||
'success' => 'Depreciation class updated successfully.'
|
||||
'error' => 'Kelas depresiasi gagal diperbarui, silakan coba lagi',
|
||||
'success' => 'Kelas penyusutan berhasil diperbarui.'
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this depreciation class?',
|
||||
'error' => 'There was an issue deleting the depreciation class. Please try again.',
|
||||
'success' => 'The depreciation class was deleted successfully.'
|
||||
'confirm' => 'Apakah Anda yakin ingin menghapus kelas depresiasi ini?',
|
||||
'error' => 'Ada masalah menghapus kelas penyusutan. Silakan coba lagi.',
|
||||
'success' => 'Kelas depresiasi berhasil dihapus.'
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
return array(
|
||||
|
||||
'id' => 'ID',
|
||||
'months' => 'Months',
|
||||
'months' => 'Bulan',
|
||||
'term' => 'Term',
|
||||
'title' => 'Name ',
|
||||
'title' => 'Nama ',
|
||||
|
||||
);
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
|
||||
return array(
|
||||
|
||||
'group_exists' => 'Group already exists!',
|
||||
'group_not_found' => 'Group [:id] does not exist.',
|
||||
'group_name_required' => 'The name field is required',
|
||||
'group_exists' => 'Grup sudah ada!',
|
||||
'group_not_found' => 'Group [:id] tidak ada.',
|
||||
'group_name_required' => 'Nama field diperlukan',
|
||||
|
||||
'success' => array(
|
||||
'create' => 'Group was successfully created.',
|
||||
'update' => 'Group was successfully updated.',
|
||||
'delete' => 'Group was successfully deleted.',
|
||||
'create' => 'Group berhasil dibuat.',
|
||||
'update' => 'Grup berhasil diperbarui.',
|
||||
'delete' => 'Grup berhasil dihapus.',
|
||||
),
|
||||
|
||||
'delete' => array(
|
||||
'confirm' => 'Are you sure you wish to delete this group?',
|
||||
'create' => 'There was an issue creating the group. Please try again.',
|
||||
'update' => 'There was an issue updating the group. Please try again.',
|
||||
'delete' => 'There was an issue deleting the group. Please try again.',
|
||||
'confirm' => 'Apakah Anda yakin ingin menghapus grup ini?',
|
||||
'create' => 'Ada masalah saat membuat Grup. Silakan coba lagi.',
|
||||
'update' => 'Ada masalah saat memperbarui Grup. Silakan coba lagi.',
|
||||
'delete' => 'Ada masalah saat menghapus grup. Silakan coba lagi.',
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
return array(
|
||||
|
||||
'id' => 'Id',
|
||||
'name' => 'Name',
|
||||
'users' => '# of Users',
|
||||
'name' => 'Nama',
|
||||
'users' => '# Pengguna',
|
||||
|
||||
);
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
return array(
|
||||
|
||||
'group_management' => 'Group Management',
|
||||
'create_group' => 'Create New Group',
|
||||
'edit_group' => 'Edit Group',
|
||||
'group_name' => 'Group Name',
|
||||
'group_admin' => 'Group Admin',
|
||||
'allow' => 'Allow',
|
||||
'deny' => 'Deny',
|
||||
'group_management' => 'Manajemen grup',
|
||||
'create_group' => 'Buat Grup Baru',
|
||||
'edit_group' => 'Edit Grup',
|
||||
'group_name' => 'Nama Grup',
|
||||
'group_admin' => 'Admin Kelompok',
|
||||
'allow' => 'Diijinkan',
|
||||
'deny' => 'Dilarang',
|
||||
|
||||
);
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
return array(
|
||||
|
||||
'bulk_update' => 'Bulk Update Assets',
|
||||
'bulk_update_help' => 'This form allows you to update multiple assets at once. Only fill in the fields you need to change. Any fields left blank will remain unchanged. ',
|
||||
'bulk_update_warn' => 'You are about to edit the properties of :asset_count assets.',
|
||||
'checkedout_to' => 'Checked Out To',
|
||||
'checkout_date' => 'Checkout Date',
|
||||
'checkin_date' => 'Checkin Date',
|
||||
'bulk_update' => 'Perbarui Aset secara massal',
|
||||
'bulk_update_help' => 'Formulir ini memungkinkan Anda untuk memperbarui beberapa aset sekaligus. Hanya mengisi kolom yang Anda butuhkan untuk mengubah. Setiap bidang dibiarkan kosong tidak berubah. ',
|
||||
'bulk_update_warn' => 'Anda akan mengedit properti :asset_count aset.',
|
||||
'checkedout_to' => 'Checkout ke',
|
||||
'checkout_date' => 'Tanggal Check out',
|
||||
'checkin_date' => 'Tanggal Check in',
|
||||
'checkout_to' => 'Checkout to',
|
||||
'cost' => 'Purchase Cost',
|
||||
'create' => 'Create Asset',
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user