@extends('layout.master') @push('plugin-styles') @endpush @section('content')
Serial No: {{ $crane->serial_no }}
Company: {{ $crane->company_name }}
Platform: {{ $crane->platform }}
Tag No: {{ $crane->tag_no }}
Manufacturer: {{ $crane->manufacturer }}
Model: {{ $crane->model }}
| # | Date | System | Remarks | Action | Rec. | Images | Action |
|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | @if($finding->report_date) {{ \Carbon\Carbon::parse($finding->report_date)->format('d-M-Y') }} @else N/A @endif | @if($finding->crane_inventory_equipment_id) @php $system = $equipmentStatuses->firstWhere('system_id', $finding->crane_inventory_equipment_id); @endphp {{ $system->system_name ?? 'N/A' }} @elseif($finding->crane_inventory_equipment_component_id) @php $system = $primaryStatuses->firstWhere('system_id', $finding->crane_inventory_equipment_component_id); @endphp {{ $system->system_name ?? 'N/A' }} @elseif($finding->crane_inventory_component_part_id) @php $system = $subPrimaryStatuses->firstWhere('system_id', $finding->crane_inventory_component_part_id); @endphp {{ $system->system_name ?? 'N/A' }} @elseif($finding->crane_inventory_part_detail_id) @php $system = $secondaryStatuses->firstWhere('system_id', $finding->crane_inventory_part_detail_id); @endphp {{ $system->system_name ?? 'N/A' }} @else General @endif | {{ Str::limit($finding->remarks, 50) }} | {{ Str::limit($finding->action, 30) }} | {{ $finding->recommendation ?? 'N/A' }} |
@if(!empty($finding->remarks_image_urls))
@foreach($finding->remarks_image_urls as $imageUrl)
|
| # | Reported | Closed | System | Remarks | Action | Rec. | Images |
|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | @if($finding->report_date) {{ \Carbon\Carbon::parse($finding->report_date)->format('d-M-Y') }} @else N/A @endif | {{ \Carbon\Carbon::parse($finding->updated_at)->format('d-M-Y') }} | @if($finding->crane_inventory_equipment_id) @php $system = $equipmentStatuses->firstWhere('system_id', $finding->crane_inventory_equipment_id); @endphp {{ $system->system_name ?? 'N/A' }} @elseif($finding->crane_inventory_equipment_component_id) @php $system = $primaryStatuses->firstWhere('system_id', $finding->crane_inventory_equipment_component_id); @endphp {{ $system->system_name ?? 'N/A' }} @elseif($finding->crane_inventory_component_part_id) @php $system = $subPrimaryStatuses->firstWhere('system_id', $finding->crane_inventory_component_part_id); @endphp {{ $system->system_name ?? 'N/A' }} @elseif($finding->crane_inventory_part_detail_id) @php $system = $secondaryStatuses->firstWhere('system_id', $finding->crane_inventory_part_detail_id); @endphp {{ $system->system_name ?? 'N/A' }} @else General @endif | {{ Str::limit($finding->remarks, 50) }} | {{ Str::limit($finding->action, 30) }} | {{ $finding->recommendation ?? 'N/A' }} |
@if(!empty($finding->remarks_image_urls))
@foreach($finding->remarks_image_urls as $imageUrl)
|