mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
5711706367
|
@ -763,7 +763,7 @@ class ReportsController extends Controller
|
||||||
if ($request->filled('username')) {
|
if ($request->filled('username')) {
|
||||||
// Only works if we're checked out to a user, not anything else.
|
// Only works if we're checked out to a user, not anything else.
|
||||||
if ($asset->checkedOutToUser()) {
|
if ($asset->checkedOutToUser()) {
|
||||||
$row[] = ($asset->assignedto) ? $asset->assignedto->username : '';
|
$row[] = ($asset->assignedTo) ? $asset->assignedTo->username : '';
|
||||||
} else {
|
} else {
|
||||||
$row[] = ''; // Empty string if unassigned
|
$row[] = ''; // Empty string if unassigned
|
||||||
}
|
}
|
||||||
|
@ -772,7 +772,7 @@ class ReportsController extends Controller
|
||||||
if ($request->filled('employee_num')) {
|
if ($request->filled('employee_num')) {
|
||||||
// Only works if we're checked out to a user, not anything else.
|
// Only works if we're checked out to a user, not anything else.
|
||||||
if ($asset->checkedOutToUser()) {
|
if ($asset->checkedOutToUser()) {
|
||||||
$row[] = ($asset->assignedto) ? $asset->assignedto->employee_num : '';
|
$row[] = ($asset->assignedTo) ? $asset->assignedTo->employee_num : '';
|
||||||
} else {
|
} else {
|
||||||
$row[] = ''; // Empty string if unassigned
|
$row[] = ''; // Empty string if unassigned
|
||||||
}
|
}
|
||||||
|
@ -780,7 +780,7 @@ class ReportsController extends Controller
|
||||||
|
|
||||||
if ($request->filled('manager')) {
|
if ($request->filled('manager')) {
|
||||||
if ($asset->checkedOutToUser()) {
|
if ($asset->checkedOutToUser()) {
|
||||||
$row[] = (($asset->assignedto) && ($asset->assignedto->manager)) ? $asset->assignedto->manager->present()->fullName : '';
|
$row[] = (($asset->assignedTo) && ($asset->assignedTo->manager)) ? $asset->assignedTo->manager->present()->fullName : '';
|
||||||
} else {
|
} else {
|
||||||
$row[] = ''; // Empty string if unassigned
|
$row[] = ''; // Empty string if unassigned
|
||||||
}
|
}
|
||||||
|
@ -788,7 +788,7 @@ class ReportsController extends Controller
|
||||||
|
|
||||||
if ($request->filled('department')) {
|
if ($request->filled('department')) {
|
||||||
if ($asset->checkedOutToUser()) {
|
if ($asset->checkedOutToUser()) {
|
||||||
$row[] = (($asset->assignedto) && ($asset->assignedto->department)) ? $asset->assignedto->department->name : '';
|
$row[] = (($asset->assignedTo) && ($asset->assignedTo->department)) ? $asset->assignedTo->department->name : '';
|
||||||
} else {
|
} else {
|
||||||
$row[] = ''; // Empty string if unassigned
|
$row[] = ''; // Empty string if unassigned
|
||||||
}
|
}
|
||||||
|
@ -796,7 +796,7 @@ class ReportsController extends Controller
|
||||||
|
|
||||||
if ($request->filled('title')) {
|
if ($request->filled('title')) {
|
||||||
if ($asset->checkedOutToUser()) {
|
if ($asset->checkedOutToUser()) {
|
||||||
$row[] = ($asset->assignedto) ? $asset->assignedto->jobtitle : '';
|
$row[] = ($asset->assignedTo) ? $asset->assignedTo->jobtitle : '';
|
||||||
} else {
|
} else {
|
||||||
$row[] = ''; // Empty string if unassigned
|
$row[] = ''; // Empty string if unassigned
|
||||||
}
|
}
|
||||||
|
|
|
@ -421,7 +421,11 @@
|
||||||
<img src="{{ Storage::disk('public')->url(app('models_upload_path').e($asset->model->image)) }}" style="max-height: 30px; width: auto" class="img-responsive">
|
<img src="{{ Storage::disk('public')->url(app('models_upload_path').e($asset->model->image)) }}" style="max-height: 30px; width: auto" class="img-responsive">
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td>{{ $asset->model->category->name }}</td>
|
<td>
|
||||||
|
@if (($asset->model) && ($asset->model->category))
|
||||||
|
{{ $asset->model->category->name }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
<td>{{ $asset->asset_tag }}</td>
|
<td>{{ $asset->asset_tag }}</td>
|
||||||
<td>{{ $asset->name }}</td>
|
<td>{{ $asset->name }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in a new issue