@extends('layout.master') @push('plugin-styles') @endpush @section('content') @php use Carbon\Carbon; @endphp
Crane ID: {{ $crane->company_name }}{{ $crane->serial_no }}
Manufacturer: {{ $crane->manufacturer }}
Model: {{ $crane->model }}
Serial No: {{ $crane->serial_no }}
Location: {{ $crane->platform }}
SWL: {{ $crane->swl }}
Last Inspection: {{ $crane->last_inspection_date ? Carbon::parse($crane->last_inspection_date)->format('d M Y') : 'N/A' }}
Next Inspection: {{ $crane->next_inspection_date ? Carbon::parse($crane->next_inspection_date)->format('d M Y') : 'N/A' }}
| # | Name | Activity | Pre-Condition | Post-Condition | Status | Remarks | Attachment | Date |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->item_name }} | {{ $item->activity }} | @if($item->pre_condition === 'N/A') N/A @else {{ ucfirst($item->pre_condition) }} @endif | @if($item->post_condition === 'N/A') N/A @else {{ ucfirst($item->post_condition) }} @endif | @php $statusClass = [ 'P1' => 'badge-P1', 'P2' => 'badge-P2', 'P3' => 'badge-P3', 'N/A' => 'badge-NA' ][$item->status] ?? 'badge-secondary'; @endphp {{ $item->status }} | {{ $item->remark ? Str::limit($item->remark, 50) : '-' }} | @if($item->file_path) View @else - @endif | {{ $item->created_at->format('d M Y') }} |