2017-12-05 01:55:24 -08:00
|
|
|
<!doctype html>
|
2022-05-06 01:32:20 -07:00
|
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
2017-12-05 01:55:24 -08:00
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
2023-03-09 12:11:07 -08:00
|
|
|
<title>{{ trans('general.assigned_to', ['name' => $show_user->present()->fullName()]) }} - {{ date('Y-m-d H:i', time()) }}</title>
|
2017-12-05 01:55:24 -08:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: "Arial, Helvetica", sans-serif;
|
|
|
|
}
|
2017-12-05 12:34:16 -08:00
|
|
|
table.inventory {
|
2017-12-05 01:55:24 -08:00
|
|
|
border: solid #000;
|
2017-12-05 12:34:16 -08:00
|
|
|
border-width: 1px 1px 1px 1px;
|
2017-12-05 01:55:24 -08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@page {
|
|
|
|
size: A4;
|
|
|
|
}
|
2017-12-05 12:34:16 -08:00
|
|
|
table.inventory th, table.inventory td {
|
2017-12-05 01:55:24 -08:00
|
|
|
border: solid #000;
|
|
|
|
border-width: 0 1px 1px 0;
|
|
|
|
padding: 3px;
|
2017-12-05 12:34:16 -08:00
|
|
|
font-size: 12px;
|
2017-12-05 01:55:24 -08:00
|
|
|
}
|
2018-07-24 13:37:02 -07:00
|
|
|
|
|
|
|
.print-logo {
|
|
|
|
max-height: 40px;
|
|
|
|
}
|
|
|
|
|
2017-12-05 01:55:24 -08:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-05-06 02:06:12 -07:00
|
|
|
|
2018-07-24 13:37:02 -07:00
|
|
|
@if ($snipeSettings->logo_print_assets=='1')
|
|
|
|
@if ($snipeSettings->brand == '3')
|
|
|
|
|
2020-03-31 21:30:24 -07:00
|
|
|
<h2>
|
2022-05-06 02:06:12 -07:00
|
|
|
@if ($snipeSettings->logo!='')
|
2023-04-05 16:05:40 -07:00
|
|
|
<img class="print-logo" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
|
2022-05-06 02:06:12 -07:00
|
|
|
@endif
|
|
|
|
{{ $snipeSettings->site_name }}
|
2020-03-31 23:36:56 -07:00
|
|
|
</h2>
|
2018-07-24 13:37:02 -07:00
|
|
|
@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 }}">
|
2018-07-24 13:37:02 -07:00
|
|
|
@endif
|
|
|
|
@else
|
2022-05-06 02:06:12 -07:00
|
|
|
<h2>{{ $snipeSettings->site_name }}</h2>
|
2018-07-24 13:37:02 -07:00
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
2023-03-14 12:01:56 -07:00
|
|
|
<h3>{{ trans('general.assigned_to', ['name' => $show_user->present()->fullName()]) }} {{ ($show_user->jobtitle!='' ? ' - '.$show_user->jobtitle : '') }}
|
2023-03-08 11:56:14 -08:00
|
|
|
</h3>
|
2022-05-06 02:06:12 -07:00
|
|
|
@if ($assets->count() > 0)
|
|
|
|
@php
|
|
|
|
$counter = 1;
|
|
|
|
@endphp
|
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="8">{{ trans('general.assets') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead>
|
2017-12-05 12:34:16 -08:00
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;"></th>
|
2022-05-06 02:06:12 -07:00
|
|
|
<th style="width: 20%;">{{ trans('admin/hardware/table.asset_tag') }}</th>
|
2022-01-06 03:35:37 -08:00
|
|
|
<th style="width: 20%;">{{ trans('general.name') }}</th>
|
|
|
|
<th style="width: 10%;">{{ trans('general.category') }}</th>
|
2022-05-06 02:06:12 -07:00
|
|
|
<th style="width: 20%;">{{ trans('admin/hardware/form.model') }}</th>
|
2022-04-14 17:17:28 -07:00
|
|
|
<th style="width: 20%;">{{ trans('admin/hardware/form.serial') }}</th>
|
2022-05-06 02:06:12 -07:00
|
|
|
<th style="width: 10%;">{{ trans('admin/hardware/table.checkout_date') }}</th>
|
2019-01-15 14:03:40 -08:00
|
|
|
<th data-formatter="imageFormatter" style="width: 20%;">{{ trans('general.signature') }}</th>
|
2017-12-05 12:34:16 -08:00
|
|
|
</tr>
|
2022-05-06 02:06:12 -07:00
|
|
|
</thead>
|
2017-12-05 12:34:16 -08:00
|
|
|
|
2022-05-06 02:06:12 -07:00
|
|
|
@foreach ($assets as $asset)
|
2017-12-05 01:55:24 -08:00
|
|
|
|
2022-05-06 02:06:12 -07:00
|
|
|
<tr>
|
|
|
|
<td>{{ $counter }}</td>
|
|
|
|
<td>{{ $asset->asset_tag }}</td>
|
|
|
|
<td>{{ $asset->name }}</td>
|
|
|
|
<td>{{ $asset->model->category->name }}</td>
|
|
|
|
<td>{{ $asset->model->name }}</td>
|
|
|
|
<td>{{ $asset->serial }}</td>
|
|
|
|
<td>
|
|
|
|
{{ $asset->last_checkout }}</td>
|
|
|
|
<td>
|
2022-07-11 14:46:45 -07:00
|
|
|
@if (($asset->assetlog->first()) && ($asset->assetlog->first()->accept_signature!=''))
|
2022-05-06 02:06:12 -07:00
|
|
|
<img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $asset->assetlog->first()->accept_signature }}">
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@if($settings->show_assigned_assets)
|
|
|
|
@php
|
|
|
|
$assignedCounter = 1;
|
|
|
|
@endphp
|
|
|
|
@foreach ($asset->assignedAssets as $asset)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{ $counter }}.{{ $assignedCounter }}</td>
|
|
|
|
<td>{{ $asset->asset_tag }}</td>
|
|
|
|
<td>{{ $asset->name }}</td>
|
|
|
|
<td>{{ $asset->model->category->name }}</td>
|
|
|
|
<td>{{ $asset->model->name }}</td>
|
|
|
|
<td>{{ $asset->serial }}</td>
|
|
|
|
<td>{{ $asset->last_checkout }}</td>
|
|
|
|
<td><img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $asset->assetlog->first()->accept_signature }}"></td>
|
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$assignedCounter++
|
|
|
|
@endphp
|
|
|
|
@endforeach
|
2021-05-20 13:53:43 -07:00
|
|
|
@endif
|
2019-12-06 10:57:48 -08:00
|
|
|
@php
|
2022-05-06 02:06:12 -07:00
|
|
|
$counter++
|
2019-12-06 10:57:48 -08:00
|
|
|
@endphp
|
2022-05-06 02:06:12 -07:00
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
2017-12-05 01:55:24 -08:00
|
|
|
|
2022-05-06 02:06:12 -07:00
|
|
|
@if ($licenses->count() > 0)
|
|
|
|
<br><br>
|
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="4">{{ trans('general.licenses') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead>
|
2017-12-05 12:34:16 -08:00
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;"></th>
|
2022-01-06 03:35:37 -08:00
|
|
|
<th style="width: 40%;">{{ trans('general.name') }}</th>
|
2022-05-06 02:06:12 -07:00
|
|
|
<th style="width: 50%;">{{ trans('admin/licenses/form.license_key') }}</th>
|
|
|
|
<th style="width: 10%;">{{ trans('admin/hardware/table.checkout_date') }}</th>
|
2017-12-05 12:34:16 -08:00
|
|
|
</tr>
|
2022-05-06 02:06:12 -07:00
|
|
|
</thead>
|
|
|
|
@php
|
|
|
|
$lcounter = 1;
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
@foreach ($licenses as $license)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{ $lcounter }}</td>
|
|
|
|
<td>{{ $license->name }}</td>
|
|
|
|
<td>
|
|
|
|
@can('viewKeys', $license)
|
|
|
|
{{ $license->serial }}
|
|
|
|
@else
|
|
|
|
<i class="fa-lock" aria-hidden="true"></i> {{ str_repeat('x', 15) }}
|
|
|
|
@endcan
|
|
|
|
</td>
|
|
|
|
<td>{{ $license->pivot->created_at }}</td>
|
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$lcounter++
|
|
|
|
@endphp
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
2017-12-05 01:55:24 -08:00
|
|
|
|
|
|
|
|
2022-05-06 02:06:12 -07:00
|
|
|
@if ($accessories->count() > 0)
|
|
|
|
<br><br>
|
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
2017-12-05 01:55:24 -08:00
|
|
|
<tr>
|
2022-05-06 02:06:12 -07:00
|
|
|
<th colspan="4">{{ trans('general.accessories') }}</th>
|
2017-12-05 01:55:24 -08:00
|
|
|
</tr>
|
2022-05-06 02:06:12 -07:00
|
|
|
</thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;"></th>
|
|
|
|
<th style="width: 40%;">{{ trans('general.name') }}</th>
|
|
|
|
<th style="width: 50%;">{{ trans('general.category') }}</th>
|
|
|
|
<th style="width: 10%;">{{ trans('admin/hardware/table.checkout_date') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2017-12-05 01:55:24 -08:00
|
|
|
@php
|
2022-05-06 02:06:12 -07:00
|
|
|
$acounter = 1;
|
2017-12-05 01:55:24 -08:00
|
|
|
@endphp
|
|
|
|
|
2022-05-06 02:06:12 -07:00
|
|
|
@foreach ($accessories as $accessory)
|
|
|
|
@if ($accessory)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $acounter }}</td>
|
|
|
|
<td>{{ ($accessory->manufacturer) ? $accessory->manufacturer->name : '' }} {{ $accessory->name }} {{ $accessory->model_number }}</td>
|
|
|
|
<td>{{ $accessory->category->name }}</td>
|
|
|
|
<td>{{ $accessory->pivot->created_at }}</td>
|
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$acounter++
|
|
|
|
@endphp
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
2017-12-05 01:55:24 -08:00
|
|
|
|
2022-05-06 02:06:12 -07:00
|
|
|
@if ($consumables->count() > 0)
|
|
|
|
<br><br>
|
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="4">{{ trans('general.consumables') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead>
|
2017-12-05 12:34:16 -08:00
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;"></th>
|
2022-01-06 03:35:37 -08:00
|
|
|
<th style="width: 40%;">{{ trans('general.name') }}</th>
|
|
|
|
<th style="width: 50%;">{{ trans('general.category') }}</th>
|
2022-05-06 01:30:58 -07:00
|
|
|
<th style="width: 10%;">{{ trans('admin/hardware/table.checkout_date') }}</th>
|
2017-12-05 12:34:16 -08:00
|
|
|
</tr>
|
2022-05-06 02:06:12 -07:00
|
|
|
</thead>
|
|
|
|
@php
|
|
|
|
$ccounter = 1;
|
|
|
|
@endphp
|
2017-12-05 12:37:42 -08:00
|
|
|
|
2022-05-06 02:06:12 -07:00
|
|
|
@foreach ($consumables as $consumable)
|
|
|
|
@if ($consumable)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $ccounter }}</td>
|
2017-12-05 12:37:42 -08:00
|
|
|
|
2019-11-21 21:43:54 -08:00
|
|
|
|
2022-05-06 02:06:12 -07:00
|
|
|
<td>
|
|
|
|
@if ($consumable->deleted_at!='')
|
|
|
|
<td>{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}</td>
|
|
|
|
@else
|
|
|
|
{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>{{ ($consumable->category) ? $consumable->category->name : ' invalid/deleted category' }} </td>
|
|
|
|
<td>{{ $consumable->pivot->created_at }}</td>
|
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$ccounter++
|
|
|
|
@endphp
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
2019-11-21 21:43:54 -08:00
|
|
|
|
2022-05-06 02:06:12 -07:00
|
|
|
<br>
|
2023-03-14 12:01:56 -07:00
|
|
|
<br>
|
2023-03-15 11:00:29 -07:00
|
|
|
{{ trans('admin/users/general.all_assigned_list_generation')}} {{ Helper::getFormattedDateObject(now(), 'datetime', false) }}
|
2022-05-06 02:06:12 -07:00
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>{{ trans('general.signed_off_by') }}:</td>
|
|
|
|
<td>________________________________________________________</td>
|
|
|
|
<td></td>
|
|
|
|
<td>{{ trans('general.date') }}:</td>
|
|
|
|
<td>________________________________________________________</td>
|
|
|
|
</tr>
|
2017-12-05 12:37:42 -08:00
|
|
|
</table>
|
2017-12-05 12:34:16 -08:00
|
|
|
|
|
|
|
|
2017-12-05 01:55:24 -08:00
|
|
|
</body>
|
|
|
|
</html>
|