snipe-it/resources/views/reports/depreciation.blade.php

66 lines
2.3 KiB
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('general.depreciation_report') }}
@parent
@stop
{{-- Page content --}}
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-default">
<div class="box-body">
@if (($depreciations) && ($depreciations->count() > 0))
<div class="table-responsive">
<table
data-cookie-id-table="depreciationReport"
data-pagination="true"
data-id-table="depreciationReport"
data-search="true"
data-side-pagination="server"
data-show-columns="true"
data-show-export="true"
data-show-refresh="true"
data-sort-order="desc"
data-sort-name="created_at"
data-show-footer="true"
id="depreciationReport"
data-url="{{ route('api.depreciation-report.index') }}"
data-mobile-responsive="true"
data-toggle="table"
class="table table-striped snipe-table"
data-columns="{{ \App\Presenters\DepreciationReportPresenter::dataTableLayout() }}"
data-export-options='{
"fileName": "depreciation-report-{{ date('Y-m-d') }}",
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
}'>
</table>
</div> <!-- /.table-responsive-->
@else
<div class="col-md-12">
<div class="alert alert-warning fade in">
<i class="fa fa-warning faa-pulse animated"></i>
<strong>Warning: </strong>
You do not currently have any depreciations set up.
Please set up at least one depreciation to view the depreciation report.
</div>
</div>
@endif
</div> <!-- /.box-body-->
</div> <!--/box.box-default-->
</div> <!-- /.col-md-12-->
</div> <!--/.row-->
2016-03-25 01:18:05 -07:00
@stop
2016-03-25 01:18:05 -07:00
@section('moar_scripts')
@include ('partials.bootstrap-table')
2016-03-25 01:18:05 -07:00
@stop