@extends('layouts/default') {{-- Page Title --}} @section('title') @if (request()->routeIs('report-templates.edit')) {{ trans('general.update') }} {{ $template->name }} @elseif(request()->routeIs('report-templates.show')) {{ trans('general.custom_report') }}: {{ $template->name }} @else {{ trans('general.custom_report') }} @endif @parent @stop @section('header_right') @if (request()->routeIs('report-templates.edit')) {{ trans('general.back') }} @elseif (request()->routeIs('report-templates.show')) {{ trans('general.back') }} @else {{ trans('general.back') }} @endif @stop {{-- Page content --}} @section('content')
{{csrf_field()}}

@if (request()->routeIs('report-templates.edit')) {{ trans('general.customize_report') }}: {{ $template->name }} @else {{ trans('general.customize_report') }} @endif

{{ trans('general.checked_out_to_fields') }}:

@if ($customfields->count() > 0)

{{ trans('admin/custom_fields/general.custom_fields') }}

@foreach ($customfields as $customfield) @endforeach @endif

{!! trans('general.report_fields_info') !!}


@include ('partials.forms.edit.company-select', [ 'translated_name' => trans('general.company'), 'fieldname' => 'by_company_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $template->selectValues('by_company_id', \App\Models\Company::class), ]) @include ('partials.forms.edit.location-select', [ 'translated_name' => trans('general.location'), 'fieldname' => 'by_location_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $template->selectValues('by_location_id', \App\Models\Location::class), ]) @include ('partials.forms.edit.location-select', [ 'translated_name' => trans('admin/hardware/form.default_location'), 'fieldname' => 'by_rtd_location_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $template->selectValues('by_rtd_location_id', \App\Models\Location::class), ]) @include ('partials.forms.edit.department-select',[ 'translated_name' => trans('general.department'), 'fieldname' => 'by_dept_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $template->selectValues('by_dept_id', \App\Models\Department::class), ]) @include ('partials.forms.edit.supplier-select', [ 'translated_name' => trans('general.supplier'), 'fieldname' => 'by_supplier_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $template->selectValues('by_supplier_id', \App\Models\Supplier::class), ]) @include ('partials.forms.edit.model-select', [ 'translated_name' => trans('general.asset_model'), 'fieldname' => 'by_model_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $template->selectValues('by_model_id', \App\Models\AssetModel::class), ]) @include ('partials.forms.edit.manufacturer-select', [ 'translated_name' => trans('general.manufacturer'), 'fieldname' => 'by_manufacturer_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $template->selectValues('by_manufacturer_id', \App\Models\Manufacturer::class), ]) @include ('partials.forms.edit.category-select', [ 'translated_name' => trans('general.category'), 'fieldname' => 'by_category_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'category_type' => 'asset', 'selected' => $template->selectValues('by_category_id', \App\Models\Category::class), ]) @include ('partials.forms.edit.status-select', [ 'translated_name' => trans('admin/hardware/form.status'), 'fieldname' => 'by_status_id[]', 'multiple' => 'true', 'hide_new' => 'true', 'selected' => $template->selectValues('by_status_id', \App\Models\Statuslabel::class), ])
-
@if ($errors->has('purchase_cost_start') || $errors->has('purchase_cost_end'))
@endif
@if ($errors->has('purchase_start') || $errors->has('purchase_end'))
@endif
@if ($errors->has('created_start') || $errors->has('created_end'))
@endif
@if ($errors->has('checkout_date_start') || $errors->has('checkout_date_end'))
@endif
@if ($errors->has('checkin_date_start') || $errors->has('checkin_date_end'))
@endif
@if ($errors->has('expected_checkin_start') || $errors->has('expected_checkin_end'))
@endif
@if ($errors->has('asset_eol_date_start') || $errors->has('asset_eol_date_end'))
@endif
@if ($errors->has('last_audit_start') || $errors->has('last_audit_end'))
@endif
@if ($errors->has('next_audit_start') || $errors->has('next_audit_end'))
@endif
@if ($errors->has('last_updated_start') || $errors->has('last_updated_end'))
@endif
{{ trans('general.days_ago') }}
@if ($errors->has('last_updated_before'))
@endif
@unless (request()->routeIs('report-templates.edit')) {{-- See consumable blade for the edit-mode footer rationale (sidebar Save is the affordance there; download button belongs to preview). --}} @endunless
@stop