@extends('layouts.work') @section('title', '講義下載 - 經濟部產業發展署工業安全網站') @section('styles') @endsection @php $filteredYears = []; foreach ($main as $row) { if (!array_key_exists($row->type_id, $filteredYears)) { $filteredYears[$row->type_id] = []; } if (!in_array($row->year, $filteredYears[$row->type_id])) { $filteredYears[$row->type_id][] = $row->year; } } @endphp @section('content')