2017-12-05 01:55:24 -08:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
2017-12-06 11:17:42 -08:00
|
|
|
<title>Assigned to {{ $show_user->present()->fullName() }}</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>
|
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>
|
2018-07-24 13:37:02 -07:00
|
|
|
@if ($snipeSettings->logo!='')
|
|
|
|
<img class="print-logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
|
|
|
@endif
|
|
|
|
{{ $snipeSettings->site_name }}
|
|
|
|
</h3>
|
|
|
|
@elseif ($snipeSettings->brand == '2')
|
|
|
|
@if ($snipeSettings->logo!='')
|
|
|
|
<img class="print-logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
|
|
|
@endif
|
|
|
|
@else
|
2020-03-31 21:30:24 -07:00
|
|
|
<h2>{{ $snipeSettings->site_name }}</h3>
|
2018-07-24 13:37:02 -07:00
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<h4>Assigned to {{ $show_user->present()->fullName() }}</h4>
|
2017-12-05 01:55:24 -08:00
|
|
|
|
|
|
|
@if ($assets->count() > 0)
|
|
|
|
@php
|
|
|
|
$counter = 1;
|
|
|
|
@endphp
|
2017-12-05 12:34:16 -08:00
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="7">{{ trans('general.assets') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;"></th>
|
|
|
|
<th style="width: 20%;">Asset Tag</th>
|
|
|
|
<th style="width: 20%;">Name</th>
|
|
|
|
<th style="width: 10%;">Category</th>
|
|
|
|
<th style="width: 20%;">Model</th>
|
|
|
|
<th style="width: 20%;">Serial</th>
|
|
|
|
<th style="width: 10%;">Checked Out</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
2017-12-05 01:55:24 -08:00
|
|
|
@foreach ($assets as $asset)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{ $counter }}</td>
|
|
|
|
<td>{{ $asset->asset_tag }}</td>
|
|
|
|
<td>{{ $asset->name }}</td>
|
|
|
|
<td>{{ $asset->model->category->name }}</td>
|
|
|
|
<td>{{ $asset->model->name }}</td>
|
2017-12-05 12:34:16 -08:00
|
|
|
<td>{{ $asset->serial }}</td>
|
2017-12-05 01:55:24 -08:00
|
|
|
<td>
|
|
|
|
{{ $asset->last_checkout }}</td>
|
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$counter++
|
|
|
|
@endphp
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($licenses->count() > 0)
|
2017-12-05 12:34:16 -08:00
|
|
|
<br><br>
|
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="4">{{ trans('general.licenses') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;"></th>
|
|
|
|
<th style="width: 40%;">Name</th>
|
|
|
|
<th style="width: 50%;">Serial/Product Key</th>
|
|
|
|
<th style="width: 10%;">Checked Out</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2017-12-05 01:55:24 -08:00
|
|
|
@php
|
|
|
|
$lcounter = 1;
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
@foreach ($licenses as $license)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{ $lcounter }}</td>
|
|
|
|
<td>{{ $license->name }}</td>
|
2019-05-08 05:14:49 -07:00
|
|
|
<td>
|
|
|
|
@can('viewKeys', $license)
|
|
|
|
{{ $license->serial }}
|
|
|
|
@else
|
|
|
|
------------
|
|
|
|
@endcan
|
|
|
|
</td>
|
2017-12-05 12:34:16 -08:00
|
|
|
<td>{{ $license->assetlog->first()->created_at }}</td>
|
2017-12-05 01:55:24 -08:00
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$lcounter++
|
|
|
|
@endphp
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
2017-12-05 12:34:16 -08:00
|
|
|
@if ($accessories->count() > 0)
|
|
|
|
<br><br>
|
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="4">{{ trans('general.accessories') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;"></th>
|
|
|
|
<th style="width: 40%;">Name</th>
|
|
|
|
<th style="width: 50%;">Category</th>
|
|
|
|
<th style="width: 10%;">Checked Out</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
@php
|
|
|
|
$acounter = 1;
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
@foreach ($accessories as $accessory)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{ $acounter }}</td>
|
2017-12-26 16:49:01 -08:00
|
|
|
<td>{{ ($accessory->manufacturer) ? $accessory->manufacturer->name : '' }} {{ $accessory->name }} {{ $accessory->model_number }}</td>
|
2017-12-05 12:34:16 -08:00
|
|
|
<td>{{ $accessory->category->name }}</td>
|
|
|
|
<td>{{ $accessory->assetlog->first()->created_at }}</td>
|
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$acounter++
|
|
|
|
@endphp
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
2017-12-05 12:37:42 -08:00
|
|
|
|
|
|
|
@if ($consumables->count() > 0)
|
|
|
|
<br><br>
|
|
|
|
<table class="inventory">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="4">{{ trans('general.consumables') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 20px;"></th>
|
|
|
|
<th style="width: 40%;">Name</th>
|
|
|
|
<th style="width: 50%;">Category</th>
|
|
|
|
<th style="width: 10%;">Checked Out</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
@php
|
|
|
|
$ccounter = 1;
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
@foreach ($consumables as $consumable)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{ $ccounter }}</td>
|
2019-11-21 21:43:54 -08:00
|
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
@if ($consumable->deleted_at!='')
|
|
|
|
<del>{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}</del>
|
|
|
|
@else
|
|
|
|
{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>{{ ($consumable->category) ? $consumable->category->name : '' }}</td>
|
|
|
|
<td>{{ ($consumable->assetlog) ? $consumable->assetlog->first()->created_at : '' }}</td>
|
2017-12-05 12:37:42 -08:00
|
|
|
</tr>
|
|
|
|
@php
|
|
|
|
$ccounter++
|
|
|
|
@endphp
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
|
|
|
|
2017-12-05 12:34:16 -08:00
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>Signed Off By:</td>
|
|
|
|
<td>________________________________________________________</td>
|
|
|
|
<td></td>
|
|
|
|
<td>Date:</td>
|
|
|
|
<td>________________________________________________________</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
2017-12-05 01:55:24 -08:00
|
|
|
</body>
|
|
|
|
</html>
|