mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
231 lines
6.2 KiB
PHP
231 lines
6.2 KiB
PHP
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<title>Assigned to {{ $show_user->present()->fullName() }}</title>
|
|
<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')
|
|
|
|
<h2>
|
|
@if ($snipeSettings->logo!='')
|
|
<img class="print-logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
|
@endif
|
|
{{ $snipeSettings->site_name }}
|
|
</h2>
|
|
@elseif ($snipeSettings->brand == '2')
|
|
@if ($snipeSettings->logo!='')
|
|
<img class="print-logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
|
@endif
|
|
@else
|
|
<h2>{{ $snipeSettings->site_name }}</h2>
|
|
@endif
|
|
@endif
|
|
|
|
<h2>Assigned to {{ $show_user->present()->fullName() }}</h4>
|
|
|
|
@if ($assets->count() > 0)
|
|
@php
|
|
$counter = 1;
|
|
@endphp
|
|
<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>
|
|
|
|
@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>
|
|
<td>{{ $asset->serial }}</td>
|
|
<td>
|
|
{{ $asset->last_checkout }}</td>
|
|
</tr>
|
|
@php
|
|
$counter++
|
|
@endphp
|
|
@endforeach
|
|
</table>
|
|
@endif
|
|
|
|
@if ($licenses->count() > 0)
|
|
<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>
|
|
@php
|
|
$lcounter = 1;
|
|
@endphp
|
|
|
|
@foreach ($licenses as $license)
|
|
|
|
<tr>
|
|
<td>{{ $lcounter }}</td>
|
|
<td>{{ $license->name }}</td>
|
|
<td>
|
|
@can('viewKeys', $license)
|
|
{{ $license->serial }}
|
|
@else
|
|
------------
|
|
@endcan
|
|
</td>
|
|
<td>{{ $license->assetlog->first()->created_at }}</td>
|
|
</tr>
|
|
@php
|
|
$lcounter++
|
|
@endphp
|
|
@endforeach
|
|
</table>
|
|
@endif
|
|
|
|
|
|
@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>
|
|
<td>{{ ($accessory->manufacturer) ? $accessory->manufacturer->name : '' }} {{ $accessory->name }} {{ $accessory->model_number }}</td>
|
|
<td>{{ $accessory->category->name }}</td>
|
|
<td>{{ $accessory->assetlog->first()->created_at }}</td>
|
|
</tr>
|
|
@php
|
|
$acounter++
|
|
@endphp
|
|
@endforeach
|
|
</table>
|
|
@endif
|
|
|
|
@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>
|
|
|
|
|
|
<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>
|
|
</tr>
|
|
@php
|
|
$ccounter++
|
|
@endphp
|
|
@endforeach
|
|
</table>
|
|
@endif
|
|
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<table>
|
|
<tr>
|
|
<td>Signed Off By:</td>
|
|
<td>________________________________________________________</td>
|
|
<td></td>
|
|
<td>Date:</td>
|
|
<td>________________________________________________________</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</body>
|
|
</html>
|