2019-05-05 19:32:52 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
@section('title0')
|
|
|
|
|
2019-12-10 19:32:50 -08:00
|
|
|
@if ((Request::get('company_id')) && ($company))
|
2019-05-05 19:32:52 -07:00
|
|
|
{{ $company->name }}
|
|
|
|
@endif
|
|
|
|
|
2024-04-26 10:59:13 -07:00
|
|
|
{{ trans_choice('general.audit_due_days', $settings->audit_warning_days, ['days' => $settings->audit_warning_days]) }}
|
2019-05-05 19:32:52 -07:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
|
|
|
@yield('title0') @parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
2024-04-26 10:59:13 -07:00
|
|
|
{{-- Page content --}}
|
2019-05-05 19:32:52 -07:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2022-05-06 05:20:29 -07:00
|
|
|
|
2024-04-26 10:59:13 -07:00
|
|
|
<!-- Custom Tabs -->
|
|
|
|
<div class="nav-tabs-custom">
|
|
|
|
<ul class="nav nav-tabs hidden-print">
|
|
|
|
|
|
|
|
<li class="active">
|
|
|
|
<a href="#due" data-toggle="tab">{{ trans('general.audit_due') }}
|
|
|
|
<span class="hidden-lg hidden-md">
|
|
|
|
<i class="far fa-file fa-2x" aria-hidden="true"></i>
|
|
|
|
</span>
|
|
|
|
<badge class="badge">{{ (isset($total_due_for_audit)) ? $total_due_for_audit : '' }}</badge>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#overdue" data-toggle="tab">{{ trans('general.audit_overdue') }}
|
|
|
|
<span class="hidden-lg hidden-md">
|
|
|
|
<i class="far fa-file fa-2x" aria-hidden="true"></i>
|
|
|
|
</span>
|
|
|
|
<badge class="badge">{{ (isset($total_overdue_for_audit)) ? $total_overdue_for_audit : '' }}</badge>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
|
|
|
|
<div class="tab-pane active" id="due">
|
|
|
|
|
|
|
|
@include('partials.asset-bulk-actions',
|
|
|
|
[
|
|
|
|
'id_divname' => 'dueAssetEditToolbar',
|
|
|
|
'id_formname' => 'dueAssetEditForm',
|
|
|
|
'id_button' => 'dueAssetEditButton'])
|
2022-05-06 05:20:29 -07:00
|
|
|
|
2019-05-05 19:32:52 -07:00
|
|
|
<div class="row">
|
2024-04-26 10:59:13 -07:00
|
|
|
<div class="table table-responsive">
|
2019-05-05 19:32:52 -07:00
|
|
|
<div class="col-md-12">
|
|
|
|
<table
|
|
|
|
data-click-to-select="true"
|
|
|
|
data-columns="{{ \App\Presenters\AssetAuditPresenter::dataTableLayout() }}"
|
2024-04-26 10:59:13 -07:00
|
|
|
data-cookie-id-table="dueAssetAuditListing"
|
2019-05-05 19:32:52 -07:00
|
|
|
data-pagination="true"
|
2024-04-26 10:59:13 -07:00
|
|
|
data-id-table="dueAssetAuditListing"
|
2019-05-05 19:32:52 -07:00
|
|
|
data-search="true"
|
|
|
|
data-side-pagination="server"
|
|
|
|
data-show-columns="true"
|
2022-06-14 17:54:18 -07:00
|
|
|
data-show-fullscreen="true"
|
2019-05-05 19:32:52 -07:00
|
|
|
data-show-export="true"
|
|
|
|
data-show-footer="true"
|
|
|
|
data-show-refresh="true"
|
|
|
|
data-sort-order="asc"
|
|
|
|
data-sort-name="name"
|
2024-04-26 10:59:13 -07:00
|
|
|
data-toolbar="#dueAssetEditToolbar"
|
|
|
|
data-bulk-button-id="#dueAssetEditButton"
|
|
|
|
data-bulk-form-id="#dueAssetEditForm"
|
|
|
|
id="#dueAssetAuditListing"
|
2019-05-05 19:32:52 -07:00
|
|
|
class="table table-striped snipe-table"
|
2024-04-26 10:59:13 -07:00
|
|
|
data-url="{{ route('api.assets.list-upcoming', ['action' => 'audits', 'upcoming_status' => 'due']) }}"
|
2019-05-05 19:32:52 -07:00
|
|
|
data-export-options='{
|
|
|
|
"fileName": "export-assets-due-audit-{{ date('Y-m-d') }}",
|
|
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
|
|
}'>
|
|
|
|
</table>
|
2024-04-26 10:59:13 -07:00
|
|
|
</div> <!-- end col-md-12 -->
|
|
|
|
</div><!-- end table-responsive -->
|
|
|
|
</div><!-- end row -->
|
|
|
|
</div><!-- end tab-pane -->
|
|
|
|
|
|
|
|
<div class="tab-pane" id="overdue">
|
|
|
|
|
|
|
|
@include('partials.asset-bulk-actions',
|
|
|
|
[
|
|
|
|
'id_divname' => 'overdueAssetEditToolbar',
|
|
|
|
'id_formname' => 'overdueAssetEditForm',
|
|
|
|
'id_button' => 'overdueAssetEditButton'])
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="table table-responsive">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<table
|
|
|
|
data-click-to-select="true"
|
|
|
|
data-columns="{{ \App\Presenters\AssetAuditPresenter::dataTableLayout() }}"
|
|
|
|
data-cookie-id-table="overdueAssetAuditListing"
|
|
|
|
data-pagination="true"
|
|
|
|
data-id-table="overdueAssetAuditListing"
|
|
|
|
data-search="true"
|
|
|
|
data-side-pagination="server"
|
|
|
|
data-show-columns="true"
|
|
|
|
data-show-fullscreen="true"
|
|
|
|
data-show-export="true"
|
|
|
|
data-show-footer="true"
|
|
|
|
data-show-refresh="true"
|
|
|
|
data-sort-order="asc"
|
|
|
|
data-sort-name="name"
|
|
|
|
data-toolbar="#overdueAssetEditToolbar"
|
|
|
|
data-bulk-button-id="#overdueAssetEditButton"
|
|
|
|
data-bulk-form-id="#overdueAssetEditForm"
|
|
|
|
id="#overdueAssetAuditListing"
|
|
|
|
class="table table-striped snipe-table"
|
|
|
|
data-url="{{ route('api.assets.list-upcoming', ['action' => 'audits', 'upcoming_status' => 'overdue']) }}"
|
|
|
|
data-export-options='{
|
|
|
|
"fileName": "export-assets-overdue-audit-{{ date('Y-m-d') }}",
|
|
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
|
|
}'>
|
|
|
|
</table>
|
|
|
|
</div> <!-- end col-md-12 -->
|
|
|
|
</div><!-- end table-responsive -->
|
|
|
|
</div><!-- end row -->
|
|
|
|
</div><!-- end tab-pane -->
|
|
|
|
</div><!-- end tab-content -->
|
|
|
|
</div><!-- end nav-tabs-custom -->
|
2019-05-05 19:32:52 -07:00
|
|
|
|
|
|
|
</div><!-- /.col -->
|
|
|
|
</div><!-- /.row -->
|
2024-04-26 10:59:13 -07:00
|
|
|
|
2019-05-05 19:32:52 -07:00
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('moar_scripts')
|
|
|
|
@include('partials.bootstrap-table')
|
|
|
|
@stop
|