@extends('layouts.app') @section('title', '설비 현황') @section('content')

설비 현황

{{ now()->format('Y년 m월 d일') }} 기준

총 설비
{{ $stats['total'] }}
가동 중
{{ $stats['active'] }}
유휴
{{ $stats['idle'] }}
폐기
{{ $stats['disposed'] }}

이번달 점검 현황 {{ now()->format('Y년 m월') }}

점검 대상 {{ $inspectionStats['total'] }}대
점검 완료 {{ $inspectionStats['inspected'] }}대
@if($inspectionStats['total'] > 0)
{{ round($inspectionStats['inspected'] / $inspectionStats['total'] * 100) }}% 완료
@endif
이상 발견 {{ $inspectionStats['issue_count'] }}건

설비 유형별 현황

@if(!empty($typeStats))
@foreach($typeStats as $type => $count)
{{ $type ?? '미분류' }}
@php $maxCount = max($typeStats); @endphp
{{ $count }}
@endforeach
@else

데이터가 없습니다.

@endif

최근 수리이력

전체보기 →
@if($recentRepairs->isNotEmpty())
@foreach($recentRepairs as $repair) @endforeach
수리일 설비 보전구분 수리내용 비용
{{ $repair->repair_date->format('m-d') }} {{ $repair->equipment?->name ?? '-' }} {{ $repair->repair_type_label }} {{ Str::limit($repair->description, 40) ?? '-' }} {{ $repair->formatted_cost }}
@else

최근 수리이력이 없습니다.

@endif
@endsection