@extends('layout.app') @section('content')
{{-- Filter card --}}

{{ $page_title }}

Reset
{{-- Check menu match for a specific id --}}
Check Menu Match for a Specific ID
@if ($explanation)
@if (!$explanation['found'])
Record #{{ $explainId }} was not found in new_line_requests.
@elseif (empty($explanation['checks']))
Please select a menu to check against.
@else
{{ $explanation['matches'] ? '✔ MATCH' : '✘ NOT MATCH' }} — Record #{{ $explainId }} {{ $explanation['matches'] ? 'does' : 'does NOT' }} belong in {{ $explanation['target_menu'] }}.
    @foreach ($explanation['checks'] as $check)
  • {{ $check['pass'] ? '✔' : '✘' }} {{ $check['label'] }}
    {{ $check['detail'] }}
  • @endforeach
@if (!$explanation['matches'])

Based on its current data, this record actually falls under: {{ $explanation['actual_menu'] }}

@endif @endif @endif
@php $cards = [ ['key' => 'total', 'label' => 'Total Created', 'count' => $total, 'color' => 'primary'], ['key' => 'quick_request', 'label' => 'Quick Request', 'count' => $quick, 'color' => 'info'], ['key' => 'new_line', 'label' => 'New Line', 'count' => $newLine, 'color' => 'success'], ['key' => 'confirm', 'label' => 'Confirm', 'count' => $confirm, 'color' => 'warning'], ['key' => 'other', 'label' => 'Other (Not Categorized)', 'count' => $other, 'color' => 'danger'], ]; @endphp {{-- Summary cards --}}
@foreach ($cards as $card) @endforeach
{{-- Drill-down list --}} @if ($bucket)
{{ collect($cards)->firstWhere('key', $bucket)['label'] ?? 'List' }} — {{ $lists->count() }} record(s)
Export to Excel Close List
@foreach ($columns as $column) @endforeach @forelse ($lists as $row) @php if ($row->menu_match === 'Not Match') { $menuMatchClass = 'text-danger'; } elseif (in_array($row->menu_match, ['Successfully Complete', 'Area Not Coverage', 'Line Cancel'])) { $menuMatchClass = 'text-muted'; } else { $menuMatchClass = 'text-success'; } @endphp @foreach ($columns as $column) @endforeach @empty @endforelse
Menu Match{{ $column }}
{{ $row->menu_match }} {{ $row->{$column} }}
No records found
@endif
@endsection