2019-03-09 00:36:42 -08:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
2022-10-13 12:57:10 -07:00
|
|
|
<title>{{ trans('general.assigned_to', array('name' => $location->present()->fullName())) }} </title>
|
2019-03-09 00:36:42 -08:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: "Arial, Helvetica", sans-serif;
|
|
|
|
}
|
|
|
|
table.inventory {
|
|
|
|
border: solid #000;
|
|
|
|
border-width: 1px 1px 1px 1px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@page {
|
|
|
|
size: A4;
|
|
|
|
}
|
|
|
|
table.inventory th, table.inventory td {
|
|
|
|
border: solid #000;
|
|
|
|
border-width: 0 1px 1px 0;
|
|
|
|
padding: 3px;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.print-logo {
|
|
|
|
max-height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
@if ($snipeSettings->logo_print_assets=='1')
|
|
|
|
@if ($snipeSettings->brand == '3')
|
|
|
|
|
|
|
|
<h3>
|
|
|
|
@if ($snipeSettings->logo!='')
|
2023-04-05 16:05:40 -07:00
|
|
|
<img class="print-logo" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
|
2019-03-09 00:36:42 -08:00
|
|
|
@endif
|
|
|
|
{{ $snipeSettings->site_name }}
|
|
|
|
</h3>
|
|
|
|
@elseif ($snipeSettings->brand == '2')
|
|
|
|
@if ($snipeSettings->logo!='')
|
2023-04-05 16:05:40 -07:00
|
|
|
<img class="print-logo" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
|
2019-03-09 00:36:42 -08:00
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
<h3>{{ $snipeSettings->site_name }}</h3>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
2022-10-13 12:57:10 -07:00
|
|
|
<h2>{{ trans('general.assigned_to', array('name' => $location->present()->fullName())) }}</h2>
|
2019-05-03 05:22:01 -07:00
|
|
|
@if ($parent)
|
|
|
|
{{ $parent->present()->fullName() }}
|
|
|
|
@endif
|
2022-10-13 12:57:10 -07:00
|
|
|
|
2019-05-03 05:22:01 -07:00
|
|
|
@if ($manager)
|
2022-10-13 12:57:10 -07:00
|
|
|
<b>{{ trans('general.manager') }}</b> {{ $manager->present()->fullName() }}<br>
|
2019-05-03 05:22:01 -07:00
|
|
|
@endif
|
2022-10-13 12:57:10 -07:00
|
|
|
<b>{{ trans('general.date') }}</b> {{ \App\Helpers\Helper::getFormattedDateObject(now(), 'datetime', false) }}<br><br>
|
2019-03-09 00:36:42 -08:00
|
|
|
|
|
|
|
@if ($users->count() > 0)
|
|
|
|
@php
|
|
|
|
$counter = 1;
|
|
|
|
@endphp
|
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="6">{{ trans('general.users') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 5px;"></th>
|
2022-01-06 03:35:37 -08:00
|
|
|
<th style="width: 25%;">{{ trans('general.company') }}</th>
|
2021-11-02 07:14:54 -07:00
|
|
|
<th style="width: 25%;">{{ trans('admin/locations/table.user_name') }}</th>
|
2022-01-06 03:35:37 -08:00
|
|
|
<th style="width: 10%;">{{ trans('general.employee_number') }}</th>
|
2021-11-02 07:14:54 -07:00
|
|
|
<th style="width: 20%;">{{ trans('admin/locations/table.department') }}</th>
|
|
|
|
<th style="width: 20%;">{{ trans('admin/locations/table.location') }}</th>
|
2019-03-09 00:36:42 -08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
@foreach ($users as $user)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{ $counter }}</td>
|
2021-05-05 10:23:46 -07:00
|
|
|
<td>{{ (($user) && ($user->company)) ? $user->company->name : '' }}</td>
|
|
|
|
<td>{{ ($user) ? $user->first_name .' '. $user->last_name : '' }}</td>
|
|
|
|
<td>{{ ($user) ? $user->employee_num : '' }}</td>
|
|
|
|
<td>{{ (($user) && ($user->department)) ? $user->department->name : '' }}</td>
|
|
|
|
<td>{{ (($user) && ($user->location)) ? $user->location->name : '' }}</td>
|
2019-03-09 00:36:42 -08:00
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$counter++
|
|
|
|
@endphp
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if ($assets->count() > 0)
|
|
|
|
<br><br>
|
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-05-03 05:22:01 -07:00
|
|
|
<th colspan="10">{{ trans('general.assets') }}</th>
|
2019-03-09 00:36:42 -08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;"></th>
|
2021-11-02 07:14:54 -07:00
|
|
|
<th style="width: 10%;">{{ trans('admin/locations/table.asset_tag') }}</th>
|
|
|
|
<th style="width: 10%;">{{ trans('admin/locations/table.asset_name') }}</th>
|
|
|
|
<th style="width: 10%;">{{ trans('admin/locations/table.asset_category') }}</th>
|
|
|
|
<th style="width: 10%;">{{ trans('admin/locations/table.asset_manufacturer') }}</th>
|
|
|
|
<th style="width: 15%;">{{ trans('admin/locations/table.asset_model') }}</th>
|
|
|
|
<th style="width: 15%;">{{ trans('admin/locations/table.asset_serial') }}</th>
|
|
|
|
<th style="width: 10%;">{{ trans('admin/locations/table.asset_location') }}</th>
|
|
|
|
<th style="width: 10%;">{{ trans('admin/locations/table.asset_checked_out') }}</th>
|
|
|
|
<th style="width: 10%;">{{ trans('admin/locations/table.asset_expected_checkin') }}</th>
|
2019-03-09 00:36:42 -08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
@php
|
2021-09-13 14:24:12 -07:00
|
|
|
$counter = 1;
|
2019-03-09 00:36:42 -08:00
|
|
|
@endphp
|
|
|
|
|
|
|
|
@foreach ($assets as $asset)
|
2021-09-13 14:17:34 -07:00
|
|
|
@php
|
2021-09-13 14:45:05 -07:00
|
|
|
if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->archived == 1){
|
2021-09-13 14:17:34 -07:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
@endphp
|
2019-03-09 00:36:42 -08:00
|
|
|
<tr>
|
|
|
|
<td>{{ $counter }}</td>
|
|
|
|
<td>{{ $asset->asset_tag }}</td>
|
|
|
|
<td>{{ $asset->name }}</td>
|
2021-05-05 10:23:46 -07:00
|
|
|
<td>{{ (($asset->model) && ($asset->model->category)) ? $asset->model->category->name : '' }}</td>
|
|
|
|
<td>{{ (($asset->model) && ($asset->model->manufacturer)) ? $asset->model->manufacturer->name : '' }}</td>
|
|
|
|
<td>{{ ($asset->model) ? $asset->model->name : '' }}</td>
|
|
|
|
<td>{{ $asset->serial }}</td>
|
|
|
|
<td>{{ $asset->location->name }}</td>
|
2022-08-01 18:55:28 -07:00
|
|
|
<td>{{ \App\Helpers\Helper::getFormattedDateObject( $asset->last_checkout, 'datetime', false) }}</td>
|
|
|
|
<td>{{ \App\Helpers\Helper::getFormattedDateObject( $asset->expected_checkin, 'datetime', false) }}</td>
|
2019-03-09 00:36:42 -08:00
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$counter++
|
|
|
|
@endphp
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2021-11-02 07:14:54 -07:00
|
|
|
<td>{{ trans('admin/locations/table.signed_by_asset_auditor') }}</td>
|
2022-06-05 16:59:53 -07:00
|
|
|
<td><br>------------------------------------------------------ <br></td>
|
2021-11-02 07:14:54 -07:00
|
|
|
<td>{{ trans('admin/locations/table.date') }}</td>
|
2022-06-05 16:59:53 -07:00
|
|
|
<td><br>------------------------------ <br></td>
|
2019-03-09 00:36:42 -08:00
|
|
|
</tr>
|
2022-06-05 16:59:53 -07:00
|
|
|
|
2019-03-09 00:36:42 -08:00
|
|
|
<tr>
|
2021-11-02 07:14:54 -07:00
|
|
|
<td>{{ trans('admin/locations/table.signed_by_finance_auditor') }}</td>
|
2022-06-05 16:59:53 -07:00
|
|
|
<td><br>------------------------------------------------------ <br></td>
|
2021-11-02 07:14:54 -07:00
|
|
|
<td>{{ trans('admin/locations/table.date') }}</td>
|
2022-06-05 16:59:53 -07:00
|
|
|
<td><br>------------------------------ <br></td>
|
2019-03-09 00:36:42 -08:00
|
|
|
</tr>
|
2022-06-05 16:59:53 -07:00
|
|
|
|
2019-03-09 00:36:42 -08:00
|
|
|
<tr>
|
2021-11-02 07:14:54 -07:00
|
|
|
<td>{{ trans('admin/locations/table.signed_by_location_manager') }}</td>
|
2022-06-05 16:59:53 -07:00
|
|
|
<td><br>------------------------------------------------------ <br></td>
|
2021-11-02 07:14:54 -07:00
|
|
|
<td>{{ trans('admin/locations/table.date') }}</td>
|
2022-06-05 16:59:53 -07:00
|
|
|
<td><br>------------------------------ <br></td>
|
2019-03-09 00:36:42 -08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|