@extends('layouts.app') @section('title', 'Select Equipment') @section('content')

Select Equipment

Back
Checklist: {{ $checklist->title }} @if($checklist->description)
{{ $checklist->description }} @endif
@if($equipment->isEmpty())

No Equipment Available

No equipment is linked to this checklist.

@else
@foreach($equipment as $equip) @php $recentlyInspected = isset($inspectedRecently[$equip->id]); @endphp
{{ $equip->name }}

Tag ID: {{ $equip->tag_id }}

Location: {{ $equip->location }}

Type: {{ $equip->getTypeLabel() }}

Department: {{ $equip->department->name }}

@if($recentlyInspected)
Inspected on {{ $inspectedRecently[$equip->id]['last_inspection']->inspection_date->format('M d') }}. Wait {{ $inspectedRecently[$equip->id]['days_remaining'] }} more day(s).
@endif
@endforeach
@endif @endsection