snipe-it/resources/views/reports/depreciation.blade.php
2021-11-19 12:39:19 +01:00

64 lines
2.2 KiB
PHP

@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="fas fa-exclamation-triangle faa-pulse animated"></i>
{!! trans('admin/depreciations/general.no_depreciations_warning') !!}
</div>
</div>
@endif
</div> <!-- /.box-body-->
</div> <!--/box.box-default-->
</div> <!-- /.col-md-12-->
</div> <!--/.row-->
@stop
@section('moar_scripts')
@include ('partials.bootstrap-table')
@stop