2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page Title --}}
|
|
|
|
@section('title')
|
|
|
|
{{ trans('general.custom_report') }}
|
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('header_right')
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
2023-10-30 12:03:50 -07:00
|
|
|
<div class="col-md-8 col-md-offset-1">
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2023-10-30 16:30:53 -07:00
|
|
|
{{ Form::open([
|
|
|
|
'method' => 'post',
|
|
|
|
'class' => 'form-horizontal',
|
|
|
|
'id' => 'custom-report-form',
|
|
|
|
'url' => '/reports/custom',
|
|
|
|
]) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{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">
|
2021-11-19 03:39:19 -08:00
|
|
|
<h2 class="box-title">{{ trans('general.customize_report') }}</h2>
|
2016-12-27 12:03:47 -08:00
|
|
|
</div><!-- /.box-header -->
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="box-body">
|
2016-08-02 15:04:10 -07:00
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<div class="col-md-4">
|
2017-12-01 14:47:52 -08:00
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
|
|
|
<input type="checkbox" id="checkAll" checked="checked">
|
2021-11-19 03:39:19 -08:00
|
|
|
{{ trans('general.select_all') }}
|
2017-12-01 14:47:52 -08:00
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('id', '1', $savedReport->checkmarkValue('id')) }}
|
2022-08-10 13:51:47 -07:00
|
|
|
{{ trans('general.id') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('company', '1', $savedReport->checkmarkValue('company')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.company') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('asset_tag', '1', $savedReport->checkmarkValue('asset_tag')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.asset_tag') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('asset_name', '1', $savedReport->checkmarkValue('asset_name')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.name') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('manufacturer', '1', $savedReport->checkmarkValue('manufacturer')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.manufacturer') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('model', '1', $savedReport->checkmarkValue('model')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.asset_models') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('category', '1', $savedReport->checkmarkValue('category')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.category') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('serial', '1', $savedReport->checkmarkValue('serial')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/table.serial') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('purchase_date', '1', $savedReport->checkmarkValue('purchase_date')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/licenses/table.purchase_date') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('purchase_cost', '1', $savedReport->checkmarkValue('purchase_cost')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.cost') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('eol', '1', $savedReport->checkmarkValue('eol')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/table.eol') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('order', '1', $savedReport->checkmarkValue('order')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.order') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('supplier', '1', $savedReport->checkmarkValue('supplier')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.suppliers') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('location', '1', $savedReport->checkmarkValue('location')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.location') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('location_address', '1', $savedReport->checkmarkValue('location_address')) }}
|
2018-04-05 17:33:25 -07:00
|
|
|
- {{ trans('general.address') }}
|
2018-03-26 15:59:09 -07:00
|
|
|
</label>
|
2018-04-05 17:33:25 -07:00
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('rtd_location', '1', $savedReport->checkmarkValue('rtd_location')) }}
|
2018-04-05 17:33:25 -07:00
|
|
|
{{ trans('admin/hardware/form.default_location') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('rtd_location_address', '1', $savedReport->checkmarkValue('rtd_location_address')) }}
|
2018-04-05 17:33:25 -07:00
|
|
|
- {{ trans('general.address') }}
|
|
|
|
</label>
|
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('status', '1', $savedReport->checkmarkValue('status')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.status') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('warranty', '1', $savedReport->checkmarkValue('warranty')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.warranty') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('depreciation', '1', $savedReport->checkmarkValue('depreciation')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('general.depreciation') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('checkout_date', '1', $savedReport->checkmarkValue('checkout_date')) }}
|
2017-12-01 16:50:56 -08:00
|
|
|
{{ trans('admin/hardware/table.checkout_date') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('expected_checkin', '1', $savedReport->checkmarkValue('expected_checkin')) }}
|
2016-12-27 12:03:47 -08:00
|
|
|
{{ trans('admin/hardware/form.expected_checkin') }}
|
2016-08-02 15:04:10 -07:00
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('created_at', '1', $savedReport->checkmarkValue('created_at')) }}
|
2017-12-01 16:50:56 -08:00
|
|
|
{{ trans('general.created_at') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('updated_at', '1', $savedReport->checkmarkValue('updated_at')) }}
|
2017-12-01 16:50:56 -08:00
|
|
|
{{ trans('general.updated_at') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('deleted_at', '1', $savedReport->checkmarkValue('deleted_at')) }}
|
2022-08-02 19:58:17 -07:00
|
|
|
{{ trans('general.deleted') }}
|
|
|
|
</label>
|
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('last_audit_date', '1', $savedReport->checkmarkValue('last_audit_date')) }}
|
2017-12-12 03:03:43 -08:00
|
|
|
{{ trans('general.last_audit') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('next_audit_date', '1', $savedReport->checkmarkValue('next_audit_date')) }}
|
2017-12-12 03:03:43 -08:00
|
|
|
{{ trans('general.next_audit_date') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('notes', '1', $savedReport->checkmarkValue('notes')) }}
|
2017-02-03 02:16:37 -08:00
|
|
|
{{ trans('general.notes') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('url', '1', $savedReport->checkmarkValue('url')) }}
|
2022-08-10 13:51:47 -07:00
|
|
|
- {{ trans('admin/manufacturers/table.url') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2018-04-16 20:10:38 -07:00
|
|
|
<!-- User fields -->
|
2023-04-03 22:38:56 -07:00
|
|
|
|
2021-11-19 03:39:19 -08:00
|
|
|
<h2>{{ trans('general.checked_out_to') }} {{ trans('general.fields') }}:</h2>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('assigned_to', '1', $savedReport->checkmarkValue('assigned_to')) }}
|
2018-04-16 20:10:38 -07:00
|
|
|
{{ trans('admin/licenses/table.assigned_to') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('username', '1', $savedReport->checkmarkValue('username')) }}
|
2018-04-16 20:10:38 -07:00
|
|
|
{{ trans('admin/users/table.username') }}
|
|
|
|
</label>
|
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('employee_num', '1', $savedReport->checkmarkValue('employee_num')) }}
|
2022-01-06 03:35:37 -08:00
|
|
|
{{ trans('general.employee_number') }}
|
2018-04-16 20:10:38 -07:00
|
|
|
</label>
|
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('manager', '1', $savedReport->checkmarkValue('manager')) }}
|
2018-06-27 00:45:09 -07:00
|
|
|
{{ trans('admin/users/table.manager') }}
|
|
|
|
</label>
|
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('department', '1', $savedReport->checkmarkValue('department')) }}
|
2018-04-16 20:10:38 -07:00
|
|
|
{{ trans('general.department') }}
|
|
|
|
</label>
|
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('title', '1', $savedReport->checkmarkValue('title')) }}
|
2021-12-13 18:27:23 -08:00
|
|
|
{{ trans('admin/users/table.title') }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
2021-12-13 18:27:23 -08:00
|
|
|
|
2018-04-16 20:10:38 -07:00
|
|
|
|
2017-12-01 14:47:52 -08:00
|
|
|
@if ($customfields->count() > 0)
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<h2>{{ trans('admin/custom_fields/general.custom_fields') }}</h2>
|
|
|
|
|
2017-12-01 14:47:52 -08:00
|
|
|
@foreach ($customfields as $customfield)
|
2023-04-03 22:38:56 -07:00
|
|
|
|
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox($customfield->db_column_name(), '1', $savedReport->checkmarkValue($customfield->db_column_name())) }}
|
2017-12-01 14:47:52 -08:00
|
|
|
{{ $customfield->name }}
|
|
|
|
</label>
|
2023-04-03 22:38:56 -07:00
|
|
|
|
2017-12-01 14:47:52 -08:00
|
|
|
@endforeach
|
|
|
|
@endif
|
2023-04-03 22:38:56 -07:00
|
|
|
</div> <!-- /.col-md-4-->
|
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
|
|
|
|
2023-05-16 13:58:21 -07:00
|
|
|
<p>
|
|
|
|
{!! trans('general.report_fields_info') !!}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<br>
|
2017-12-01 14:47:52 -08:00
|
|
|
|
2023-11-30 16:57:21 -08:00
|
|
|
@include ('partials.forms.edit.company-select', ['translated_name' => trans('general.company'),'multiple' => 'true', 'fieldname' => 'by_company_id[]', 'hide_new' => 'true', 'selected' => $savedReport->selectValues('by_company_id')])
|
|
|
|
@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'multiple' => 'true', 'fieldname' => 'by_location_id[]', 'hide_new' => 'true', 'selected' => $savedReport->selectValues('by_location_id')])
|
|
|
|
@include ('partials.forms.edit.location-select', ['translated_name' => trans('admin/hardware/form.default_location'), 'multiple' => 'true', 'fieldname' => 'by_rtd_location_id[]', 'hide_new' => 'true', 'selected' => $savedReport->selectValues('by_rtd_location_id')])
|
|
|
|
@include ('partials.forms.edit.department-select', ['translated_name' => trans('general.department'), 'fieldname' => 'by_dept_id', 'hide_new' => 'true', 'selected' => $savedReport->selectValue('by_dept_id')])
|
|
|
|
@include ('partials.forms.edit.supplier-select', ['translated_name' => trans('general.supplier'), 'fieldname' => 'by_supplier_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $savedReport->selectValues('by_supplier_id')])
|
|
|
|
@include ('partials.forms.edit.model-select', ['translated_name' => trans('general.asset_model'), 'fieldname' => 'by_model_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $savedReport->selectValues('by_model_id')])
|
|
|
|
@include ('partials.forms.edit.manufacturer-select', ['translated_name' => trans('general.manufacturer'), 'fieldname' => 'by_manufacturer_id', 'hide_new' => 'true', 'selected' => $savedReport->selectValue('by_manufacturer_id')])
|
|
|
|
@include ('partials.forms.edit.category-select', ['translated_name' => trans('general.category'), 'fieldname' => 'by_category_id', 'hide_new' => 'true', 'category_type' => 'asset', 'selected' => $savedReport->selectValue('by_category_id')])
|
|
|
|
@include ('partials.forms.edit.status-select', ['translated_name' => trans('admin/hardware/form.status'), 'fieldname' => 'by_status_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $savedReport->selectValues('by_status_id')])
|
2017-12-01 16:50:56 -08:00
|
|
|
|
|
|
|
<!-- Order Number -->
|
2017-12-01 14:47:52 -08:00
|
|
|
<div class="form-group">
|
2020-04-01 03:21:15 -07:00
|
|
|
<label for="by_order_number" class="col-md-3 control-label">{{ trans('general.order_number') }}</label>
|
2017-12-01 14:47:52 -08:00
|
|
|
<div class="col-md-5 col-sm-8">
|
2023-11-02 17:10:50 -07:00
|
|
|
<input class="form-control" type="text" name="by_order_number" value="{{ $savedReport->textValue('by_order_number') }}" aria-label="by_order_number">
|
2017-12-01 14:47:52 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Purchase Date -->
|
2017-12-01 16:50:56 -08:00
|
|
|
<div class="form-group purchase-range">
|
2021-11-19 03:39:19 -08:00
|
|
|
<label for="purchase_start" class="col-md-3 control-label">{{ trans('general.purchase_date') }} {{ trans('general.range') }}</label>
|
2017-12-01 14:47:52 -08:00
|
|
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
2023-11-02 17:10:50 -07:00
|
|
|
<input type="text" class="form-control" name="purchase_start" aria-label="purchase_start" value="{{ $savedReport->textValue('purchase_start') }}">
|
2017-12-01 14:47:52 -08:00
|
|
|
<span class="input-group-addon">to</span>
|
2023-11-02 17:10:50 -07:00
|
|
|
<input type="text" class="form-control" name="purchase_end" aria-label="purchase_end" value="{{ $savedReport->textValue('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">
|
2021-11-19 03:39:19 -08:00
|
|
|
<label for="created_start" class="col-md-3 control-label">{{ trans('general.created_at') }} {{ trans('general.range') }}</label>
|
2017-12-01 16:50:56 -08:00
|
|
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="created_start" aria-label="created_start" value="{{ $savedReport->textValue('created_start') }}">
|
2017-12-01 16:50:56 -08:00
|
|
|
<span class="input-group-addon">to</span>
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="created_end" aria-label="created_end" value="{{ $savedReport->textValue('created_end') }}">
|
2017-12-01 16:50:56 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-01 14:47:52 -08:00
|
|
|
|
2023-04-19 09:13:43 -07:00
|
|
|
<!-- Checkout Date -->
|
2023-04-19 10:11:26 -07:00
|
|
|
<div class="form-group checkout-range">
|
2023-04-19 09:11:44 -07:00
|
|
|
<label for="checkout_date" class="col-md-3 control-label">{{ trans('general.checkout') }} {{ trans('general.range') }}</label>
|
|
|
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="checkout_date_start" aria-label="checkout_date_start" value="{{ $savedReport->textValue('checkout_date_start') }}">
|
2023-04-19 09:11:44 -07:00
|
|
|
<span class="input-group-addon">to</span>
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="checkout_date_end" aria-label="checkout_date_end" value="{{ $savedReport->textValue('checkout_date_end') }}">
|
2023-04-19 09:11:44 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
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">
|
2020-04-01 03:21:15 -07:00
|
|
|
<label for="expected_checkin_start" class="col-md-3 control-label">{{ trans('admin/hardware/form.expected_checkin') }}</label>
|
2018-05-08 07:34:14 -07:00
|
|
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="expected_checkin_start" aria-label="expected_checkin_start" value="{{ $savedReport->textValue('expected_checkin_start') }}">
|
2018-05-08 07:34:14 -07:00
|
|
|
<span class="input-group-addon">to</span>
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="expected_checkin_end" aria-label="expected_checkin_end" value="{{ $savedReport->textValue('expected_checkin_end') }}">
|
2018-05-08 07:34:14 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-01-26 12:05:31 -08:00
|
|
|
<!-- Last Audit Date -->
|
|
|
|
<div class="form-group last_audit-range">
|
|
|
|
<label for="last_audit_start" class="col-md-3 control-label">{{ trans('general.last_audit') }}</label>
|
|
|
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="last_audit_start" aria-label="last_audit_start" value="{{ $savedReport->textValue('last_audit_start') }}">
|
2021-01-26 12:05:31 -08:00
|
|
|
<span class="input-group-addon">to</span>
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="last_audit_end" aria-label="last_audit_end" value="{{ $savedReport->textValue('last_audit_end') }}">
|
2021-01-26 12:05:31 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Next Audit Date -->
|
|
|
|
<div class="form-group next_audit-range">
|
|
|
|
<label for="next_audit_start" class="col-md-3 control-label">{{ trans('general.next_audit_date') }}</label>
|
|
|
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="next_audit_start" aria-label="nex_audit_start" value="{{ $savedReport->textValue('next_audit_start') }}">
|
2021-01-26 12:05:31 -08:00
|
|
|
<span class="input-group-addon">to</span>
|
2023-11-30 17:07:39 -08:00
|
|
|
<input type="text" class="form-control" name="next_audit_end" aria-label="next_audit_end" value="{{ $savedReport->textValue('next_audit_end') }}">
|
2021-01-26 12:05:31 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-01 14:47:52 -08:00
|
|
|
|
|
|
|
<div class="col-md-9 col-md-offset-3">
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('exclude_archived', '1', $savedReport->checkmarkValue('exclude_archived')) }}
|
2022-07-11 09:56:58 -07:00
|
|
|
{{ trans('general.exclude_archived') }}
|
|
|
|
</label>
|
2022-07-18 12:12:22 -07:00
|
|
|
</div>
|
|
|
|
<div class="col-md-9 col-md-offset-3">
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
2023-11-02 17:10:50 -07:00
|
|
|
{{ Form::checkbox('use_bom', '1', $savedReport->checkmarkValue('use_bom')) }}
|
2021-11-19 03:39:19 -08:00
|
|
|
{{ trans('general.bom_remark') }}
|
2017-12-01 14:47:52 -08:00
|
|
|
</label>
|
|
|
|
</div>
|
2022-08-02 10:27:55 -07:00
|
|
|
|
2022-08-01 14:52:12 -07:00
|
|
|
<div class="col-md-9 col-md-offset-3">
|
2017-12-01 14:47:52 -08:00
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
<label class="form-control">
|
|
|
|
{{ Form::radio('deleted_assets', '', true, ['aria-label'=>'deleted_assets', 'id'=>'deleted_assets_exclude_deleted'])}}
|
|
|
|
{{ trans('general.exclude_deleted') }}
|
|
|
|
</label>
|
|
|
|
<label class="form-control">
|
|
|
|
{{ Form::radio('deleted_assets', '1', old('deleted_assets'), ['aria-label'=>'deleted_assets', 'id'=>'deleted_assets_include_deleted']) }}
|
|
|
|
{{ trans('general.include_deleted') }}
|
|
|
|
</label>
|
|
|
|
<label class="form-control">
|
|
|
|
{{ Form::radio('deleted_assets', '0', old('deleted_assets'), ['aria-label'=>'deleted_assets','id'=>'deleted_assets_only_deleted']) }}
|
|
|
|
{{ trans('general.only_deleted') }}
|
|
|
|
</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
|
|
|
|
2023-04-03 22:38:56 -07: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">
|
2023-04-03 22:38:56 -07:00
|
|
|
<button type="submit" class="btn btn-success">
|
|
|
|
<i class="fas fa-download icon-white" aria-hidden="true"></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>
|
2023-08-28 16:26:31 -07:00
|
|
|
|
|
|
|
<div class="col-md-2">
|
2023-08-29 13:55:21 -07:00
|
|
|
<div style=padding-bottom:5px>
|
|
|
|
<a href="#" class="btn btn-primary">
|
|
|
|
{{ trans('admin/reports/general.apply_and_generate') }}</a>
|
|
|
|
</div>
|
|
|
|
<div style=padding-bottom:5px>
|
|
|
|
<form method="post" id="savetemplateform" action="{{ route("savedreports/store") }}">
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" id="savetemplateoptions" name="options">
|
|
|
|
<button class = "btn btn-primary">
|
|
|
|
{{ trans('admin/reports/general.save_template') }}
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div style=padding-bottom:5px>
|
2023-10-25 11:42:23 -07:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" tabindex="-1" >
|
2023-08-29 13:55:21 -07:00
|
|
|
{{ trans('admin/reports/general.select_template') }}
|
2023-08-28 16:26:31 -07:00
|
|
|
<strong class="caret"></strong>
|
2023-08-29 13:55:21 -07:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
@foreach($saved_reports as $report)
|
|
|
|
<li>
|
|
|
|
{{ $report->name }}
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2023-10-25 11:42:23 -07:00
|
|
|
|
|
|
|
{{ $fieldname = $report->name }}
|
|
|
|
<select class="js-data-ajax" data-endpoint="locations" data-placeholder="{{ trans('admin/reports/general.select_template') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ $fieldname }}_location_select" aria-label="{{ $fieldname }}" {!! ((isset($item)) && (Helper::checkIfRequired($item, $fieldname))) ? ' data-validation="required" required' : '' !!}{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
|
|
|
|
@if ($report->name!='')
|
|
|
|
<option value="{{ $fieldname }}" selected="selected" role="option" aria-selected="true" role="option">
|
|
|
|
@foreach($saved_reports as $report)
|
|
|
|
<li>
|
|
|
|
{{ $report->name }}
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</option>
|
|
|
|
@else
|
|
|
|
<option value="" role="option">{{ trans('admin/reports/general.select_template') }}</option>
|
|
|
|
@endif
|
|
|
|
</select>
|
2023-08-28 16:26:31 -07:00
|
|
|
</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'
|
|
|
|
});
|
2023-04-19 10:11:26 -07:00
|
|
|
$('.checkout-range .input-daterange').datepicker({
|
|
|
|
clearBtn: true,
|
|
|
|
todayHighlight: true,
|
|
|
|
endDate: '0d',
|
|
|
|
format: 'yyyy-mm-dd'
|
|
|
|
});
|
2017-12-01 14:47:52 -08:00
|
|
|
|
2018-05-08 07:37:18 -07:00
|
|
|
$('.expected_checkin-range .input-daterange').datepicker({
|
|
|
|
clearBtn: true,
|
|
|
|
todayHighlight: true,
|
|
|
|
format: 'yyyy-mm-dd'
|
|
|
|
});
|
|
|
|
|
2021-01-26 12:05:31 -08:00
|
|
|
$('.last_audit-range .input-daterange').datepicker({
|
|
|
|
clearBtn: true,
|
|
|
|
todayHighlight: true,
|
|
|
|
endDate:'0d',
|
|
|
|
format: 'yyyy-mm-dd'
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.next_audit-range .input-daterange').datepicker({
|
|
|
|
clearBtn: true,
|
|
|
|
todayHighlight: true,
|
|
|
|
format: 'yyyy-mm-dd'
|
|
|
|
});
|
|
|
|
|
2023-04-03 22:38:56 -07:00
|
|
|
$("#checkAll").change(function () {
|
|
|
|
$("input:checkbox").prop('checked', $(this).prop("checked"));
|
2017-12-01 14:47:52 -08:00
|
|
|
});
|
2023-04-03 22:38:56 -07:00
|
|
|
|
2023-08-28 16:26:31 -07:00
|
|
|
$("#savetemplateform").submit(function(e) {
|
|
|
|
e.preventDefault(e);
|
2023-10-30 16:30:53 -07:00
|
|
|
$('#custom-report-form').attr('action', '/reports/savedtemplate').submit()
|
|
|
|
// let elements = Array.from(document.getElementById("custom-report-form").elements).map(item=>item.name);
|
|
|
|
// console.log(elements);
|
|
|
|
//
|
|
|
|
// $("#savetemplateoptions").val(elements)
|
|
|
|
//
|
|
|
|
// let formElement = document.getElementById('custom-report-form')
|
|
|
|
//
|
|
|
|
// let inputsAsArray = Array.from(formElement.elements)
|
|
|
|
//
|
|
|
|
// inputsAsArray.map(function(item){
|
|
|
|
// // not a real method
|
|
|
|
// if (item.isACheckbox()){
|
|
|
|
// return {name: item.name, type: checkbox, checked: item.checked};
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// if (item.isASelect){
|
|
|
|
// return {name:item.name, type: select, selected: [item.elements]}
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// // set hidden input to variable
|
|
|
|
// e.currentTarget.submit();
|
2023-08-28 16:26:31 -07:00
|
|
|
});
|
|
|
|
|
2017-12-01 14:47:52 -08:00
|
|
|
</script>
|
|
|
|
@stop
|