mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
132 lines
7 KiB
PHP
132 lines
7 KiB
PHP
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
@section('title')
|
|
{{ trans_choice('general.checkin_due_days', $settings->due_checkin_days, ['days' => $settings->due_checkin_days]) }}
|
|
@stop
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
{{-- Page content --}}
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<!-- 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.checkin_due') }}
|
|
<span class="hidden-lg hidden-md">
|
|
<i class="far fa-file fa-2x" aria-hidden="true"></i>
|
|
</span>
|
|
<span class="badge">{{ (isset($total_due_for_checkin)) ? $total_due_for_checkin : '' }}</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#overdue" data-toggle="tab">{{ trans('general.checkin_overdue') }}
|
|
<span class="hidden-lg hidden-md">
|
|
<i class="far fa-file fa-2x" aria-hidden="true"></i>
|
|
</span>
|
|
<span class="badge">{{ (isset($total_overdue_for_checkin)) ? $total_overdue_for_checkin : '' }}</span>
|
|
</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'])
|
|
|
|
<div class="row">
|
|
<div class="table table-responsive">
|
|
<div class="col-md-12">
|
|
<table
|
|
data-click-to-select="true"
|
|
data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="dueAssetcheckinListing"
|
|
data-pagination="true"
|
|
data-id-table="dueAssetcheckinListing"
|
|
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="#dueAssetEditToolbar"
|
|
data-bulk-button-id="#dueAssetEditButton"
|
|
data-bulk-form-id="#dueAssetEditForm"
|
|
id="#dueAssetcheckinListing"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{ route('api.assets.list-upcoming', ['action' => 'checkins', 'upcoming_status' => 'due']) }}"
|
|
data-export-options='{
|
|
"fileName": "export-assets-due-checkin-{{ 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 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\AssetPresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="overdueAssetcheckinListing"
|
|
data-pagination="true"
|
|
data-id-table="overdueAssetcheckinListing"
|
|
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="#overdueAssetcheckinListing"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{ route('api.assets.list-upcoming', ['action' => 'checkins', 'upcoming_status' => 'overdue']) }}"
|
|
data-export-options='{
|
|
"fileName": "export-assets-overdue-checkin-{{ 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 -->
|
|
|
|
</div><!-- /.col -->
|
|
</div><!-- /.row -->
|
|
|
|
@stop
|
|
|
|
@section('moar_scripts')
|
|
@include('partials.bootstrap-table')
|
|
@stop
|