@extends('layouts.app') @section('title', 'Inspection Checklist: ' . $checklist->name) @section('content')
Back

{{ $checklist->name }}

{{ $checklist->category ?? 'Inspection Checklist' }}

Edit

Checklist Details

Name
{{ $checklist->name }}
@if($checklist->category)
Category
{{ $checklist->category }}
@endif
Status
{{ $checklist->is_active ? 'Active' : 'Inactive' }}
Total Items
{{ count($checklist->items ?? []) }} items
@if($checklist->description)
Description
{{ $checklist->description }}
@endif

Checklist Items

@forelse($checklist->items ?? [] as $index => $item)

{{ $index + 1 }}. {{ $item['item'] ?? 'N/A' }}

Type: {{ ucfirst(str_replace('_', ' ', $item['type'] ?? 'N/A')) }}

@empty

No items in this checklist.

@endforelse

QR Code

@php $qrData = \App\Services\QRCodeService::forInspectionChecklist($checklist->id, $checklist->name); $qrUrl = \App\Services\QRCodeService::generateUrl($qrData, 200); @endphp
QR Code

Scan to use this checklist

Print QR Code
@endsection