2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
|
|
|
?>
|
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
|
|
|
{{ trans('general.unaccepted_asset_report') }}
|
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="table-responsive">
|
2018-02-16 13:22:55 -08:00
|
|
|
|
|
|
|
<table
|
|
|
|
data-cookie-id-table="unacceptedAssetsReport"
|
|
|
|
data-pagination="true"
|
|
|
|
data-id-table="unacceptedAssetsReport"
|
|
|
|
data-search="true"
|
|
|
|
data-side-pagination="client"
|
|
|
|
data-show-columns="true"
|
|
|
|
data-show-export="true"
|
|
|
|
data-show-refresh="true"
|
|
|
|
data-sort-order="asc"
|
|
|
|
id="unacceptedAssetsReport"
|
|
|
|
class="table table-striped snipe-table"
|
|
|
|
data-export-options='{
|
|
|
|
"fileName": "maintenance-report-{{ date('Y-m-d') }}",
|
|
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
|
|
}'>
|
2016-12-27 12:03:47 -08:00
|
|
|
<thead>
|
|
|
|
<tr role="row">
|
|
|
|
<th class="col-sm-1">{{ trans('admin/companies/table.title') }}</th>
|
|
|
|
<th class="col-sm-1">{{ trans('general.category') }}</th>
|
|
|
|
<th class="col-sm-1">{{ trans('admin/hardware/form.model') }}</th>
|
|
|
|
<th class="col-sm-1">{{ trans('admin/hardware/form.name') }}</th>
|
|
|
|
<th class="col-sm-1">{{ trans('admin/hardware/table.asset_tag') }}</th>
|
|
|
|
<th class="col-sm-1">{{ trans('admin/hardware/table.checkoutto') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@if ($assetsForReport)
|
|
|
|
@foreach ($assetsForReport as $assetItem)
|
2018-10-29 14:39:42 -07:00
|
|
|
@if ($assetItem)
|
|
|
|
<tr>
|
2020-11-12 23:26:05 -08:00
|
|
|
<td>{{ ($assetItem->company) ? $assetItem->company->name : '' }}</td>
|
2018-10-29 14:39:42 -07:00
|
|
|
<td>{{ $assetItem->model->category->name }}</td>
|
|
|
|
<td>{{ $assetItem->model->name }}</td>
|
|
|
|
<td>{!! $assetItem->present()->nameUrl() !!}</td>
|
|
|
|
<td>{{ $assetItem->asset_tag }}</td>
|
|
|
|
<td>{!! ($assetItem->assignedTo) ? $assetItem->assignedTo->present()->nameUrl() : 'Deleted user' !!}</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2016-12-27 12:03:47 -08:00
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
@stop
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
@section('moar_scripts')
|
2018-02-16 13:22:55 -08:00
|
|
|
@include ('partials.bootstrap-table')
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|