From 730e84a2359bda52a7bfaadd43574d59e24e6823 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 17 Aug 2026 14:41:07 +0100 Subject: [PATCH] Added view blade form for consumables custom report --- .../views/reports/custom/consumable.blade.php | 438 ++++++++++++++++++ 1 file changed, 438 insertions(+) create mode 100644 resources/views/reports/custom/consumable.blade.php diff --git a/resources/views/reports/custom/consumable.blade.php b/resources/views/reports/custom/consumable.blade.php new file mode 100644 index 0000000000..3673fcbac1 --- /dev/null +++ b/resources/views/reports/custom/consumable.blade.php @@ -0,0 +1,438 @@ +@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_consumable_report') }}: {{ $template->name }} + @else + {{ trans('general.custom_consumable_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.assigned') }}:

+ + +
+ +
+ +

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

+ +
+ + + + + + + + + + + + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ + +
+ +
+ +
+
+ + + + +
+ +
+ + - + +
+ + @if ($errors->has('quantity_start') || $errors->has('quantity_end')) +
+ + +
+ @endif +
+ + +
+ +
+ + - + +
+ + @if ($errors->has('min_quantity_start') || $errors->has('min_quantity_end')) +
+ + +
+ @endif +
+ + +
+ +
+ + - + +
+ + @if ($errors->has('unit_cost_start') || $errors->has('unit_cost_end')) +
+ + +
+ @endif +
+ + + +
+ + + + @if ($errors->has('purchase_start') || $errors->has('purchase_end')) +
+ + +
+ @endif +
+ + +
+ + + + @if ($errors->has('checkout_date_start') || $errors->has('checkout_date_end')) +
+ + +
+ @endif +
+ + +
+ + + + @if ($errors->has('created_start') || $errors->has('created_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')) + {{-- In edit mode the sidebar Save button is the + affordance for persisting template changes; + the "Generate" download button here only + makes sense on the config / preview page. --}} + + @endunless +
+
+
+ + + + +
+ +@stop +