@if(session('line_fully_resolved') && session('resolved_line_id'))
@lang('industrialengineering::lang.line_fully_resolved')
@endif
@if(session('status'))
{{ session('status.msg') }}
@endif
@if(session('integration_messages'))
@foreach(session('integration_messages') as $msg)
{{ $msg['text'] }}
@endforeach
@endif
@lang('industrialengineering::lang.erp_link_pct')
{{ $thread['erp_link_pct'] }}%
@lang('industrialengineering::lang.cmms_link_pct')
{{ $thread['cmms_link_pct'] }}%
@lang('industrialengineering::lang.bom_health')
{{ $thread['bom_integration_health'] }}%
@lang('industrialengineering::lang.total_shortage_value')
{{ number_format($thread['total_shortage_value'], 0) }}
@foreach([
['label' => __('industrialengineering::lang.products'), 'value' => $stats['products'], 'color' => 'bg-aqua', 'icon' => 'fa-cube'],
['label' => __('industrialengineering::lang.production_lines'), 'value' => $stats['production_lines'], 'color' => 'bg-green', 'icon' => 'fa-industry'],
['label' => __('industrialengineering::lang.open_ecos'), 'value' => $thread['open_ecos'], 'color' => 'bg-orange', 'icon' => 'fa-exchange-alt'],
['label' => __('industrialengineering::lang.pending_releases'), 'value' => $thread['pending_releases'], 'color' => 'bg-purple', 'icon' => 'fa-check-circle'],
['label' => __('industrialengineering::lang.active_research'), 'value' => $thread['active_research'], 'color' => 'bg-navy', 'icon' => 'fa-flask'],
['label' => __('industrialengineering::lang.mrp_runs_month'), 'value' => $thread['mrp_runs_month'], 'color' => 'bg-teal', 'icon' => 'fa-cogs'],
] as $card)
{{ $card['label'] }}
{{ $card['value'] }}
@endforeach
@if(!empty($thread['lines_needing_attention']))
| @lang('industrialengineering::lang.production_line') | @lang('industrialengineering::lang.issues') | |
@foreach($thread['lines_needing_attention'] as $row)
{{ $row['line']->name }}
@if(($row['erp_unlinked'] ?? 0) > 0)
{{ __('industrialengineering::lang.unlinked_count', ['n' => $row['erp_unlinked']]) }}
@endif
|
@foreach($row['issues'] as $issue)- {{ $issue }}
@endforeach |
@if(($row['status'] ?? '') === 'empty_bom')
@lang('industrialengineering::lang.add_parts')
@else
@endif
|
@endforeach
@endif
@endsection