2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page Title --}}
|
|
|
|
@section('title')
|
|
|
|
{{ trans('general.custom_report') }}
|
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('header_right')
|
|
|
|
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
|
|
|
|
{{ trans('general.back') }}</a>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="col-md-8 col-md-offset-2">
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ Form::open(['method' => 'post', 'class' => 'form-horizontal']) }}
|
|
|
|
{{csrf_field()}}
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
<!-- Horizontal Form -->
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Customize Report</h3>
|
|
|
|
</div><!-- /.box-header -->
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="box-body">
|
2017-12-01 16:50:16 -08:00
|
|
|
<div class="col-md-4">
|
2016-08-02 15:04:10 -07:00
|
|
|
|
2017-12-01 14:47:52 -08:00
|
|
|
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" class="all minimal" checked="checked">
|
|
|
|
Select All
|
|
|
|
</label>
|
|
|
|
</div>
|
2016-11-23 05:17:54 -08:00
|
|
|
<div class="checkbox col-md-12">
|
2016-12-27 12:03:47 -08:00
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('company', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.company') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('asset_tag', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.asset_tag') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('asset_name', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.name') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('manufacturer', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.manufacturer') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('model', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.asset_models') }}
|
|
|
|
</label>
|
2016-11-23 05:17:54 -08:00
|
|
|
</div>
|
2016-08-02 15:04:10 -07:00
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('category', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.category') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('serial', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/table.serial') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('purchase_date', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/licenses/table.purchase_date') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('purchase_cost', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.cost') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('eol', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/table.eol') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('order', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.order') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('supplier', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.suppliers') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('location', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.location') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2018-03-26 15:59:09 -07:00
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('location_address', '1', '1', ['class' => 'minimal']) }}
|
2018-04-05 17:33:25 -07:00
|
|
|
- {{ trans('general.address') }}
|
2018-03-26 15:59:09 -07:00
|
|
|
</label>
|
|
|
|
</div>
|
2018-04-05 17:33:25 -07:00
|
|
|
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('rtd_location', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('admin/hardware/form.default_location') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('rtd_location_address', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
- {{ trans('general.address') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2017-12-01 16:50:56 -08:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('status', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.status') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('warranty', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.warranty') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('depreciation', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.depreciation') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-12-01 16:50:56 -08:00
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('checkout_date', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('admin/hardware/table.checkout_date') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('expected_checkin', '1', '1', ['class' => 'minimal']) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.expected_checkin') }}
|
2016-08-02 15:04:10 -07:00
|
|
|
</label>
|
|
|
|
</div>
|
2017-12-01 16:50:56 -08:00
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('created_at', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('general.created_at') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('updated_at', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('general.updated_at') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-12-12 03:03:43 -08:00
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('last_audit_date', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('general.last_audit') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('next_audit_date', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('general.next_audit_date') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-02-03 02:16:37 -08:00
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ Form::checkbox('notes', '1', '1', ['class' => 'minimal']) }}
|
2017-02-03 02:16:37 -08:00
|
|
|
{{ trans('general.notes') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2018-04-16 20:10:38 -07:00
|
|
|
<!-- User fields -->
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<h4>Checked Out To Fields:</h4>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('assigned_to', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('admin/licenses/table.assigned_to') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('username', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('admin/users/table.username') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('employee_num', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('admin/users/table.employee_num') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('department', '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ trans('general.department') }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-01 14:47:52 -08:00
|
|
|
@if ($customfields->count() > 0)
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="checkbox col-md-12">
|
2017-12-01 14:47:52 -08:00
|
|
|
<h4>Custom Fields:</h4>
|
2016-12-27 12:03:47 -08:00
|
|
|
</div>
|
2017-12-01 14:47:52 -08:00
|
|
|
@foreach ($customfields as $customfield)
|
|
|
|
<div class="checkbox col-md-12">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox($customfield->db_column_name(), '1', '1', ['class' => 'minimal']) }}
|
|
|
|
{{ $customfield->name }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
</div> <!-- /.col-md-3-->
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2017-12-01 16:50:56 -08:00
|
|
|
<div class="col-md-8">
|
2017-12-01 14:47:52 -08:00
|
|
|
|
|
|
|
<p>Select the fields you'd like to include in your custom report, and click Generate. The file (custom-asset-report-YYYY-mm-dd.csv) will download automatically, and you can open it in Excel.</p>
|
|
|
|
<p>If you'd like to export only certain assets, use the options below to fine-tune your results.</p>
|
|
|
|
|
|
|
|
@include ('partials.forms.edit.company-select', ['translated_name' => trans('general.company'), 'fieldname' => 'by_company_id', 'hide_new' => 'true'])
|
|
|
|
@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'by_location_id', 'hide_new' => 'true'])
|
2018-05-08 07:34:14 -07:00
|
|
|
@include ('partials.forms.edit.location-select', ['translated_name' => trans('admin/hardware/form.default_location'), 'fieldname' => 'by_rtd_location_id', 'hide_new' => 'true'])
|
2017-12-01 14:47:52 -08:00
|
|
|
@include ('partials.forms.edit.supplier-select', ['translated_name' => trans('general.supplier'), 'fieldname' => 'by_supplier_id', 'hide_new' => 'true'])
|
|
|
|
@include ('partials.forms.edit.model-select', ['translated_name' => trans('general.asset_model'), 'fieldname' => 'by_model_id', 'hide_new' => 'true'])
|
2017-12-01 16:50:56 -08:00
|
|
|
@include ('partials.forms.edit.manufacturer-select', ['translated_name' => trans('general.manufacturer'), 'fieldname' => 'by_manufacturer_id', 'hide_new' => 'true'])
|
2017-12-01 14:47:52 -08:00
|
|
|
@include ('partials.forms.edit.category-select', ['translated_name' => trans('general.category'), 'fieldname' => 'by_category_id', 'hide_new' => 'true', 'category_type' => 'asset'])
|
|
|
|
|
2017-12-01 16:50:56 -08:00
|
|
|
<!-- Status -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="status_id" class="col-md-3 control-label">{{ trans('admin/hardware/form.status') }}</label>
|
|
|
|
<div class="col-md-7 col-sm-11">
|
|
|
|
{{ Form::select('by_status_id', \App\Helpers\Helper::statusLabelList() , Input::old('by_status_id'), array('class'=>'select2', 'style'=>'width:100%')) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Order Number -->
|
2017-12-01 14:47:52 -08:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="order_number" class="col-md-3 control-label">{{ trans('general.order_number') }}</label>
|
|
|
|
<div class="col-md-5 col-sm-8">
|
|
|
|
<input class="form-control" type="text" name="by_order_number" value="">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Purchase Date -->
|
2017-12-01 16:50:56 -08:00
|
|
|
<div class="form-group purchase-range">
|
2017-12-01 14:47:52 -08:00
|
|
|
<label for="purchase_date" class="col-md-3 control-label">{{ trans('general.purchase_date') }} Range</label>
|
|
|
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
2017-12-01 16:50:56 -08:00
|
|
|
<input type="text" class="input-sm form-control" name="purchase_start" />
|
2017-12-01 14:47:52 -08:00
|
|
|
<span class="input-group-addon">to</span>
|
2017-12-01 16:50:56 -08:00
|
|
|
<input type="text" class="input-sm form-control" name="purchase_end" />
|
2017-12-01 14:47:52 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-12-01 16:50:56 -08:00
|
|
|
<!-- Created Date -->
|
|
|
|
<div class="form-group purchase-range">
|
|
|
|
<label for="purchase_date" class="col-md-3 control-label">{{ trans('general.created_at') }} Range</label>
|
|
|
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
|
|
|
<input type="text" class="input-sm form-control" name="created_start" />
|
|
|
|
<span class="input-group-addon">to</span>
|
|
|
|
<input type="text" class="input-sm form-control" name="created_end" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-01 14:47:52 -08:00
|
|
|
|
2018-05-08 07:34:14 -07:00
|
|
|
<!-- Expected Checkin Date -->
|
2018-05-08 07:37:18 -07:00
|
|
|
<div class="form-group expected_checkin-range">
|
2018-05-08 07:34:14 -07:00
|
|
|
<label for="purchase_date" class="col-md-3 control-label">{{ trans('admin/hardware/form.expected_checkin') }}</label>
|
|
|
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
|
|
|
<input type="text" class="input-sm form-control" name="expected_checkin_start" />
|
|
|
|
<span class="input-group-addon">to</span>
|
|
|
|
<input type="text" class="input-sm form-control" name="expected_checkin_end" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-12-01 16:50:56 -08:00
|
|
|
|
2017-12-01 14:47:52 -08:00
|
|
|
|
|
|
|
<div class="col-md-9 col-md-offset-3">
|
|
|
|
<label>
|
|
|
|
{{ Form::checkbox('use_bom', '1') }}
|
|
|
|
Add a BOM (byte-order mark) to this CSV
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2017-12-01 14:47:52 -08:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
</div> <!-- /.box-body-->
|
2016-03-25 01:18:05 -07:00
|
|
|
<div class="box-footer text-right">
|
2016-12-27 12:03:47 -08:00
|
|
|
<button type="submit" class="btn btn-success"><i class="fa fa-download icon-white"></i> {{ trans('general.generate') }}</button>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
2016-12-27 12:03:47 -08:00
|
|
|
</div> <!--/.box.box-default-->
|
|
|
|
{{ Form::close() }}
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
2017-12-01 14:47:52 -08:00
|
|
|
|
|
|
|
@section('moar_scripts')
|
|
|
|
<script>
|
|
|
|
|
2017-12-01 16:50:56 -08:00
|
|
|
$('.purchase-range .input-daterange').datepicker({
|
2017-12-01 14:47:52 -08:00
|
|
|
clearBtn: true,
|
|
|
|
todayHighlight: true,
|
|
|
|
endDate: '0d',
|
|
|
|
format: 'yyyy-mm-dd'
|
|
|
|
});
|
|
|
|
|
2018-05-08 07:37:18 -07:00
|
|
|
$('.expected_checkin-range .input-daterange').datepicker({
|
|
|
|
clearBtn: true,
|
|
|
|
todayHighlight: true,
|
|
|
|
format: 'yyyy-mm-dd'
|
|
|
|
});
|
|
|
|
|
2017-12-01 14:47:52 -08:00
|
|
|
// Check-all / Uncheck all
|
|
|
|
$(function () {
|
|
|
|
var checkAll = $('input.all');
|
|
|
|
var checkboxes = $('input.minimal');
|
|
|
|
|
|
|
|
|
|
|
|
checkAll.on('ifChecked ifUnchecked', function(event) {
|
|
|
|
if (event.type == 'ifChecked') {
|
|
|
|
checkboxes.iCheck('check');
|
|
|
|
} else {
|
|
|
|
checkboxes.iCheck('uncheck');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
checkboxes.on('ifChanged', function(event){
|
|
|
|
if(checkboxes.filter(':checked').length == checkboxes.length) {
|
|
|
|
checkAll.prop('checked', 'checked');
|
|
|
|
} else {
|
|
|
|
checkAll.removeProp('checked');
|
|
|
|
}
|
|
|
|
checkAll.iCheck('update');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@stop
|