@extends('layouts.app') @push('styles') @endpush @section('content')
返回

{{ $mach->name }}

年份   @if ($mach->year) @endif @if ($mach->month) @endif
@foreach ($years as $year)

{{ $year }} 年

@foreach ($rows as $r) @if (Carbon\Carbon::parse($r->examdate)->format('Y') == $year) @endif @endforeach
機械設備名稱 檢查日期 新增日期 是否合格 修改 檢視
{{ $mach->custom_name }} {{ $r->examdate }} {{ $r->created_at->format('Y-m-d') }} {{ $r->ispass ? '合格' : '不合格' }}
@endforeach
@foreach ($months as $k => $year) @if ($k == 0 || $months[$k - 1]->year != $year->year)

{{ $year->year }} 年

@foreach ($m_dbs as $r) @if (Carbon\Carbon::parse($r->examdate)->format('Y') == $year->year) @endif @endforeach
機械設備名稱 檢查日期 新增日期 是否合格 修改 檢視
{{ $mach->custom_name }} {{ $r->examdate }} {{ $r->created_at->format('Y-m-d') }} {{ $r->ispass ? '合格' : '不合格' }}
@endif @endforeach
@endsection @section('instruct-modal') {{-- @foreach(File::glob(public_path('storage/instruct/machine').'/*') as $path) @endforeach --}} @foreach(File::glob(public_path('storage/instruct/machine').'/*') as $path) @php $relativePath = Str::after($path, public_path()) . "?" . date("YM"); @endphp @endforeach @endsection @section('scripts') @endsection