@extends('layouts.app') @section('title', __('industrialengineering::lang.dashboard')) @section('content') @include('industrialengineering::layouts.nav')

@lang('industrialengineering::lang.dashboard_welcome')

@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.quick_start')

@lang('industrialengineering::lang.quick_start_hint')

@can('ie.platforms.create') @lang('industrialengineering::lang.create_product') @endcan @canany(['ie.revisions.view', 'ie.bom.view', 'ie.platforms.view', 'ie.view', 'ie.access']) @lang('industrialengineering::lang.menu_production_lines') @endcanany
@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.lines_needing_attention')

@foreach($thread['lines_needing_attention'] as $row) @endforeach
@lang('industrialengineering::lang.production_line')@lang('industrialengineering::lang.issues')
{{ $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
@csrf
@endif
@endif
@endsection