@props([ 'type', 'template', ]) {{-- Right-column "Saved Templates" panel shared by the three custom report pages (asset / component / consumable). Report-type-specific bits (Livewire component type, the route name for the show-form guard) are derived from $type. --}} @php $showFormRoutes = match ($type) { 'asset' => ['reports/custom'], 'component' => ['reports/custom', 'reports.custom.component'], 'consumable' => ['reports/custom', 'reports.custom.consumable'], }; @endphp @if (request()->routeIs('report-templates.edit')) {{-- Edit mode: template name + is_shared are the only fields the edit page adds on top of the report-config form. Rendered here in the sidebar (rather than shoehorned into the main form's box header, which crowded the two-line header). form="custom-report-form" associates these inputs with the report form even though they live outside its DOM subtree so they still POST as part of it. --}}
{!! trans('admin/reports/message.saving_templates_description') !!}