2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
|
|
|
?>
|
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
|
|
|
{{ trans('general.unaccepted_asset_report') }}
|
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
2021-07-16 15:15:33 -07:00
|
|
|
@section('header_right')
|
2021-07-16 16:37:11 -07:00
|
|
|
|
|
|
|
<div class="btn-toolbar" role="toolbar">
|
|
|
|
<div class="btn-group mr-2" role="group">
|
|
|
|
@if($showDeleted)
|
|
|
|
<a href="{{ route('reports/unaccepted_assets') }}" class="btn btn-default" ><i class="fa fa-trash icon-white" aria-hidden="true"></i> {{ trans('general.hide_deleted') }}</a>
|
|
|
|
@else
|
|
|
|
<a href="{{ route('reports/unaccepted_assets', ['deleted' => 'deleted']) }}" class="btn btn-default" ><i class="fa fa-trash icon-white" aria-hidden="true"></i> {{ trans('general.show_deleted') }}</a>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="btn-group mr-2" role="group">
|
|
|
|
{{ Form::open(['method' => 'post', 'class' => 'form-horizontal']) }}
|
|
|
|
{{csrf_field()}}
|
|
|
|
<button type="submit" class="btn btn-default"><i class="fa fa-download icon-white" aria-hidden="true"></i> {{ trans('general.download_all') }}</button>
|
|
|
|
{{ Form::close() }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-16 15:15:33 -07:00
|
|
|
@stop
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
{{-- 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"
|
2021-07-16 16:37:11 -07:00
|
|
|
data-sort-name="created_at"
|
2018-02-16 13:22:55 -08:00
|
|
|
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">
|
2021-07-16 16:37:11 -07:00
|
|
|
<th class="col-sm-1" data-searchable="false" data-field="created_at" data-sortable="true">{{ trans('general.date') }}</th>
|
|
|
|
<th class="col-sm-1" data-sortable="true" >{{ trans('admin/companies/table.title') }}</th>
|
|
|
|
<th class="col-sm-1" data-sortable="true" >{{ trans('general.category') }}</th>
|
|
|
|
<th class="col-sm-1" data-sortable="true" >{{ trans('admin/hardware/form.model') }}</th>
|
|
|
|
<th class="col-sm-1" data-sortable="true" >{{ trans('admin/hardware/form.name') }}</th>
|
|
|
|
<th class="col-sm-1" data-sortable="true" >{{ trans('admin/hardware/table.asset_tag') }}</th>
|
|
|
|
<th class="col-sm-1" data-sortable="true" >{{ trans('admin/hardware/table.checkoutto') }}</th>
|
2021-05-03 12:06:12 -07:00
|
|
|
<th class="col-md-1"><span class="line"></span>{{ trans('table.actions') }}</th>
|
2016-12-27 12:03:47 -08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@if ($assetsForReport)
|
2021-05-03 12:06:12 -07:00
|
|
|
@foreach ($assetsForReport as $item)
|
|
|
|
@if ($item['assetItem'])
|
2021-07-16 16:37:11 -07:00
|
|
|
<tr @if($item['acceptance']->trashed()) style="text-decoration: line-through" @endif>
|
|
|
|
<td>{{ $item['acceptance']->created_at }}</td>
|
2022-03-11 12:23:54 -08:00
|
|
|
<td>{{ ($item['assetItem']->company) ? $item['assetItem']->company->name : '' }}</td>
|
2021-05-03 12:06:12 -07:00
|
|
|
<td>{!! $item['assetItem']->model->category->present()->nameUrl() !!}</td>
|
|
|
|
<td>{!! $item['assetItem']->present()->modelUrl() !!}</td>
|
|
|
|
<td>{!! $item['assetItem']->present()->nameUrl() !!}</td>
|
|
|
|
<td>{{ $item['assetItem']->asset_tag }}</td>
|
2021-07-16 16:37:11 -07:00
|
|
|
<td @if($item['acceptance']->assignedTo === null || $item['acceptance']->assignedTo->trashed()) style="text-decoration: line-through" @endif>{!! ($item['acceptance']->assignedTo) ? $item['acceptance']->assignedTo->present()->nameUrl() : trans('admin/reports/general.deleted_user') !!}</td>
|
2023-10-09 08:13:41 -07:00
|
|
|
<td class="white-space: nowrap;">
|
|
|
|
<nobr>
|
2021-07-16 16:37:11 -07:00
|
|
|
@if(!$item['acceptance']->trashed())
|
2023-10-09 08:13:41 -07:00
|
|
|
<form method="post" class="white-space: nowrap;" action="{{ route('reports/unaccepted_assets_sent_reminder') }}">
|
|
|
|
@if ($item['acceptance']->assignedTo)
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="acceptance_id" value="{{ $item['acceptance']->id }}">
|
|
|
|
<button class="btn btn-sm btn-warning" data-tooltip="true" data-title="{{ trans('admin/reports/general.send_reminder') }}">
|
|
|
|
<i class="fa fa-repeat" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
@endif
|
2021-07-16 16:37:11 -07:00
|
|
|
<a href="{{ route('reports/unaccepted_assets_delete', ['acceptanceId' => $item['acceptance']->id]) }}" class="btn btn-sm btn-danger delete-asset" data-tooltip="true" data-toggle="modal" data-content="{{ trans('general.delete_confirm', ['item' =>trans('admin/reports/general.acceptance_request')]) }}" data-title="{{ trans('general.delete') }}" onClick="return false;"><i class="fa fa-trash"></i></a>
|
2023-10-09 08:13:41 -07:00
|
|
|
</form>
|
2021-07-16 16:37:11 -07:00
|
|
|
@endif
|
2023-10-09 08:13:41 -07:00
|
|
|
|
|
|
|
</nobr>
|
2021-05-03 12:06:12 -07:00
|
|
|
</td>
|
2018-10-29 14:39:42 -07:00
|
|
|
</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
|